nwixsom / gwt-cal

Automatically exported from code.google.com/p/gwt-cal
0 stars 0 forks source link

Support additional locales for date/time formatting #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Description of the new feature:
In several countries people use a 24-hour clock instead of am/pm. One 
should be able to choose which clock convension to use.

Code / psuedo-code:
maybe something like:
CalendarSettings.setClockConvension(Calendar.ClockConvensions.24Hours);

Original issue reported on code.google.com by uzi.land...@gmail.com on 10 Mar 2010 at 9:27

GoogleCodeExporter commented 9 years ago
All Date/Time formats are internationalized using GWT's built-in i18n 
functionality.

See the following folder:
http://code.google.com/p/gwt-cal/source/browse/branches/version-0.9/gwt-
cal/src/main/java/com/bradrydzewski/gwt/calendar/client/i18n/

You will notice formats are driven by localized properties files. Your locale, 
Sweden, is not included. When a 
locale is not included, gwt-cal defaults to the EN locale which does not use a 
24hour clock.

So if you would like, you can create a Swedish version of the properties file - 
see the FR version as an 
example, since it uses a 24 hour clock.

Original comment by Brad.Ryd...@gmail.com on 10 Mar 2010 at 4:20