Commit b6a543be by Andy Armstrong

Merge pull request #781 from edx/andya/speed-up-translation-process

Speed up the translation process
parents 929c2026 5ab31f11
...@@ -21,14 +21,20 @@ ...@@ -21,14 +21,20 @@
cd `dirname $BASH_SOURCE` && cd .. cd `dirname $BASH_SOURCE` && cd ..
# Note we only extract the English language strings so they can be
# sent to Transifex. All other language strings will be pulled
# down from Transifex and so don't need to be generated.
echo "Extracting i18n strings..." echo "Extracting i18n strings..."
python manage.py makemessages --all django-admin.py makemessages --locale=en --ignore="edx-ora2/*" --ignore="build/*" --ignore="node_modules/*"
python manage.py makemessages --all -d djangojs
echo "Extracting client-side i18n strings..."
django-admin.py makemessages --locale=en --ignore="edx-ora2/*" --ignore="build/*" --ignore="node_modules/*" -d djangojs
echo "Generating dummy strings..." echo "Generating dummy strings..."
i18n_tool dummy i18n_tool dummy
read -p "Push strings to transifex? [y/n] " RESP read -p "Push strings to Transifex? [y/n] " RESP
if [ "$RESP" = "y" ]; then if [ "$RESP" = "y" ]; then
i18n_tool transifex push i18n_tool transifex push
echo " == Pushed strings to Transifex" echo " == Pushed strings to Transifex"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment