You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Andreas Andreou (JIRA)" <ta...@jakarta.apache.org> on 2006/08/09 03:30:14 UTC
[jira] Resolved: (TAPESTRY-616) DateTranslator provides a wrong
pattern string.
[ 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org