----- Original Message ----- 
From: "Serge Huber" <[EMAIL PROTECTED]>
To: "Jetspeed Developers List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 23, 2004 11:04 AM
Subject: Re: [J2] Menu implementation

<SNIP>
> >     <!-- Folder elements displayed in the menu (in the current example
in
> > tabmenu if level < 3 or in treemenu otherwise)
> >          in the order as defined
> >     -->
> >     <elements>
> >
> >       <page id="page1"                         description="Page 1"/>
> >       <page ref="../../subfolder2/page8"/>
> >       <page ref="/subfolder1/subfolder2/page9" description="Page 9" />
> >
> >       <folder id="subfolder1"/>
> >       <folder ref="/subfolder1/subfolder3"/>
> >
> >       <link url="http://www.apache.org";     description="Home
> > Apache"         target="_self"/>
> >       <link url="http://portals.apache.org"; description="Home Apache
> > Portals" target="outside"/>
> >
> >       <!-- hidden elements -->
> >       <page id="page2" hidden="true"/>
> >       <folder id="subfolder2" hidden="true"/>
> >
> >     </elements>
> >
> >   </folder>
>
> Thanks for the example, it always helps to clear things up ! One question
> again : how would this be internationalized ? Are descriptions used to be
> displayed ? If so, how do you specify descriptions for other languages ?
>
> Regards,
>    Serge Huber.
>

In the form module we are building we have our field-labels and button
captions in the localization resource file, and in the xml definition we
place the resource identifier for each field or button. Then, in the init
phase of the form, we lookup all the translated labels and captions using
the resource identifiers. It works lika a charm.

-Stijn



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

Reply via email to