thank you L, but ... hiz, more details plz :( ...
----- Original Message -----
From: "Laurie Harper" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Tuesday, February 21, 2006 4:25 AM
Subject: Re: [HELP] i80n :(
Pham Anh Tuan wrote:
Hi all,
I got a problem, so I need all your help :(
i18n,
I want my Struts app to have default language is Vietnamese, but I
couldn't :(
I have 3 files below:
+ mylanguage.properties <--- Vietnamese file
+ mylanguage_ja.properties <--- Japanese file
+ mylanguage_en.properties <--- English file
I have a action which include these code:
.....
Local myLocal = getLocale(request);
locale = new Locale(request.getParameter("language");
HttpSession session = request.getSession();
session.setAttribute(Globals.LOCALE_KEY, locale);
....
in struts-config.xml
<message-resources parameter="properties.mylanguage"/>
but my webapp still use English language default :( ...
I want my webapp use Vietnamese language by default, how can I do that,
help me :(
thanks in advance
bowlkhin
You can set the system-wide default locale with Locale.setDefault(). You
would want to call that once during startup, probably. Alternatively, you
can configure your execution environment appropriately so that Java starts
up with the default locale already set to what you want.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]