1) Yes I am using struts as the web framework, I have the following lines
inside the struts.xml, so how could I change that to make loading two set of
ApplicationResources.properties ? what does this <constant
name="struts.custom.i18n.resources" value="ApplicationResources,errors"/> 
mean ?

    <constant name="struts.devMode" value="false"/>
    <constant name="struts.locale" value="en"/>
    <constant name="struts.i18n.encoding" value="UTF-8"/>
    <constant name="struts.action.extension" value="html"/>
    <constant name="struts.objectFactory" value="spring"/>
    <constant name="struts.custom.i18n.resources"
value="ApplicationResources,errors"/>
    <constant name="struts.multipart.maxSize" value="2097152"/>
    <constant name="struts.ui.theme" value="css_xhtml"/>

2) In fact, I want to have both english & chinese caption/message appear on
the screen at the same time, if that's possible then please give me a
pointer to where to change it

3) Programatically, how to detect the browser locale ? A pointer to that
part will be appreciated, 
   How to pass in the locale from the user ?


mraible wrote:
> 
> On 3/27/07, Fan <[EMAIL PROTECTED]> wrote:
>>
>> 1)Is that possible to load two set of ApplicationResources.properties ?
> 
> It depends on the web framework you're using.  If it's Struts, the
> i18n bundles are specified at the top of struts.xml.
> 
>>
>> 2)Is that possible to have two different languages , maybe chinese &
>> english, being used together in Appfuse 2.0 ?
> 
> If the keys are not found in the Chinese version, it'll default to
> ApplicationResources.properties (which is currently English).  So this
> may be possible - I'm not sure what you're trying to do here.
> 
>>
>> 3)How does Appfuse 2.0 chose which ApplicationResource.properties to load
>> ?
> 
> It uses the browser's locale, or if the user passes in locale=xx, it
> persists that locale for the duration of the user's session.
> 
>>
>> Hope I can get a pointer to which part of the coding I could change to
>> settle the above mentioned questions ?
> 
> If I haven't answered your questions, please let me know.
> 
> Matt
> 
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Possible-to-load-two-set-of-ApplicationResources.properties---tf3473697s2369.html#a9694389
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Possible-to-load-two-set-of-ApplicationResources.properties---tf3473697s2369.html#a9694790
Sent from the AppFuse - User mailing list archive at Nabble.com.

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

Reply via email to