In relation to the problem described in this thread, I have noticed that the JetspeedTemplateLocatorService only uses the language from the request header (through LocaleDetector.getLocale(data)). This means that when the ChangeLanguage portlet or similar code is used to set a new language with User.setTemp("language"... ) it will have no effect on which template is used.

Does anyone know if it is an issue that will be addressed in a future release to change this behaviour, for example by letting JetspeedTemplateLocatorService use the JetspeedLocalizationService to lookup the locale?

-Kim

Massimiliano Dessi wrote:

Jetspeed use l10n to change the language,
in the portlet .vm (Velocity),
you found  $l10n.variableName in the velocity portlet.
Jetspeed substitute variableName with the variableName in the
JetspeedLocalizatio_language(it, en ,es,jp, fr de, ..).properties
if the variableName don't exist and if the portlet don't use this system,
the content of the portlet
can't change the language because the content it's in the only language.

Scuse me for my bad english

Massimiliano Dessì

----- Original Message -----
From: "Matthieu DELAHAIS" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 4:51 PM
Subject: Re: Portlet "Change the language"




It works! Thank you very much!
But, your portlet just changes the titles. I didn't
success to redirect the PSML. Is there something else
to parameter? For the moment, my URL is always the
english one...
Thanks in advance!
Matthieu

--- Massimiliano Dessi
<[EMAIL PROTECTED]> a écrit : > It
is necessary comment in tr.properties




#services.LocalizationService.classname=org.apache.turbine.services.localiza


tion.TurbineLocalizationService
and put



services.LocalizationService.classname=org.apache.jetspeed.services.customlo


calization.JetspeedLocalizationService

and



#tool.request.l10n=org.apache.turbine.services.localization.LocalizationTool


with



tool.request.l10n=org.apache.jetspeed.services.customlocalization.CustomLoca


lizationTool

This portlet change the language with refresh
(reload) of the page .

I implement a new velocity portlet to change the
language witout refresh
,I submit the code to David Taylor to test with a
cvs code.
If you need the code  i submit the code in this
mailing list .

Massimiliano

----- Original Message -----
From: "Matthieu DELAHAIS" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 27, 2003 4:11 PM
Subject: Portlet "Change the language"




Hi all,

First, I thank very much the person who help me to
understand where the language is determined.
Second, I'm tying to change the language with the
portlet "Change the Language". But, when I click


on


another language (ES, DE, EN...), nothing appends.


Is


there something to configure before using these
portlet.
Thank you very much in advance.

Matthieu




___________________________________________________________


Do You Yahoo!? -- Une adresse @yahoo.fr gratuite


et en français !


Yahoo! Mail : http://fr.mail.yahoo.com

--
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]>



___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

--
To unsubscribe, e-mail:


<mailto:[EMAIL PROTECTED]>


For additional commands, e-mail:


<mailto:[EMAIL PROTECTED]>








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





--
Kim Thrysøe
[EMAIL PROTECTED]
22 48 61 54
96 35 61 00



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



Reply via email to