We're are having problems to customize the I18N functionality of GWT.
We are currently using a static property file to generate our interfaces we use in the code. Apart from loading the default locales like "de" or "en" at runtime we are also looking for a way to load custom language files dependent of another property (e.g. called "dist").
In detail:
In our .gwt.xml we have both properties defined like this:
<extend-property values="de" name="locale"/>
<extend-property values="e开发者_Go百科n" name="locale"/>
<define-property name="x.dist" values="dist1,dist2,dist3"/>
We now want to have one language file which contains all generic properties, and for each distribution and language other language files which can contain special values. All these interfaces should also be generated automatically with the maven gwt plugin "i18nMessagesBundle".
We already tried to use a "SpecialLocalMessage" interface which extends all the special dist interfaces but we were not able to replace those in the gwt.xml via "<replace-with>"
because there are classes but not interfaces required.
Do you see any solution for this problem?
精彩评论