Matteo:

This might be a first step:
Insert several language parameters for every portlet. It might look
something like:
   <parameter name="titleenglish" value="Hello"     hidden="true"/>
   <parameter name="titlegerman"  value="Guten Tag" hidden="true"/>
   <parameter name="titlefrench"  value="Bonjour"   hidden="true"/>


Replace in jetspeed.vm the line where the title of the portlet is generated
(= $portlet.Title ) by
   ${portlet.getPortletConfig().getInitParameter("titleenglisch")}

But "titleenglish" is still a hard coded string. You have to figure out some
more. By the way: Where do you save you chosen language?

Hope this will help
Matthias Wimmer




-----Original Message-----
From: Casagrande Matteo-ACM117 [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 12:25 PM
To: 'Jetspeed Users List'
Subject: RE: portlet title localization


Sorry if I explained badly,
I want to internationalize also the title in the portlet title bar,
When I change language, I would like portlets title displayed change
language too.
An idea could be: Use the portlet title (in the <meta-info> tag) as key for
retrieving the translated title in jetspeed.vm
ex:
    <meta-info>
     <title>MYTITLE</title>
      ...
  in jetspeed.vm:

  $l10n. ...portlet title
  
  with $portlet.Title we retrieve the title
  and $l10n.WORDTOTRANSLATE we translate WORDTOTRANSLATE but how can I
translate the portlet title?

If this way is wrong, what way can I follow?
thanks,
 matteo
  



> -----Original Message-----
> From: Josh Hone [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 5:45 PM
> To: [EMAIL PROTECTED]
> Subject: Re: portlet title localization
> 
> 
> I believe that the title appearing in the title bar is set by the 
> information in the <meta-info> tag in the portlet registry.  
> Is this what 
> you mean?
> 
> Josh Hone
> Physics Dept.
> Florida State University
> 
> 
> >From: Casagrande Matteo-ACM117 <[EMAIL PROTECTED]>
> >Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
> >To: "'Jetspeed Users List'" 
> <[EMAIL PROTECTED]>,        
> >"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >Subject: portlet title localization
> >Date: Fri, 7 Jun 2002 10:36:31 +0200
> >
> >
> >Hi All,
> >
> >does someone know how to localize the title of the portlets?
> >I try to see in jetspeed.vm but I don't know the syntax and 
> if is possible.
> >($l10n. and $portlet.Title)
> >If isn't possible, how can I solve this problem?
> >thanks,
> >  matteo
> >
> >--
> >To unsubscribe, e-mail:   
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail: 
> ><mailto:[EMAIL PROTECTED]>
> >
> 
> 
> 
> 
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos: 
> http://photos.msn.com/support/worldwide.aspx
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

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

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

Reply via email to