Hi Matteo,

Regarding the usage of global labels (Search would be search
everywhere), I have been using a different approach, than keeping them
in message bundles. I defined a separate jsp called languageLabels,
which is actually only a button that open a dialog in which I create a
contentNode called languageLabels, and the labels in all of the nodes.
I putted it in the header of the top level page (which is inherited
downwards, and with that to all pages). And the rest is a normal usage
of a dialog property in a jsp page.

Hope this helps!

Regards,
Vasko

On Wed, Oct 15, 2008 at 12:00 PM, Matteo Pelucco
<[email protected]> wrote:
> Hi all!
> Maybe this question is another newbie one...
>
> but:
>
> How can I use I18N in my JSPs?
>
> e.g.
> I want to add a search button and I want to localize the word "Search"
> (Cerca in italian, Search in english)
>
> I have a property file "messages_en.properties" with
> dialog.search=Search
> and a property file "messages_it.properties" with
> dialog.search=Cerca
>
> In a dialog config I simply would add a I18nBaseName with
> "my.package.path.message" and then in label, description and so on I would
> place something like "dialog.search" to identify property key.
>
> But in JSP or Java?
> Are there some classes that does it?
> Because I would that with future Magnolia upgrades pages will not brake into
> pieces ;-)
>
>
> Thanks for
>
>
> ----------------------------------------------------------------
> for list details see
> http://documentation.magnolia.info/
> ----------------------------------------------------------------
>

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to