Wednesday, August 13, 2014

Generation of permutations

Hi,

in our GWT app we are using two locales which are defined in the App.gwt.xml like this

<extend-property name="locale" values="de_DE,en_US" />

We have an interface AppResources which extends the interfaces Constants and ContantsWithLookup. Moreover we have three resource-property files named AppResources.properties, AppResources_de_DE.properties and AppResources_en_US.properties.

When we set the user agent to one browser by

<set-property name="user.agent" value="ie9" />

GWT compiler is comiling three permutations even though we have just two locales.

If we remove the AppResources.properties file we get an compile error:

Invoking generator com.google.gwt.i18n.rebind.LocalizableGenerator
[INFO]             Processing interface de.app.AppResources
[INFO]                Generating method body for someLabel()
[INFO]                   [ERROR] No resource found for key 'someLabel'

What are we doing wrong?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment