I think the problem is the ss. This is the country code not the language
code. I believe you have to use the format:
langaugecode_COUNTRYCODE_VARIANTCODE. The language code is required but the
other codes are optional. So you would use something like:

en_US or simply en
sv_SE or simply sv

Where en and sv are the language codes (English and Swedish)
http://www.w3.org/WAI/ER/IG/ert/iso639.htm and US and SE are the country
codes http://www.din.de/gremien/nas/nabd/iso3166ma/codlstp1/en_listp1.html
(United States and Sweden). I also believe that the case is important.

Dina


-----Original Message-----
From: Timothy Wild [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 7:52 AM
To: '[EMAIL PROTECTED]'
Subject: internationalisation question


Hi

This question has probably been asked before, but I can't find it anywhere
in the archives :-(

I am trying to create a basic proof-of-concept demo using struts. Everything
is going great except I can't seem to get multiple languages going. I am
trying to create English (en_IE) and Swedish Chef (ss_IE) versions of the
app. I have two resource files, ApplicationResources.properties and
ApplicationResources_ss.properties, and the following entry in my web.xml

  <init-param>
      <param-name>application</param-name>
 
<param-value>com.marrakech.strutstest.ApplicationResources</param-value>
    </init-param>

To allow the user to change their language I invoke an action which includes
the following code:

  locale = new Locale("ss", "IE");
  setLocale(request, locale);

I have confirmed that the locale is set in the session. When I try display
text from the resource file I use a tag like this:

<bean:message key="receipt.receiptNumber"/>

Does anyone know why the swedish chef version of the application is not
being picked up?

Thanks and regards

Tim Wild
--
"Blessed is the man who, having nothing to say, abstains from giving words
in evidence of the fact."
- George Elliot 



******************************************************************

Privileged/Confidential Information may be contained in this
message. If you are not the addressee indicated in this message
(or responsible for delivery of the message to such person),
you may not copy or deliver this message to anyone. In such
case, you should destroy this message and kindly notify the
sender by reply email. Please advise immediately if you or your
employer do not consent to Internet email for messages of this
kind. Opinions, conclusions and other information in this message
that do not relate to the official business of Marrakech and shall
be understood as neither given nor endorsed by it.

******************************************************************


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

Reply via email to