X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/440ce853b0c97ec356c27bbef6ef500f8feb6197..4802e4084d0be246d02129459fbed7f9bc3e3735:/scripts/save-locale-pack?ds=sidebyside diff --git a/scripts/save-locale-pack b/scripts/save-locale-pack index efca71984..13f0a61e4 100755 --- a/scripts/save-locale-pack +++ b/scripts/save-locale-pack @@ -14,13 +14,13 @@ LNG=$2 load_lang() { L=$1 - for pofile in $LOCALIZED/$L/*.po; do - app=`basename $pofile .po` + 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 + cp -v "$pofile" "$ROOT/wolnelektury/locale/$L/LC_MESSAGES/django.po" else - cp -v $pofile $ROOT/apps/$app/locale/$L/LC_MESSAGES/django.po + cp -v "$pofile" "$ROOT/apps/$app/locale/$L/LC_MESSAGES/django.po" fi done } @@ -34,9 +34,10 @@ else done fi -${0}-json.py $LOCALIZED/infopages.json $LNG -cp -v $LOCALIZED/infopages.json ${ROOT}/apps/infopages/fixtures/infopages.json -cp -v $LOCALIZED/locale.js.txt ${ROOT}/wolnelektury/static/js/locale.js +cp -v ${ROOT}/apps/infopages/fixtures/infopages.json "$LOCALIZED/infopages.json" +${0}-json.py "$LOCALIZED/infopages.json" $LNG +cp -v "$LOCALIZED/infopages.json" ${ROOT}/apps/infopages/fixtures/infopages.json +cp -v "$LOCALIZED/locale.js.txt" ${ROOT}/wolnelektury/static/js/locale.js for i in $ROOT/apps/*; do cd $i;