[Yanel-dev] [Bug 6035] improve i18n

Evaldas Taroza etaroza at optaros.com
Thu Feb 28 10:17:38 CET 2008


Is there any documentation on i18n? How to use the catalogs, how to use 
the keys?

Evaldas

bugzilla at wyona.com wrote:
> 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
> 
> 


-- 
+41 79 616 53 76
www.linkedin.com/in/taroza

Optaros - www.optaros.com


More information about the Yanel-development mailing list