l10n: rename template po file to .pot, merge scripts
This commit is contained in:
parent
168b114646
commit
14ea4714b9
|
@ -1,4 +0,0 @@
|
||||||
cd ..
|
|
||||||
python /usr/share/doc/python-2.7/examples/Tools/i18n/msgfmt.py --output-file=locale/hu/LC_MESSAGES/fpdb.mo locale/fpdb-hu_HU.po
|
|
||||||
python /usr/share/doc/python-2.7/examples/Tools/i18n/msgfmt.py --output-file=locale/de/LC_MESSAGES/fpdb.mo locale/fpdb-de_DE.po
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
cd ..
|
|
||||||
rm *.pyc
|
|
||||||
python /usr/share/doc/python-2.7/examples/Tools/i18n/pygettext.py --output-dir=locale --default-domain=fpdb --output=fpdb-en_GB.po *.py*
|
|
||||||
|
|
14
pyfpdb/locale/localise.sh
Executable file
14
pyfpdb/locale/localise.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
cd ..
|
||||||
|
rm *.pyc
|
||||||
|
|
||||||
|
echo "creating template po file"
|
||||||
|
python /usr/share/doc/python-2.7/examples/Tools/i18n/pygettext.py --output-dir=locale --default-domain=fpdb --output=fpdb-en_GB.pot *.py*
|
||||||
|
|
||||||
|
echo "merging template with existing translations"
|
||||||
|
msgmerge --update locale/fpdb-hu_HU.po locale/fpdb-en_GB.pot
|
||||||
|
msgmerge --update locale/fpdb-de_DE.po locale/fpdb-en_GB.pot
|
||||||
|
|
||||||
|
echo "compiling mo files"
|
||||||
|
python /usr/share/doc/python-2.7/examples/Tools/i18n/msgfmt.py --output-file=locale/hu/LC_MESSAGES/fpdb.mo locale/fpdb-hu_HU.po
|
||||||
|
python /usr/share/doc/python-2.7/examples/Tools/i18n/msgfmt.py --output-file=locale/de/LC_MESSAGES/fpdb.mo locale/fpdb-de_DE.po
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
msgmerge --update fpdb-hu_HU.po fpdb-en_GB.po
|
|
||||||
msgmerge --update fpdb-de_DE.po fpdb-en_GB.po
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user