Well i figured out that once we use the user object obtained from the rundata to set 
the locale and the language ,all the portlets that use the internationalisation tags 
will show the new language values.

I obtain the locale information from the Operating system and based on that set the 
language and locale variables within the user object. That seems to do have done the 
work for me,

Also in future even if the requirement is for the user to choose a language of 
interest then that can be provided through a portlet in the portal. Whatever the user 
chooses a language from that "Changelanguage" portlet can be set to the user object 
and bingo the internationalisation for that portal is done should be done in the next 
referesh.

I would appreciate it if someone would comment on these ideas.

Also i notice that countless other users had the same localisation question but none 
of them ever got answered. I wonder what is the reason. Is it because this question is 
too silly to be answered...:-)? I had to look at the code and did a lot of trial and 
error to come to this conclusion. Some mailing list information also helped (but a 
completely unrelated question).

Thanks ,
Archana


>>> [EMAIL PROTECTED] 01/09/04 07:39PM >>>
Hi,
I'm trying to understand how internationalisation works in the portal world. 

My questions are the following:

1) Can i have a JSP portlet with a list of languages before the user logs in so that 
the user can choose a langauge and that language can be applied to the whole portal?

2) How is the language determined in the jetspeed portal? What is flow within the 
Jetspeed architecture when a language is selected?

3) I was trying to figure out the Changelanguage.vm but because that is velocity code 
i do not understand fully what is going on. I was hoping to write a Changelaguage.jsp 
that will do the same. Please any suggestions as to how i can accomplish writing this 
JSP?

4) Based on the mailing list i could see that there should one template JSP per 
language to support multi-lingual JSP portlets. But this somehow seems tedious. I was 
thinking more in line of resource files that will contain language specific values 
whose keys can be referred in one JSP template. Use the I10N tag library to get the 
values specific to one language. Is this correct and is this possible?

Thanks and any help is appreciated. I'm working to figure out in the meanwhile but i'm 
going at a snail's pace.

Regards,
Archana

Reply via email to