click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Finn Bock (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CLK-624) Add missing translations for Date Field
Date Tue, 16 Feb 2010 08:52:27 GMT

     [ https://issues.apache.org/jira/browse/CLK-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Finn Bock updated CLK-624:
--------------------------

    Attachment: datefield.patch

This patch injects javascript that defines Date.month, Date.monthAbbreviations, Date.dayNames
and Date.dayAbbreviations with values from DateFormatSymbols. With these definition the date
string generated by the javascript calendar is always a valid date that can be parsed by java's
dateparser. So the list of supported languages are then no longer needed.

Regarding the remaining translations, I would *strongly* prefer that they were read from the
DateField property file and injected into the javascript the same way as month names. So that
all string are translated in the same way.

> 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, datefield.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.


Mime
View raw message