fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Another cover fix.
[wolnelektury.git]
/
scripts
/
save-locale-pack
diff --git
a/scripts/save-locale-pack
b/scripts/save-locale-pack
index
3e1aa52
..
69bc9e5
100755
(executable)
--- a/
scripts/save-locale-pack
+++ b/
scripts/save-locale-pack
@@
-2,7
+2,7
@@
ME=$0
ROOT=$(git rev-parse --show-toplevel)
ME=$0
ROOT=$(git rev-parse --show-toplevel)
-MANAGE=$ROOT/
wolnelektury/
manage.py
+MANAGE=$ROOT/manage.py
LOCALIZED=$1
if [ ! -d "$LOCALIZED" ]; then
LOCALIZED=$1
if [ ! -d "$LOCALIZED" ]; then
@@
-17,8
+17,8
@@
load_lang()
for pofile in "$LOCALIZED/$L/"*.po; do
app=`basename "$pofile" .po`
echo $app
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
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 $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