[opencms-dev] How to translate a site into differentlocale
Robin Sharma
preska2000 at yahoo.com
Tue Jun 13 19:33:36 CEST 2006
Here is a somple solutions that I used:
Store the resource bundle key in the Navigation Text
property.
When constructing the breadcrumd you can get this key:
CmsJspNavElement ne = ....
String key = ne.getNavText() ;
String textToShow = ResourceBundle.get(key,locale);
Of course you need to create your ResourceBundle
mechanism that you can access here.
Thats all i have done.
--- persa desarrollo <persa.desarrollo at gmail.com>
wrote:
> Hello David,
> you can define a new property ('shared property'),
> NavText2, and when you
> build menu navigation choose one or another. But I
> don't know how you can
> change the locale property for translate page.
> We worked with siblings and we have not considered
> that solution. Good luck.
>
> A10.
>
> 2006/6/13, David García González
> <david.garciag at fundacionctic.org>:
> >
> > And it could be possible to store for instance in
> the property NavTExt a
> > key instead of the final text to internacionalize
> it?
> >
> >
> _______________________________________________
> This mail is sent to you from the opencms-dev
> mailing list
> To change your list options, or to unsubscribe from
> the list, please visit
>
http://lists.opencms.org/mailman/listinfo/opencms-dev
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the opencms-dev
mailing list