On 8/28/06, Andreas Hartmann <[EMAIL PROTECTED]> wrote:
Jörn Nettingsmeier wrote:
> i've had problems with i18n catalogue merging in templated publications.
> my patch did not work for andreas, and andreas' patch does not work for
> me... so i'm thinking of rewriting the entire i18n catalogue handling,
> if only to understand what's going on. i'd appreciate if you could point
> out errors or misunderstandings...
[SNIP]
Both should be possible. But IMO it is even more important to allow
i18n catalogues in modules. And you might want to override e.g. module
menu items with publication-specific ones ("Add article" instead of
"Add XHTML document").
> * it will avoid key clashes. if a publication wishes to re-use messages
> from lenya's cmsui.xml, it can always say so explicitly by using
> <i18n:text catalogue="cmsui" key="cancel"/>.
> so i propose to have one catalogue named "cmsui.xml" and one named
> "content.xml". wdyt?

1.3 tries to make translating completely transparent.  I wanted to
avoid aggregating the i18n catalogues, and also remove the need for
the i18n Transformer in XMAPs, so i18n translation will be merged into
the Serializers.  Each module translates as the document is passed
around.  No aggregation.  No extra lines in the XMAPs.  Each module
can have its own i18n, and anything not translated passes up to the
next level.

This will incur some overhead, but it should be minimal, and more than
offset the issues of finding all the files and translation key
collisions.

I had not thought about the filenames, planning to stay
backwards-compatible with 1.2.  But I like the suggestion they could
be named better.  After almost a minute of thought, the files will
probably be in an "i18n" subdirectory of each Module, and be named
"en.xml", "de.xml", "ru.xml", etc.  So the "live" module uses:
{pub}/modules/live/i18n/en.xml
{pub}/modules/live/i18n/de.xml

If we use the same directory structures, the same super Serializers
should work in both 1.3 and 1.4, and could be passed back to 1.2.  See
1.3's TODO file for the details:
http://svn.apache.org/repos/asf/lenya/branches/revolution/1.3.x/13TODO.txt

Thanks for the inspiration,
solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to