google-code-export / gwt-platform

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

New feature: Support default locales other than empty string in mergelocales.py #212

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use a default locale other than empty (e.g. specifically set to 'en')
2. Try to use mergelocales.py
3. It fails as LocalizableResource.properties does not exist

It would be good to introduce an optional parameter to specify default locale. 
To get this working locally I haven't used a parameter as I'm not very familiar 
with Python but I have done:

1. Added "defaultLocale = 'en'" at the top
2. Changed line 463 to match against defaultLocale and not ''
3. Changed line 480 to match against defaultLocale and not ''

This seems to work but obvious is not very flexible (would be better as a 
parameter).

Original issue reported on code.google.com by cknow...@gmail.com on 22 Sep 2010 at 10:01

GoogleCodeExporter commented 9 years ago

Original comment by philippe.beaudoin on 22 Sep 2010 at 1:21

GoogleCodeExporter commented 9 years ago

Original comment by philippe.beaudoin on 22 Sep 2010 at 1:21

GoogleCodeExporter commented 9 years ago

Original comment by philippe.beaudoin on 22 Sep 2010 at 1:45

GoogleCodeExporter commented 9 years ago

Original comment by philippe.beaudoin on 22 Sep 2010 at 1:59

GoogleCodeExporter commented 9 years ago

Original comment by philippe.beaudoin on 25 Jan 2011 at 6:36

GoogleCodeExporter commented 9 years ago
Bumping to 0.7, preparing release 0.6.

Original comment by philippe.beaudoin on 6 Jun 2011 at 8:17

GoogleCodeExporter commented 9 years ago

Original comment by philippe.beaudoin on 1 Feb 2012 at 6:52