[Yanel-dev] [Bug 6035] improve i18n

bugzilla at wyona.com bugzilla at wyona.com
Wed Feb 27 17:40:45 CET 2008


http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=6035





------- Comment #1 from josias.thoeny at wyona.org  2008-02-27 17:45 -------
Created an attachment (id=913)
 --> (http://bugzilla.wyona.com/cgi-bin/bugzilla/attachment.cgi?id=913&action=view)
i18n improvements

this patch fixes the issues mentioned above.

it allows to specify a i18n catalogue by URI, e.g.yanelrepo:/i18n/myi18n.xml
such a catalogue has the following format:

<messages>
  <message key="user">
    <text language="de">Benutzer</text>
    <text language="en">User</text>
  </message>
  <message key="logout">
    <text language="de">Abmelden</text>
    <text language="en">Log out</text>
  </message>
</messages>

Further it allows to specify a default i18n catalogue in realm.xml:
<i18n-catalogue>yanelrepo:/i18n/myi18n.xml</i18n-catalogue>

The new I18nTransformer3 has been added to the BasicXMLResource.

This patch is supposed to be backwards compatible, but testing with existing
realms is recommended.

There is one issue with this patch: the i18n files are re-parsed upon each
request.

Some of the code comes from:
http://commons.apache.org/sandbox/i18n/index.html


-- 
Configure bugmail: http://bugzilla.wyona.com/cgi-bin/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the Yanel-development mailing list