portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Sklyut <Dmitry_Skl...@orcom.com>
Subject RE: Localization question
Date Fri, 21 Nov 2003 14:30:29 GMT
There is a whole section on customizing in the Jetspeed Tutorial (tutorial
2).

Also on the Jsp pages use turbine custom tags
(org.apache.jetspeed.services.jsp.tags.JetspeedL10NTag).
Also there is a bug in Jetspeed where if you changed one of the Jetspeed
native keys, it will not get picked up.

Take a look at the http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23385,
I filed it with a resolution.  But there was no activity on it.

Hope this helps

Dmitry

-----Original Message-----
From: Yayati Kasralikar [mailto:yayati@indent.org]
Sent: Thursday, November 20, 2003 7:26 PM
To: Jetspeed Developers List
Subject: Localization question


Hello:

We are using JSP and currently are only interested in internationalizing
static text.  Out approach is to use JSP to replace the static text using
resource bundles.

We have created properties files and put them in our jar file as
com.a.jetspeed.modules.localization.Message_en_US.properties
com.a.jetspeed.modules.localization.Message_de_DE.properties

We added to turbineresources.properties

locale.default.bundles=com.a.jetspeed.modules.localization.Message,org.apach
e.jetspeed.modules.localization.JetspeedLocalization

We could not get JSP page to work with:
messages = ResourceBundle.getBundle("Message",Locale.GERMANY);

Error we get something like MissingREsourceException.

We got it to work when we did
messages =
ResourceBundle.getBundle("com.a.jetspeed.modules.localization.Message",Local
e.GERMANY);

Question 1: How do we configure turbineresources.properties file so that we
do not have to specify com.a.jetspeed.modules.localization. each time.

Question 2: In this process, we made changes to properties file and the
title which was specified in top.vm now appears as "TOP_TITLE" and the top
righthand section appeares capitalized, prefixed with TOP_ . How do we get
the original top disply back?





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message