GWT 2.X No resource found for key

前端 未结 2 903
庸人自扰
庸人自扰 2020-12-18 01:05

I\'ve developed a GWT app using i18n internationalization. In Host/Dev mode it works fine, but launching GWT compile gives this error: No resource found for key xxx, like be

相关标签:
2条回答
  • 2020-12-18 01:22

    also 2 important things (see docs):

    In order to use internationalized characters, make sure that your host HTML file contains the charset=utf8 content type in the meta tag in the header:

    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    

    You must also ensure that all relevant source and .properties files are set to be in the UTF-8 charset in your IDE.

    0 讨论(0)
  • 2020-12-18 01:44

    I had a similar error once when using internationalization. I had properties files for English and Polish languages: labels_en.properties and labels_pl.properties. The solution was to create also a file labels.properties (in my case it was just a copy of labels_en.properties). It is weird but somehow it helped.

    You should also keep your properties files in the same package as your RTEMessages class.

    0 讨论(0)
提交回复
热议问题