{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"closed","milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/be95a9a00155067aa9f9f47cb14005a7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"be95a9a00155067aa9f9f47cb14005a7","url":"https://api.github.com/users/AnneGilles","login":"AnneGilles","id":423317},"assignee":null,"updated_at":"2011-11-16T14:14:26Z","labels":[],"closed_at":"2011-11-15T18:04:56Z","comments":3,"url":"https://api.github.com/repos/wichert/lingua/issues/5","body":"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. \r\n\r\nAfter 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.\r\n\r\nexamples:\r\n\r\n\r\ndiff --git a/deform/locale/deform.pot b/deform/locale/deform.pot\r\nindex da3aa98..27210b1 100644\r\n--- a/deform/locale/deform.pot\r\n+++ b/deform/locale/deform.pot\r\n@@ -6,9 +6,9 @@\r\n #, fuzzy\r\n msgid \"\"\r\n msgstr \"\"\r\n-\"Project-Id-Version: deform 0.9.2\\n\"\r\n+\"Project-Id-Version: deform 0.9.3\\n\"\r\n \"Report-Msgid-Bugs-To: EMAIL@ADDRESS\\n\"\r\n-\"POT-Creation-Date: 2011-08-10 09:33+0200\\n\"\r\n+\"POT-Creation-Date: 2011-11-15 17:20+0100\\n\"\r\n \"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\\n\"\r\n \"Last-Translator: FULL NAME <EMAIL@ADDRESS>\\n\"\r\n \"Language-Team: LANGUAGE <LL@li.org>\\n\"\r\n@@ -53,66 +53,7 @@ msgstr \"\"\r\n msgid \"Add ${subitem_title}\"\r\n msgstr \"\"\r\n \r\n-#: deform/widget.py:1235\r\n+#: deform/widget.py:1226\r\n msgid \"Incomplete date\"\r\n msgstr \"\"\r\n \r\n-#: deform/templates/checked_password.pt:10\r\n-msgid \"Confirm Password\"\r\n-msgstr \"\"\r\n-\r\n-#: deform/templates/checked_password.pt:5\r\n-msgid \"Password\"\r\n-msgstr \"\"\r\n\r\nand some extract from that template (with no namespace declaration, though using):\r\n\r\n<span i18n:domain=\"deform\" tal:omit-tag=\"\">                                                                                                    \r\n<input type=\"hidden\" name=\"__start__\" value=\"${field.name}:mapping\"/>                                                                          \r\n<ul>                                                                                                                                           \r\n  <li>                                                                                                                                         \r\n    <label for=\"${field.oid}\" i18n:translate=\"\">Password</label>                                                                               \r\n    <input type=\"password\" name=\"value\" value=\"${cstruct}\"                                                                                     \r\n           tal:attributes=\"size field.widget.size\" id=\"${field.oid}\"/>                                                                         \r\n  </li>    \r\n\r\n\r\nhow to go on from here?","html_url":"https://github.com/wichert/lingua/issues/5","title":"lingua_xml does not pick up all items to be translated","number":5,"id":2246106,"created_at":"2011-11-15T16:37:22Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/6b34034117344a3cc020ac4b41a5f7aa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6b34034117344a3cc020ac4b41a5f7aa","url":"https://api.github.com/users/kiorky","login":"kiorky","id":90111},"updated_at":"2011-11-16T14:14:26Z","url":"https://api.github.com/repos/wichert/lingua/issues/comments/2759777","body":"If you want translations for deform you can look my fork as i wanted also to translate it in french last week, and also my pull request on Pylons/deform.\r\n\r\nOn the other hand, you can look on lingua pull request #6  (IOW my fork of lingua in kiorky/lingua) or a fix to extrat msgids from missing declaring namespace templates.","id":2759777,"created_at":"2011-11-16T14:14:26Z"}}