All translations are outdated
"Stéphane Raimbault" <[email protected]> Thu, 16 Oct 2008 12:39:48 +0200
| Newsgroups | gmane.comp.python.formencode |
|---|---|
| Message-ID | <[email protected]> |
Hi,
All translations are outdated because the .pot is very old (around 30
strings are missing).
I wrote two little scripts, to fix the situation:
update-pot.sh
#!/bin/sh
pygettext -o i18n/FormEncode.pot -a *.py util/*.py
update-po.py
#!/usr/bin/env python
import os
def main():
I18N_DIR = 'i18n'
for lang in open(I18N_DIR + '/LINGUAS').readlines():
lang = lang.strip()
print lang
os.system("msgmerge -U %s/%s/LC_MESSAGES/FormEncode.po
%s/FormEncode.pot" %
(I18N_DIR, lang, I18N_DIR))
if __name__ == '__main__':
main()
I also updated the French translation but I don't know why these strings are
marked for translation
#: national.py:216
msgid "LnnnnLLL"
msgstr ""
#: national.py:251
msgid "LnL nLn"
msgstr ""
Stephane
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FormEncode-discuss mailing list
FormEncode-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/formencode-discuss
update-pot.sh
(application/x-sh, 62 B)
#!/bin/sh pygettext -o i18n/FormEncode.pot -a *.py util/*.py
update-po.py
(text/x-python, 340 B)
#!/usr/bin/env python
import os
def main():
I18N_DIR = 'i18n'
for lang in open(I18N_DIR + '/LINGUAS').readlines():
lang = lang.strip()
print lang
os.system("msgmerge -U %s/%s/LC_MESSAGES/FormEncode.po %s/FormEncode.pot" %
(I18N_DIR, lang, I18N_DIR))
if __name__ == '__main__':
main()
LINGUAS
(application/octet-stream, 72 B) - not displayed