dcsimg
i18n problem with using struts
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   volkan_tokmak
Posted On:   Friday, January 25, 2008 07:44 AM

I am preparing a multi language support for a project. I have 2 resource file for now, these are ApplicationResource(for English words) and ApplicationResources_de(for German words). And I have flag buttons when user login into system can see flags(German and English flags). I defined these resources files in struts-config,xml like this: parameter="com.ps.action.common.config.ApplicationResources_de" /> and than, I use words from resource files like this: I want to this: if user login into system user can see flags, than he can click flags, if he clicks German flag ApplicationResoirces_de.properties file will be called and I will see this i   More>>

I am preparing a multi language support for a project. I have 2 resource file for now, these are ApplicationResource(for English words) and ApplicationResources_de(for German words). And I have flag buttons when user login into system can see flags(German and English flags). I defined these resources files in struts-config,xml like this:

			


parameter="com.ps.action.common.config.ApplicationResources_de" />


and than, I use words from resource files like this:
			



I want to this: if user login into system user can see flags, than he can click flags, if he clicks German flag ApplicationResoirces_de.properties file will be called and I will see
			



this in German. when I click German flag, bundle must be change to "german" automatically. How I can do this?    <<Less
About | Sitemap | Contact