X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/05273122e1d56f74b82ebf892edcec6c9e04ec26..e77dbe7347636c5344884ce0b042272d6ddb0fcc:/scripts/save-locale-pack?ds=inline diff --git a/scripts/save-locale-pack b/scripts/save-locale-pack index 3e1aa524f..1d140685e 100755 --- a/scripts/save-locale-pack +++ b/scripts/save-locale-pack @@ -17,8 +17,8 @@ load_lang() for pofile in "$LOCALIZED/$L/"*.po; do app=`basename "$pofile" .po` echo $app - if [ "$app" = "wolnelektury" ]; then - cp -v "$pofile" "$ROOT/wolnelektury/locale/$L/LC_MESSAGES/django.po" + if [ "$app" = "contrib" ]; then + cp -v "$pofile" "$ROOT/wolnelektury/locale-contrib/$L/LC_MESSAGES/django.po" else cp -v "$pofile" "$ROOT/apps/$app/locale/$L/LC_MESSAGES/django.po" fi @@ -46,5 +46,4 @@ for i in $ROOT/apps/*; do cd $i; env PYTHONPATH=$ROOT ${VIRTUAL_ENV}/bin/django-admin.py compilemessages --settings=wolnelektury.settings done -cd $ROOT/wolnelektury -env PYTHONPATH=$ROOT ${VIRTUAL_ENV}/bin/django-admin.py compilemessages --settings=wolnelektury.settings +pybabel compile -D django -d $ROOT/wolnelektury/locale-contrib