GWT:本地化后托管模式出错

时间:2011-01-26 16:14:49

标签: java gwt

在我的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"> 

现在我无法在托管模式下启动我的应用。我收到以下错误

  

[错误] [app] - 延期绑定   失败了   'com.google.gwt.i18n.client.impl.CldrImpl';   期待随后的失败

     

[错误] [app]无法加载模块   入门级课程   dk.blabla.app.client.App(见   相关的例外细节)   java.lang.RuntimeException:延迟   绑定失败了   'com.google.gwt.i18n.client.impl.CldrImpl'   (你忘了继承一个必需的   模块?)

编辑:

顺便说一下,我正在使用google插件进行eclipse。

1 个答案:

答案 0 :(得分:1)

我认为你应该添加

<inherits name="com.google.gwt.i18n.CldrLocales"/>

到你的app.gwt.xml。 有关详细信息,请参阅Runtime Locales