2010-08-29 19:17:13 +02:00
|
|
|
cd ..
|
|
|
|
rm *.pyc
|
|
|
|
|
|
|
|
echo "creating template po file"
|
2010-12-28 15:34:08 +01:00
|
|
|
python /usr/share/doc/python-2.*/examples/Tools/i18n/pygettext.py --output-dir=locale --default-domain=fpdb --output=fpdb-en_GB.pot *.py *.pyw
|
2010-08-29 19:17:13 +02:00
|
|
|
|
|
|
|
echo "merging template with existing translations"
|
|
|
|
msgmerge --update locale/fpdb-de_DE.po locale/fpdb-en_GB.pot
|
2011-02-16 08:44:56 +01:00
|
|
|
msgmerge --update locale/fpdb-es_ES.po locale/fpdb-en_GB.pot
|
2010-08-30 17:25:08 +02:00
|
|
|
msgmerge --update locale/fpdb-fr_FR.po locale/fpdb-en_GB.pot
|
|
|
|
msgmerge --update locale/fpdb-hu_HU.po locale/fpdb-en_GB.pot
|
2011-04-04 23:47:05 +02:00
|
|
|
msgmerge --update locale/fpdb-it_IT.po locale/fpdb-en_GB.pot
|
2011-03-10 02:56:29 +01:00
|
|
|
msgmerge --update locale/fpdb-pl_PL.po locale/fpdb-en_GB.pot
|
|
|
|
msgmerge --update locale/fpdb-ru_RU.po locale/fpdb-en_GB.pot
|
2010-08-29 19:17:13 +02:00
|
|
|
|
2011-04-05 00:26:04 +02:00
|
|
|
msgfmt -c --check-accelerators locale/fpdb-de_DE.po
|
|
|
|
msgfmt -c --check-accelerators locale/fpdb-es_ES.po
|
|
|
|
msgfmt -c --check-accelerators locale/fpdb-fr_FR.po
|
|
|
|
msgfmt -c --check-accelerators locale/fpdb-hu_HU.po
|
|
|
|
msgfmt -c --check-accelerators locale/fpdb-it_IT.po
|
|
|
|
msgfmt -c --check-accelerators locale/fpdb-pl_PL.po
|
|
|
|
msgfmt -c --check-accelerators locale/fpdb-ru_RU.po
|
2011-03-12 22:03:06 +01:00
|
|
|
|
2010-08-29 19:17:13 +02:00
|
|
|
echo "compiling mo files"
|
2010-12-28 15:34:08 +01:00
|
|
|
python /usr/share/doc/python-2.*/examples/Tools/i18n/msgfmt.py --output-file=locale/de/LC_MESSAGES/fpdb.mo locale/fpdb-de_DE.po
|
2011-02-16 08:44:56 +01:00
|
|
|
python /usr/share/doc/python-2.*/examples/Tools/i18n/msgfmt.py --output-file=locale/es/LC_MESSAGES/fpdb.mo locale/fpdb-es_ES.po
|
2010-12-28 15:34:08 +01:00
|
|
|
python /usr/share/doc/python-2.*/examples/Tools/i18n/msgfmt.py --output-file=locale/fr/LC_MESSAGES/fpdb.mo locale/fpdb-fr_FR.po
|
|
|
|
python /usr/share/doc/python-2.*/examples/Tools/i18n/msgfmt.py --output-file=locale/hu/LC_MESSAGES/fpdb.mo locale/fpdb-hu_HU.po
|
2011-04-04 23:47:05 +02:00
|
|
|
python /usr/share/doc/python-2.*/examples/Tools/i18n/msgfmt.py --output-file=locale/it/LC_MESSAGES/fpdb.mo locale/fpdb-it_IT.po
|
2011-03-10 02:56:29 +01:00
|
|
|
python /usr/share/doc/python-2.*/examples/Tools/i18n/msgfmt.py --output-file=locale/pl/LC_MESSAGES/fpdb.mo locale/fpdb-pl_PL.po
|
|
|
|
python /usr/share/doc/python-2.*/examples/Tools/i18n/msgfmt.py --output-file=locale/ru/LC_MESSAGES/fpdb.mo locale/fpdb-ru_RU.po
|
2010-08-29 19:17:13 +02:00
|
|
|
|
2010-08-29 20:46:21 +02:00
|
|
|
pocount locale/*.po
|