[ https://issues.apache.org/struts/browse/STR-2434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Benedict updated STR-2434:
-------------------------------
Fix Version/s: 1.4.0
Assignee: (was: Struts Developers)
> [i18n] Country and language locale not usable for locale validation-constants
> -----------------------------------------------------------------------------
>
> Key: STR-2434
> URL: https://issues.apache.org/struts/browse/STR-2434
> Project: Struts 1
> Issue Type: Improvement
> Components: Core
> Affects Versions: 1.2.6 Beta
> Environment: Operating System: other
> Platform: Other
> Reporter: marc schipperheyn
> Priority: Minor
> Fix For: 1.4.0
>
>
> When you have a system for multiple countries and multiple languages:
> * Languages are flexible across all country sites: a user needs to be able to
> switch to another language on country NL and country US
> * Countries have country specific validation-constants: e.g. zipcode regular
> expression checks
> * You don't want to duplicate language resources. All nl language parameters
> should go into _nl.properties, not _nl_NL.properties b/c this would mean
> duplicating all language files across all country implementations
> * You don't want to put nl content in an _NL file, b/c that would make country
> sites with flexible languages impossible
> It is not possible to combine this:
> * use locale nl: loads _nl.properties, but does not load validation-
> constants_NL.xml
> * use locale NL: does not load _nl.properties, but does load validation-
> constants_NL.xml
> * user locale nl_NL: requires you to copy content of _nl.properties to
> _nl_NL.properties, _nl_US.properties etc
> One option is to change the locale temporarily during the request by
> overriding processValidate. Unfortunately, this works to the point where an
> error message is retrieved on a DynaValidatorForm, the error message is
> retrieved from _NL.properties (doesn't exist).
> Kind regards,
> Marc
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|