You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jun Tsai (JIRA)" <ta...@jakarta.apache.org> on 2005/09/01 04:55:05 UTC
[jira] Created: (TAPESTRY-616) DateTranslator provides a wrong pattern string.
DateTranslator provides a wrong pattern string.
-----------------------------------------------
Key: TAPESTRY-616
URL: http://issues.apache.org/jira/browse/TAPESTRY-616
Project: Tapestry
Type: Wish
Components: Framework
Versions: 4.0
Environment: Tapestry 4.0-beta5
Locale:zh_CN
Reporter: Jun Tsai
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: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
[jira] Commented: (TAPESTRY-616) DateTranslator provides a wrong pattern string.
Posted by "Andreas Andreou (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-616?page=comments#action_12320792 ]
Andreas Andreou commented on TAPESTRY-616:
------------------------------------------
This problem also exists in many other locales.
It seems that the toLocalizedPattern method of the SDK is buggy.
I've written about it in issue 334,
http://issues.apache.org/jira/browse/TAPESTRY-334
Regarding your solution, it does not return a localized pattern (but at least that's better than the weird AAAANNJJ that I also get).
> DateTranslator provides a wrong pattern string.
> -----------------------------------------------
>
> Key: TAPESTRY-616
> URL: http://issues.apache.org/jira/browse/TAPESTRY-616
> Project: Tapestry
> Type: Wish
> Components: Framework
> Versions: 4.0
> Environment: Tapestry 4.0-beta5
> Locale:zh_CN
> Reporter: Jun Tsai
>
> 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: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
[jira] Resolved: (TAPESTRY-616) DateTranslator provides a wrong
pattern string.
Posted by "Andreas Andreou (JIRA)" <ta...@jakarta.apache.org>.
[ 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