Thomas - Thanks for the answer, but it doesn't work. I created a
simple test project with one class. Here's the module.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='localetest'>
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<extend-property name="locale" values="en"/>
<set-property name="locale" value="en" />
<set-property-fallback name="locale" value="en"/>
<entry-point class='com.aravo.localetest.client.LocaleTest'/>
<source path='client'/>
<source path='shared'/>
</module>
Here's the client code:
package com.aravo.localetest.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.i18n.client.LocaleInfo;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
public class LocaleTest implements EntryPoint
{
public void onModuleLoad()
{
RootPanel.get().add(new Label("Locales:"));
String[] locales = LocaleInfo.getAvailableLocaleNames();
for (String locale : locales)
{
RootPanel.get().add(new Label(locale.toString()));
}
}
}
When I run this, the UI still prints out:
Locales:
default
en
In other words, I still get two locales, default and en. I just want
one.
I tried to remove the <extend-property name="locale" values="en"/> in
the XML file, but then I get an error from GWT saying:
Unexpected exception while processing element set-property - the value
"en" was not previously defined.