I don't know why, but GWT check for the user agent at runtime to assert it
is the corresponding user agent for that given permutation. I don't think
you can change that.

Regarding i18n, afaik you can restrict the number of locales on your
*.gwt.xml file as you did for user agent, there's no need to edit gwt's
I18N.gwt.xml file

On Mon, Aug 15, 2011 at 1:30 PM, Alfredo Quiroga-Villamil <[email protected]
> wrote:

> Hello group:
>
> Prior to GWT 2.3.0 I was able to limit the number of permutations generated
> by GWT by specifying the property user.agent. The generated JS had no
> references in it to the actual agent or anything related to it. When I use
> GWT 2.3.0 now to compile I see a few lines in the generated JS that
> reference User Agent. For example:
>
> ===== Generated JS output in pretty mode =====
>
> function $getRuntimeValue(){
>
>   var ua = navigator.userAgent.toLowerCase();
>
>  .......
>
> ===== Generated JS output in pretty mode =====
>
> I would like to use GWT to compile the Java code to JS and have it so that:
>
> 1. It only generates one version of the JS with no references to a browser
> in this case. It worked like that prior to GWT 2.3.0.
>
> 2. Furthermore I would like to also be able to use Constants and not have
> multiple permutations but just one.
>
> I've for now found a way to accomplish number 2 I think by modifying the
> I18N.gwt.xml default value for the locale and setting it to the one I want.
>
> Can someone recommend a way if possible to use GWT to compile to JS with
> just one permutation in GWT 2.3.0 without generating references to the UA in
> the generated JS?
>
> Thank you in advance for the help.
>
> Alfredo
>
>  --
> 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.
>



-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

-- 
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