リソース プロパティ ファイルを設定してアプリケーションをローカライズしようとしています。
public static interface MenuConstants extends Constants {
String categoryCells();
}
そして、私は対応するものを持っていますLocalizableResource_en.properties
:
categoryCells = Cell Widgets
しかし、次の行で失敗します。
MenuConstants constants = GWT.create(MenuConstants.class);
メッセージ付き:
[TRACE] [XX] - Generating method body for categoryCells()
[ERROR] [XX] - No resource found for key 'categoryCells '
[WARN] [XX] - Searched the following resources:
*.properties
GWT がリソースを見つけられるようにするには、ファイルをどこに置くべきか知りたいですか?
私のgwt.xml
ファイル:
<inherits name="com.google.gwt.i18n.I18N"/>
<inherits name="com.google.gwt.i18n.CldrLocales"/>
<extend-property name="locale" values="en"/>
<extend-property name="locale" values="fr"/>
<set-property-fallback name="locale" value="en"/>