fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[wolnelektury.git]
/
scripts
/
make-locale-pack
diff --git
a/scripts/make-locale-pack
b/scripts/make-locale-pack
index
a5bb7d3
..
81d6d9a
100755
(executable)
--- a/
scripts/make-locale-pack
+++ b/
scripts/make-locale-pack
@@
-26,6
+26,12
@@
export_po()
fi
done
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
cp -v ${ROOT}/wolnelektury/static/js/locale.js $DST/locale.js.txt
cp -v ${ROOT}/apps/infopages/fixtures/infopages.json $DST/infopages.json
@@
-33,16
+39,25
@@
export_po()
}
}
+(
cd $ROOT/wolnelektury
echo "Generate po for WL"
$MANAGE makemessages --all
cd $ROOT/wolnelektury
echo "Generate po for WL"
$MANAGE makemessages --all
+)
+(
cd $ROOT/apps
for i in *; do
echo "Generate po for app $i"
( cd $i; $MANAGE makemessages --all;
)
done
cd $ROOT/apps
for i in *; do
echo "Generate po for app $i"
( cd $i; $MANAGE makemessages --all;
)
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
export_po