X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6b7c022c3d28860b2f22a29097fdaeacfe7e00f9..fa684e7b11bba7f7fce1c0e7832b34d0b8593db4:/scripts/make-locale-pack?ds=sidebyside diff --git a/scripts/make-locale-pack b/scripts/make-locale-pack index fbc6eba2d..81d6d9a93 100755 --- a/scripts/make-locale-pack +++ b/scripts/make-locale-pack @@ -26,6 +26,12 @@ export_po() fi done + for langdir in $ROOT/locale-contrib/*/; do + lang = `basename $langdir` + mkdir -p "$DST/$lang" + cp -v "${langdir}LC_MESSAGES/django.po" "${DST}/$lang/contrib.po" + done + cp -v ${ROOT}/wolnelektury/static/js/locale.js $DST/locale.js.txt cp -v ${ROOT}/apps/infopages/fixtures/infopages.json $DST/infopages.json @@ -48,6 +54,11 @@ for i in *; do done ) +( + pybabel extract -F "$ROOT/babel.cfg" -o "$ROOT/locale-contrib/django.pot" \ + "`python -c 'import os,allauth; print os.path.dirname(allauth.__file__)'`" +) + export_po PACK=`pwd`/wl-lokalizacja.zip