Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support additional locales for date/time formatting #36

Closed
GoogleCodeExporter opened this issue Sep 9, 2015 · 1 comment
Closed

Support additional locales for date/time formatting #36

GoogleCodeExporter opened this issue Sep 9, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed title: Support additional locales for date/time formatting
  • Changed state: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant