Locale does not change?
Hello,
To make my GWT application internationalizable, I created a message
interface as follow:
@DefaultLocale("fr")
@Generate(format =
{ "com.google.gwt.i18n.rebind.format.PropertiesFormat" }, fileName
= "Messages", locales =
{ "fr", "en" })
public interface MessageResources extends Messages
{
public static final MessageResources MR =
GWT.create(MessageResources.class);
@DefaultMessage("Identifiant")
public String login();
@DefaultMessage("Mot de passe")
public String password();
}
Then I configured my project to support the English and French as
follow:
<inherits name='com.google.gwt.i18n.I18N' />
<extend-property name="locale" values="fr" />
<extend-property name="locale" values="en" />
I compiled my project with the option -extra extra, and I copied the
two files. properties in the same package as the interface. But when I
run my application the parameter ?Locale=en has no effect and the
application remains in French!
Thanx in advance for your helps
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home