You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alen Ribic <al...@mweb.co.za> on 2003/06/05 09:55:09 UTC

Internationalization support

Hi all

What is the best way to handle internationalization in your system when
using Struts framework?

Basically, I would like to use human language specific resource bundles that
would need to be used in session specific manner.

Example:
Croatian user logs on and MyAppResources_hr.properties resource file is used
for her/his duration of session.
English (default) user logs on and MyAppResources.properties  file is used
for her/his duration of session.

Thanks
--Alen


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


Re: Internationalization support

Posted by Vic Cekvenich <vi...@baseBeans.com>.
A good idea is to use JSTL fmt tag.

Set the default in web.xml context parm.

Ex: set locale
<a href ='?locale=hr'>HR</a>

Ex: use locale
    <c:when test =  ${parm.locale == "hr" }' >
         <fmt:setLocale value = 'hr' scope = 'session' />
    <c::when>

Zelim Sretno!

btw: my 2nd Struts book will be transalted to Croatian among others, and 
covers localization, etc.

Alen Ribic wrote:

>Hi all
>
>What is the best way to handle internationalization in your system when
>using Struts framework?
>
>Basically, I would like to use human language specific resource bundles that
>would need to be used in session specific manner.
>
>Example:
>Croatian user logs on and MyAppResources_hr.properties resource file is used
>for her/his duration of session.
>English (default) user logs on and MyAppResources.properties  file is used
>for her/his duration of session.
>
>Thanks
>--Alen
>  
>

-- 
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA

Advanced <a href ="baseBeans.com">Struts Training</a> and project recovery in North East.
Open Source <a href ="baseBeans.com">Content Management</a>  basicPortal sofware
Best practice<a href ="baseBeans.com">Struts Support</a> v.1.1 helper ScafflodingXPress




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