Closed danwerner closed 11 years ago
On my machine, the .mo files are definitely out of date:
$ ls -latr colander/locale/de_DE/LC_MESSAGES/
total 16
drwxr-xr-x 3 tseaver tseaver 4096 Mar 23 2011 ..
-rw-rw-r-- 1 tseaver tseaver 2792 Jul 23 2012 colander.mo
-rw-rw-r-- 1 tseaver tseaver 4068 Dec 25 15:00 colander.po
I don't know what the expected pattern is for the derived files (since they are checked in, rather than being re-generated at install time / startup).
Somebody at my company created a MANIFEST.in file in a Python project's root directory to solve a similar distribution problem with .mo files, templates etc. It contains the following lines:
recursive-include mypackage/locale *.*
recursive-include mypackage/static *.*
recursive-include mypackage/templates *.*
Does that help?
@danwerner the .mo files are included, but are out of date.
'msgfmt' barfs on some of the 'colander.po' files:
$ for d in $(find . -name "LC_MESSAGES"); do
> msgfmt -Cvvv -o $d/colander.mo $d/colander.po
> done
msgfmt: ./colander/locale/zh/LC_MESSAGES/colander.po: warning: source file contains fuzzy translation
msgfmt: found 1 fatal error
./colander/locale/cs/LC_MESSAGES/colander.po: 24 translated messages.
./colander/locale/nl/LC_MESSAGES/colander.po: 24 translated messages.
./colander/locale/ru/LC_MESSAGES/colander.po:100: empty `msgstr' entry ignored
./colander/locale/ru/LC_MESSAGES/colander.po:108: empty `msgstr' entry ignored
msgfmt: found 2 fatal errors
./colander/locale/ja/LC_MESSAGES/colander.po: 27 translated messages.
./colander/locale/pt/LC_MESSAGES/colander.po:98:19: invalid control sequence
msgfmt: found 1 fatal error
msgfmt: ./colander/locale/sv/LC_MESSAGES/colander.po: warning: source file contains fuzzy translation
./colander/locale/sv/LC_MESSAGES/colander.po:55: fuzzy `msgstr' entry ignored
./colander/locale/sv/LC_MESSAGES/colander.po:60: fuzzy `msgstr' entry ignored
msgfmt: found 3 fatal errors
./colander/locale/fr/LC_MESSAGES/colander.po: 24 translated messages.
./colander/locale/pt_BR/LC_MESSAGES/colander.po: 27 translated messages.
./colander/locale/pl/LC_MESSAGES/colander.po:94: empty `msgstr' entry ignored
./colander/locale/pl/LC_MESSAGES/colander.po:106: empty `msgstr' entry ignored
msgfmt: found 2 fatal errors
./colander/locale/de_DE/LC_MESSAGES/colander.po: 25 translated messages.
./colander/locale/es/LC_MESSAGES/colander.po: 24 translated messages.
Marking this as "sprintable" in case someone wants to ensure the pos match the mos now.
The .po
files are also out of date now. Need to fix these up then re-compile.
Closing due to merge of pull request #131
I noticed that the German translations for colander validation error messages displayed in my application do not match the translations contained in colander.po. Especially, some translation mistakes that seem to have been fixed in the PO files still appear in the application.
Perhaps the PO files have not been compiled to MO files before release? (I obtained colander 1.0a2 from pypi using
pip install
.)