On Tuesday, March 1, 2011 9:16:52 AM UTC+1, Andy wrote:
>
> I'm trying to upgrade to 2.2 and noticing some differences in how our 
> code is compiled with regard to i18n. 
>
> I have the following in my .gwt.xml file: 
>
>         <inherits name="com.google.gwt.i18n.I18N"/> 
>         <inherits name="com.google.gwt.i18n.CldrLocales"/> 
>         <extend-property name="locale" values="en"/> 
>         <set-property-fallback name="locale" value="en"/> 
>
> When I compile, it says it is compiling 10 permutations and in the 
> output folder, I have 5 .cache.html files. 
>
> In my page, I have the following: 
>
>         <meta name="gwt:property" content="locale=en"> 
>
> When I try to load the page (compiled with -pretty in this case), I 
> get the following error in Firebug: 
>
>         "answers[computePropValue("locale")] is undefined" 
>
> If I watch the expression, I can confirm that 
> computePropValue("locale") is "en". 
>
> Looking at answers in the watch window of Firebug, answers["default"] 
> is defined, but not answers["en"]. 
>
> If I remove the meta tag that specifies locale=en, it works fine. 
>
> If I add the following to add the "ja" locale, it compiles 15 
> permutations and results in 10 .cache.html files: 
>
>         <extend-property name="locale" values="ja"/> 
>
> Also, answers["default"] and answers["ja"] are defined, but not 
> answers["en"]. 
>
> We can work around this, but it seems new. Thoughts?
>

See http://code.google.com/p/google-web-toolkit/issues/detail?id=5769#c1
 

> Note that this doesn't happen in all of our modules, but I haven't 
> figured out what is different about the one where this is happening (I 
> assume in the other cases, "default" and "en" are not identical).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to