i18n extraction pass; gettext'ed many missed texts.
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Sun, 27 Mar 2011 19:13:28 +0000 (19:13 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Sun, 27 Mar 2011 19:13:28 +0000 (19:13 +0000)
commit031992e035a632624300174600fa1e9ab129e178
treef507249fac6b29d5e69776983300ce4f69eb8777
parent666d3421986da586aa2611da22b7890fc0eb816b
i18n extraction pass; gettext'ed many missed texts.

I'm abusing 'Esperanto' as a target translation that uses 'poxx', by Ned
Batchelder, which just takes the input POT and transforms it by changing the
case of all vowels. This results in "A trAnslAtIOn lIkE thIs" which is
readable, but exposes texts which still need to be marked for i18n.

To add poxx/Esperanto to your Syrup, add this to your local_settings.py:

    LANGUAGES = [("en-us", "English"),
                 ("fr-ca", "Canadian French"),
                 ("eo", "POXX")]
    LANGUAGE_CODE = 'eo'

Then you can pick it using the 'Preferences' link.

I've noticed a few differences between Genshi 0.5 and 0.6 with respect to how
they handle complex texts, like this one:

    <h2 py:if="query_string" i18n:msg="query, num">
        You searched for: <i>${query_string}.</i> Found ${len(results)} matches.
    </h2>

which results in a PO entry like this:

    You searched for: [1:%(query)s.] Found %(num)s matches.

The "i18n:msg" attribute specifies the placeholder names, comma separated. But
this doesn't localize properly under Genshi 0.5. We'll probably have to insist
upon 'genshi>=0.6' as the required veresion, but I don't think 0.6 has made it
to PyPI yet, which would make 'easy_install'ing more difficult.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/branches/i18n@1285 6d9bc8c9-1ec2-4278-b937-99fde70a366f
38 files changed:
.gitignore
conifer/babel.cfg
conifer/locale/django.pot
conifer/locale/en_US/LC_MESSAGES/django.po
conifer/locale/eo/LC_MESSAGES/django.po [new file with mode: 0644]
conifer/locale/fr_CA/LC_MESSAGES/django.po
conifer/plumbing/genshi_support.py
conifer/pybabel-extract
conifer/syrup/models.py
conifer/syrup/urls.py
conifer/syrup/views/admin.py
conifer/syrup/views/general.py
conifer/templates/admin/staff_add.xhtml
conifer/templates/admin/su.xhtml
conifer/templates/admin/term.xhtml
conifer/templates/auth/login.xhtml
conifer/templates/edit_site.xhtml
conifer/templates/edit_site_permissions.xhtml
conifer/templates/generic/delete.xhtml
conifer/templates/generic/edit.xhtml
conifer/templates/generic/index.xhtml
conifer/templates/item/item_add_cat_search.xhtml
conifer/templates/item/item_add_elec.xhtml
conifer/templates/item/item_add_heading.xhtml
conifer/templates/item/item_add_phys.xhtml
conifer/templates/item/item_add_url.xhtml
conifer/templates/item/item_delete_confirm.xhtml
conifer/templates/item/item_metadata.xhtml
conifer/templates/item/item_relocate.xhtml
conifer/templates/master.xhtml
conifer/templates/phys/circlist_index.xhtml
conifer/templates/phys/mark_arrived_choose.xhtml
conifer/templates/prefs.xhtml
conifer/templates/search_results.xhtml
conifer/templates/site_invitation.xhtml
conifer/templates/site_join.xhtml
conifer/templates/zsearch.xhtml
conifer/urls.py