[ http://issues.apache.org/jira/browse/TAPESTRY-616?page=all ]
Andreas Andreou resolved TAPESTRY-616.
--------------------------------------
Fix Version/s: unspecified
Resolution: Duplicate
> DateTranslator provides a wrong pattern string.
> -----------------------------------------------
>
> Key: TAPESTRY-616
> URL: http://issues.apache.org/jira/browse/TAPESTRY-616
> Project: Tapestry
> Issue Type: Wish
> Components: Framework
> Affects Versions: 4.0
> Environment: Tapestry 4.0-beta5
> Locale:zh_CN
> Reporter: Jun Tsai
> Fix For: unspecified
>
>
> My Page:
> <binding name="translator" value="translator:date,pattern=yyyyMMdd"/>
> My locale is zh_CN.
> give me wrong message about pattern is "AAAANNJJ".
> I can't understand AAAANNJJ.I think we understand yyyyMMdd
> In DateTranlator.java ,I find that method:
> protected Object[] getMessageParameters(Locale locale, String label)
> {
> String pattern =
> getDateFormat(locale).toLocalizedPattern().toUpperCase(locale);
> return new Object[]
> { label, pattern };
> }
> I wish change it as:
> String pattern = getDateFormat(locale).toPattern();
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]