You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org> on 2005/12/23 08:57:34 UTC

[jira] Commented: (MYFACES-589) inputCalendar localized month names problem

    [ http://issues.apache.org/jira/browse/MYFACES-589?page=comments#action_12361176 ] 

Martin Marinschek commented on MYFACES-589:
-------------------------------------------

This should be fixed in the head-version.

regards,

Martin

> inputCalendar localized month names problem
> -------------------------------------------
>
>          Key: MYFACES-589
>          URL: http://issues.apache.org/jira/browse/MYFACES-589
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk, Implementation
>     Reporter: Tomas Havelka
>     Assignee: Martin Marinschek
>      Fix For: Nightly

>
> When popup calendar renders text like "Today is <date>", if date comes from localized month names array 'jscalendarMonthName', so javascript goes render something like ... + jscalendarMonthName[jscalendarMonthNow].substring(0,3) + ... as the month name, but it works just in non diacritic languages such as english, but when some other non-english character apperas in month name it goes wrong output because of character replacing by its appropriate entity (for example &#225; for character รก from czech language) and js substring function. 
> The easiest solution is to remove substring function from javascript.
> Another one is to add parameter such as popupTodayFormat similar to popupDateFormat to format this text manually and let javascript just to write this formatted string with prefix text given by popupTodayString parameter.
> With regards 
> Tom 

-- 
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