Commit 4081cd52 authored by root's avatar root
Browse files

adding generate catalog : contains explanations on how to use pybabel & tx

parent 409df908
#!/bin/sh
# launch this in the python virtualenv to regenerate the .pot :
pybabel extract -F babel.cfg -o locale/django.pot .
# then this to push it to transifex (after cheching you didn't loose anything
# tx push -s
# To pull the translated language do this :
# tx pull
# To add a language link with transifex do :
# tx set -r nnmon.messagespot -l nl locale/nl/LC_MESSAGES/django.po
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
#!/bin/sh
echo "Compiling django/gettext language files ..."
echo -n " "
for i in `find -mindepth 1 -maxdepth 1 -type d`
do
echo -n "$i "
cd $i/LC_MESSAGES
msgfmt -o django.mo django.po
cd ../..
done
echo " Finished"
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment