0
我试图设置资源属性文件来本地化我的应用程序。gwt i18n LocalizableResource文件路径
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:
我想知道我在哪里ld把*.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"/>