wichert/lingua — Issue #5: lingua_xml does not pick up all items to be translated
Author: AnneGilles
Created: 2011-11-15 16:37:22+00:00
State: open

I just looked at Pylons/deform to add some translations. I had to change the message extractors to lingua, as chameleon_xml/python simply issn't availabel in chameleon2, afair.

After running bin/python setup.py extract_messages I noticed there were not more but less things to be translated, because some things from small template snippets are not picked up. If I remember linguas code right, you check for the namespace declaration to be present. Here it isn't.

examples:

diff --git a/deform/locale/deform.pot b/deform/locale/deform.pot
index da3aa98..27210b1 100644
--- a/deform/locale/deform.pot
+++ b/deform/locale/deform.pot
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: deform 0.9.2\n"
+"Project-Id-Version: deform 0.9.3\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2011-08-10 09:33+0200\n"
+"POT-Creation-Date: 2011-11-15 17:20+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -53,66 +53,7 @@ msgstr ""
msgid "Add ${subitem_title}"
msgstr ""

-#: deform/widget.py:1235
+#: deform/widget.py:1226
msgid "Incomplete date"
msgstr ""

-#: deform/templates/checked_password.pt:10
-msgid "Confirm Password"
-msgstr ""
-
-#: deform/templates/checked_password.pt:5
-msgid "Password"
-msgstr ""

and some extract from that template (with no namespace declaration, though using):

Password

how to go on from here?