ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | enhydra List | January 2004 Index

<--  Date Index  --> <--  Thread Index  -->

Re: [enhydra] i18n of Enhydra apps


On Mon, 2004-01-19 at 12:34, Sinisa Milosevic wrote:
> Hi,
> 
> You can use scenario like in CacheAdmin enhydra application. All
> multilanguage labels in HTML pages can be dynamically changed from java
> code. For every labels 'id' attribute must be set in HTML pages. For every
> language - different property file with the same key words. In that case you
> can translate HTML pages using different property files. But you must change
> your application - presentation layer...

That is the manual work I would like to avoid.

How about something more automatic. Say that for each tag with a certain
class XMLC would automatically extract its firstTextNode() value and
also its title and value attributes' values to a special file and then,
upon writeDOM it would automatically load the appropriate language file
and replace the text strings. It would be similar to 'CLASS="discardMe"'
approach for automatic striping of unneeded nodes.

The language files could be based on gettext.

Petr





<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.