1
は、私は、メッセージインタフェースを作成:GWT:ロケールは変更されませんか?次のように私のGWTアプリケーションの国際化を行うために
@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();
}
それから私は、次のように英語とフランス語をサポートするために私のプロジェクトを設定した:
<inherits name='com.google.gwt.i18n.I18N' />
<extend-property name="locale" values="fr" />
<extend-property name="locale" values="en" />
私は自分のプロジェクトをコンパイルオプション-extra extra、そして2つのファイルをコピーしました。インターフェイスと同じパッケージ内のプロパティ。しかし、私のアプリケーションを実行すると、パラメータ?Locale = enは効果がなく、アプリケーションはフランス語のままです!