[ 
https://issues.apache.org/jira/browse/CLK-650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12882501#action_12882501
 ] 

Bob Schellink commented on CLK-650:
-----------------------------------

Good points Finn. Think this can go in. We should add a note on the upgrade 
path about this change as it could affect existing systems, but probably in a 
good way.

With regards to the default date format, it is quite easy to change globally in 
an application page.properties files:

  date-format-pattern=dd/MM/yyyy

Another optimization we could add is to define static defaults to cut down on 
the amount of setup options being rendered. For example we only need to render 
the JS options 'buttons, time, formatValue, and year_range' if the differ from 
the default value. If you don't have time to add this I'll try and get it done.

> Load DateField translations from JDK
> ------------------------------------
>
>                 Key: CLK-650
>                 URL: https://issues.apache.org/jira/browse/CLK-650
>             Project: Click
>          Issue Type: Improvement
>          Components: extras
>    Affects Versions: 2.2.0
>            Reporter: Bob Schellink
>            Assignee: Finn Bock
>            Priority: Minor
>         Attachments: datefield.patch, datefield_no_js.patch
>
>
> From 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to