[
https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833990#action_12833990
]
Finn Bock commented on CLK-624:
-------------------------------
Before we all go ahead and submit translations for month and day names (and
abbreviations), I think it would make more sense for DateField to generate
these names from here:
http://java.sun.com/j2se/1.4.2/docs/api/java/text/DateFormatSymbols.html#getMonths%28%29
http://java.sun.com/j2se/1.4.2/docs/api/java/text/DateFormatSymbols.html#getShortMonths%28%29
http://java.sun.com/j2se/1.4.2/docs/api/java/text/DateFormatSymbols.html#getWeekdays%28%29
http://java.sun.com/j2se/1.4.2/docs/api/java/text/DateFormatSymbols.html#getShortWeekdays%28%29
By creating the arrays from java's names we will AFAIK also instantly "support"
all language so that DateField.SUPPORTTED_LANGUAGES can be removed.
> Add missing translations for Date Field
> ---------------------------------------
>
> Key: CLK-624
> URL: https://issues.apache.org/jira/browse/CLK-624
> Project: Click
> Issue Type: Bug
> Components: examples
> Affects Versions: 2.1.0
> Environment: Apache Tomcat 6
> Reporter: Rafal Rusin
> Assignee: Bob Schellink
> Fix For: 2.2.0
>
> Attachments: CLK-624-calendar-1.0.2.patch, CLK-624.patch
>
>
> Below is the full list of translations necessary for the DateField control.
> If you would like to add a translation please add it as a patch or in a
> comment.
> // Full month names
> Date.months = new
> Array('January','February','March','April','May','June','July','August','September','October','November','December');
> // Month abbreviations
> Date.monthAbbreviations = new
> Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
> // Full day names
> Date.dayNames = new
> Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
> // Day abbreviations
> Date.dayAbbreviations = new
> Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
> // Weekdays displayed by popup calendar
> Date.weekdays = new Array('S','M','T','W','T','F','S');
> Date.first_day_of_week = 0;
> _translations = {
> "OK": "OK",
> "Now": "Now",
> "Today": "Today",
> "Clear": "Clear"
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.