4 ROOT=$(git rev-parse --show-toplevel)
5 MANAGE=$ROOT/wolnelektury/manage.py
8 if [ ! -d "$LOCALIZED" ]; then
9 echo "$0 w-lokalizacje [lang]"
17 for pofile in $LOCALIZED/$L/*.po; do
18 app=`basename $pofile .po`
20 if [ "$app" = "wolnelektury" ]; then
21 cp -v $pofile $ROOT/wolnelektury/locale/$L/LC_MESSAGES/django.po
23 cp -v $pofile $ROOT/apps/$app/locale/$L/LC_MESSAGES/django.po
28 if [ -n "$LNG" ]; then
31 echo "remember to update language list in this script"
32 for l in pl de en lt fr ru es uk jp it; do
37 ${0}-json.py $LOCALIZED/infopages.json $LNG
38 cp -v $LOCALIZED/infopages.json ${ROOT}/apps/infopages/fixtures/infopages.json
39 cp -v $LOCALIZED/locale.js.txt ${ROOT}/wolnelektury/static/js/locale.js
41 for i in $ROOT/apps/*; do
43 env PYTHONPATH=$ROOT ${VIRTUAL_ENV}/bin/django-admin.py compilemessages --settings=wolnelektury.settings
46 env PYTHONPATH=$ROOT ${VIRTUAL_ENV}/bin/django-admin.py compilemessages --settings=wolnelektury.settings