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 cp -v ${ROOT}/apps/infopages/fixtures/infopages.json "$LOCALIZED/infopages.json"
38 ${0}-json.py "$LOCALIZED/infopages.json" $LNG
39 cp -v "$LOCALIZED/infopages.json" ${ROOT}/apps/infopages/fixtures/infopages.json
40 cp -v "$LOCALIZED/locale.js.txt" ${ROOT}/wolnelektury/static/js/locale.js
42 for i in $ROOT/apps/*; do
44 env PYTHONPATH=$ROOT ${VIRTUAL_ENV}/bin/django-admin.py compilemessages --settings=wolnelektury.settings
47 env PYTHONPATH=$ROOT ${VIRTUAL_ENV}/bin/django-admin.py compilemessages --settings=wolnelektury.settings