jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: Best practice for modelling internationalized strings with JCR
Date Tue, 12 May 2009 13:09:48 GMT
Apache Sling has an i18n model, which might help as an example:

http://incubator.apache.org/sling/site/internationalization-support.html

Regards,
Alex

On Tue, May 12, 2009 at 2:27 PM, Shaun Barriball <sbarriba@yahoo.co.uk> wrote:
> Hi all,
>
> I'm searching around for the best way of modelling multi-language strings in
> JCR with Jackrabbit.
>
>
>
> Thus far most searches yield
> http://mail-archives.apache.org/mod_mbox/jackrabbit-users/200703.mbox/%3C200
> 70302211945.F0F03435C@mail.globant.com%3E and reference to the JSR-283 spec
> which I note no longer includes nt:naturalText. Mix:lang is still there.
>
>
>
> Initially we were things to use:
>
>  MyStringBundle/
>
>               [lang-code]/string
>
>
>
> e.g.
>
> Hello/
>
> "en"/Hello
>
> "fr"/Bonjour
>
>
>
> Jsr-283 and mix:lang promotes using an attribute to differentiate the nodes.
> Presumably this makes it easier for search where you're only interested in
> strings of a particular language. Note that we want the parent node to own
> the different language versions in our world.
>
>
>
> All suggestions welcome.
>
> Regards,
>
> Shaun
>




-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message