Skip to content

Instantly share code, notes, and snippets.

@db0company
Created September 29, 2016 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save db0company/e44aa1b14974f46f8826cbd84c5e05f3 to your computer and use it in GitHub Desktop.
Save db0company/e44aa1b14974f46f8826cbd84c5e05f3 to your computer and use it in GitHub Desktop.
Generate a file that combines all the MagiCircles project in one file to import in POEditor
#!/bin/bash
cd ~/Documents/python/MagiCircles/ &&\
source env/bin/activate &&\
rm -f web/locale/ja/LC_MESSAGES/django.po &&\
python manage.py makemessages -l ja --ignore=env/* --ignore=./settings.py --ignore=sample_project/sample_project/settings.py --ignore=web/templates/password/* --ignore=web/django_translated.py &&\
deactivate &&\
cd ~/Documents/python/StardustRun/ &&\
source env/bin/activate &&\
rm -f stardustrun/locale/ja/LC_MESSAGES/django.po &&\
python manage.py makemessages -l ja --ignore=env/* --ignore=stardustrun_project/settings.py &&\
cat stardustrun/locale/ja/LC_MESSAGES/django.po >> ../MagiCircles/web/locale/ja/LC_MESSAGES/django.po &&\
deactivate &&\
cd ~/Documents/python/CinderellaProducers/ &&\
source env/bin/activate &&\
rm -f cpro/locale/ja/LC_MESSAGES/django.po &&\
python manage.py makemessages -l ja --ignore=env/* --ignore=cpro_project/settings.py --ignore=cpro/django_translated.py &&\
cat cpro/locale/ja/LC_MESSAGES/django.po >> ../MagiCircles/web/locale/ja/LC_MESSAGES/django.po &&\
deactivate &&\
echo 'Generated ' ~/Documents/python/MagiCircles/web/locale/ja/LC_MESSAGES/django.po
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment