Thanks that was helpful. I guess I was just overwhelmed by the details of jetspeed. 
That is a simple solution. I guess i could write a tag library that would simply look 
for the resource bundle based on the locale passed to it. In the portal space it can 
be rundata.getRequest.getLocale() and in the non-portal space it may simply be the 
locale maybe obtained from the httprequest.

>>> [EMAIL PROTECTED] 12/24/03 01:46PM >>>
Archana for localization we do not use Jetspeed's I10N.  We get locale from
rundata and use normal java's resourcebundles like:

ResourceBundle
messages=ResourceBundle.getBundle("com.indent.jetspeed.modules.localization.
IndentMessageBundle",rundata.getRequest().getLocale());

String group1 = new
String(messages.getString("Group").getBytes("ISO8859_1"),"UTF-8");

pramod

-----Original Message-----
From: Archana Turaga [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 11:41 AM
To: [EMAIL PROTECTED]
Subject: Custom tag libraries for localisation


Hi all,

I have just started looking at the jetspeed portal as a possible portal to
deploy jsps. The following is my issue:
We want to develop our jsp portlets in a way that we can deploy them
not-only as portlets but also as stand-alone jsp pages.

I know that i cannot completely use a existing jsp as a portlet as is. I
will have to make some changes. Till now what i see is that these changes
are minor except for one change...LOCALISATION?

Questions:
1. When i'm not in the portal environment i cannot use the jetspeed:I10N tag
to get the locale specific strings. I would have to come up with my own
custom tag library to be used to get the locale specific strings. Is it
possible to use this tag library that i created in place of the jetspeed
I10N tag?

2. In the portal environment what are popular ways of getting to know the
locale of a given user?

3. Also is it correct to say that all the locales supported by jetspeed need
to be listed in the LOCALISATION SERVICE section of the
turbinresources.properties file? If not correct then is there a way to set
the locale from the jsp space to the rundata so that for that user only that
locale is used?


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

Reply via email to