tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Andreou (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Commented: (TAPESTRY-616) DateTranslator provides a wrong pattern string.
Date Thu, 01 Sep 2005 14:00:35 GMT
    [ 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


Mime
View raw message