【发布时间】:2011-01-26 16:14:48
【问题描述】:
在使我的 gwt 应用程序“国际化”后,我遇到了一些问题。
我的 app.gwt.xml:
<module rename-to='app'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User' />
<inherits name="com.google.gwt.i18n.I18N" />
<!-- Inherit the default GWT style sheet. -->
<inherits name='com.google.gwt.user.theme.standard.Standard' />
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
<!-- Specify the app entry point class. -->
<entry-point class='dk.blabla.app.client.Entry' />
<!-- Specify the paths for translatable code -->
<source path='client' />
<source path='shared' />
<!-- Specify the locales you will be supporting -->
<extend-property name="locale" values="da" />
</module>
我将以下内容添加到 app.html 标头
<meta name="gwt:property" content="locale=en">
现在我无法在托管模式下启动我的应用程序。我收到以下错误
[ERROR] [app] - 延迟绑定 失败了 'com.google.gwt.i18n.client.impl.CldrImpl'; 期待后续的失败
[ERROR] [app] 无法加载模块 入口点类 dk.blabla.app.client.App(见 有关详细信息的相关异常) java.lang.RuntimeException:延迟 绑定失败 'com.google.gwt.i18n.client.impl.CldrImpl' (您是否忘记继承所需的 模块?)
编辑:
顺便说一句,我正在使用带有 google 插件的 eclipse。
【问题讨论】: