click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Schellink <sab...@gmail.com>
Subject Re: Incorrect date string creation in German Locale with click-extras-2.2.0.jar DateField
Date Mon, 20 Dec 2010 12:10:55 GMT
Hi Philip,

I *think* this has been fixed in 2.3.0-M1. Date localization are now fetched from the Java
itself.

Kind regards

Bob

PS: I've noticed your email got caught in the mail filter. You can always subscribe to this
list as
outlined here:

http://click.apache.org/docs/click-online.html#mailing-lists


On 20/12/2010 22:54, Philip Mulrane (e-Cube) wrote:
> Hi,
> I've been using click and click-extras-2.2.0.jar in a Java Project.
> The German de.js belonging to calendar_date_select.js only has correct names for the
full month
> names, this means that using a date format string line "dd MMM" you will get "20 Dec"
and not "20
> Dez". This produces a string that will throw a parse exception when you try to parse
it using
> SimpleDateFormat in a German locale.
> Here are the corrections:
> ------------------------------------
> // Month abbreviations
> Date.monthAbbreviations = new
> Array('Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez');
> 
> // Full day names
> Date.dayNames = new Array('Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag');
> 
> // Day abbreviations
> Date.dayAbbreviations = new Array('So','Mo','Di','Mi','Do','Fr','Sa');
> ------------------------------------
> If someone would point me in the right direction, I would be happy to make the changes
in the
> repository.
> ,Philip
> 
> 
> 


Mime
View raw message