[ https://issues.apache.org/struts/browse/STR-3063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
qiuhao updated STR-3063:
------------------------
Flags: [Patch, Important] (was: [Important, Patch])
Description:
The following is the lookup sequence of Struts when the language of IE is "en_US"
(user locale or session locale) and the locale of JVM is "zh_CN"(default
locale).
1. ApplicationResources_en_US.properties
2. ApplicationResources_en.properties
3. ApplicationResources_zh_CN.properties.
4. ApplicationResources.properties.
There are two problems in this lookup sequence. The first, Struts should pick
up ApplicationResources.propertis after ApplicationResources_en.propertis. The
second, if ApplicationResources_zh_CN.properties doesn't exist, Struts should
pick up ApplicationResources_zh.properties. The correct lookup sequence should
be
1. ApplicationResources_en_US.properties
2. ApplicationResources_en.properties
3. ApplicationResources.properties
4. ApplicationResources_zh_CN.properties.
5. ApplicationResources_zh.properties.
was:
The following is the lookup quence of Struts when the language of IE is "en_US"
(user locale or session locale) and the locale of JVM is "zh_CN"(default
locale).
1. ApplicationResources_en_US.properties
2. ApplicationResources_en.properties
3. ApplicationResources_zh_CN.properties.
4. ApplicationResources.properties.
There are two problems in this lookup sequence. The first, Struts should pick
up ApplicationResources.propertis after ApplicationResources_en.propertis. The
second, if ApplicationResources_zh_CN.properties doesn't exist, Struts should
pick up ApplicationResources_zh.properties. The correct lookup sequence should
be
1. ApplicationResources_en_US.properties
2. ApplicationResources_en.properties
3. ApplicationResources.properties
4. ApplicationResources_zh_CN.properties.
5. ApplicationResources_zh.properties.
6. ApplicationResources.properties.
> Incorrect lookup sequence of resource bundle
> --------------------------------------------
>
> Key: STR-3063
> URL: https://issues.apache.org/struts/browse/STR-3063
> Project: Struts 1
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.1 Final
> Environment: Windows 2000 server + JDK 1.4.2_04
> Reporter: qiuhao
>
> The following is the lookup sequence of Struts when the language of IE is "en_US"
> (user locale or session locale) and the locale of JVM is "zh_CN"(default
> locale).
> 1. ApplicationResources_en_US.properties
> 2. ApplicationResources_en.properties
> 3. ApplicationResources_zh_CN.properties.
> 4. ApplicationResources.properties.
> There are two problems in this lookup sequence. The first, Struts should pick
> up ApplicationResources.propertis after ApplicationResources_en.propertis. The
> second, if ApplicationResources_zh_CN.properties doesn't exist, Struts should
> pick up ApplicationResources_zh.properties. The correct lookup sequence should
> be
> 1. ApplicationResources_en_US.properties
> 2. ApplicationResources_en.properties
> 3. ApplicationResources.properties
> 4. ApplicationResources_zh_CN.properties.
> 5. ApplicationResources_zh.properties.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|