Tuesday, September 25, 2012

Re: Change i18n constants in GWT for sweden

Hi Thomas

Thank you for your help.
It seems that the format is correct and we got wrong informations about this.
It's a bit confusing that one of them is year-month-day and the others are day-month-year.

Kind regards
Roman

Am Freitag, 21. September 2012 10:31:14 UTC+2 schrieb Thomas Broyer:


On Friday, September 21, 2012 10:16:11 AM UTC+2, roman_e wrote:
Hello

I use the i18n functionality of GWT to create a multilingual webapplication and I'd like to translate it into swedish too.
But there's the problem that the date format for GWT is wrong in its constants file, so it's in the wrong format on the page.

Those formats come from the Unicode Consortium's CLDR: http://cldr.unicode.org/
I see they released a new version a week ago, which brings a lot of changes according to their announcement, so hopefully it's just that GWT should be updated to use these new definitions?
 
Is it possible to overwrite these constants somehow without changing the file in the gwt-user.jar itself?

I think the easiest would be to define a new locale (e.g. se_XX) where you override the formats you want to change, and make sure you never use the "se" locale but always the se_XX one (putting only se_XX in the "locale" property might be enough, with the drawback that "se" would then use the fallback locale).

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/LG4PmKg3r5AJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment