[
https://issues.apache.org/jira/browse/WW-5543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart updated WW-5543:
------------------------------
Fix Version/s: 7.1.0
> Better support for the display of numerals in Arabic languages
> --------------------------------------------------------------
>
> Key: WW-5543
> URL: https://issues.apache.org/jira/browse/WW-5543
> Project: Struts 2
> Issue Type: Improvement
> Components: Core Interceptors
> Affects Versions: 7.0.3
> Reporter: zoran
> Priority: Major
> Fix For: 7.1.0
>
> Attachments: DefaultLocaleProvider.java, I18nInterceptor.java,
> LocaleProvider.java
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> We have a web based application which supports over languages and we noticed
> errors in processing forms when Arabic, Pashto or similar languages were
> selected. We discovered the issue stems from these languages having their own
> non-latin number system. This meant form based arrays were failing and also
> using object ids as HTML parameters was also causing problems.
> The simple solution is to set struts to use latin based number units by
> default. The solution is to modify three files. What we do is add a parameter
> boolean, alwaysDisplayLatinNumbers, to the I18N Interceptor which is true by
> default and allow it to be set through the use of a config parameter.
> If true, we use a locale builder to specify the number units as latin:
> {{return new
> Locale.Builder().setLanguage(localeStr).setExtension(Locale.UNICODE_LOCALE_EXTENSION,"nu-latn").build();}}
> otherwise it operates as before.
> Let me know if you guys have any questions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)