You actually have three properties, not two - the 'extend-property' declaration means 'add these to the existing list of values'. Running the SOYC report will give you the full story on your properties and permutations (and lots more besides).
Try a <set-property line to specify not only 'add these to the existing list' but additionally 'and restrict to just these settings'. Notice that you already use set-property for the user.agent, the same should be done for locales.
This existing local is 'default', and is what is using your AppResources.properties - without 'default' being in the list, that file may not be required (I don't remember one way or the other).
On Wednesday, August 13, 2014 8:47:13 AM UTC-5, Developer wrote:
-- Try a <set-property line to specify not only 'add these to the existing list' but additionally 'and restrict to just these settings'. Notice that you already use set-property for the user.agent, the same should be done for locales.
This existing local is 'default', and is what is using your AppResources.properties - without 'default' being in the list, that file may not be required (I don't remember one way or the other).
On Wednesday, August 13, 2014 8:47:13 AM UTC-5, Developer wrote:
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