2011-01-26 49 views
2

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

而且我加入了folloing到app.html头

<meta name="gwt:property" content="locale=en"> 

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

[错误] [应用] - 递延结合 失败 'com.google.gwt.i18n.client.impl.CldrImpl'; 期望后续故障

[错误] [应用]无法加载模块 入口点类 dk.blabla.app.client.App(参见 相关联,用于细节例外) 了java.lang.RuntimeException:延迟 结合失败 'com.google.gwt.i18n.client.impl.CldrImpl' (你忘记继承所需的模块 ?)

编辑:

顺便说一句,我使用的谷歌插件日食。

回答

1

我想你应该添加

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

您app.gwt.xml。 详细信息请参阅Runtime Locales

相关问题