localization - GWT permutation count -


when

<set-property name="user.agent" value="ie9,gecko1_8,safari,opera" /> 

the compiler 4 permutations;

but adding :

<set-property name="user.agent" value="ie9,gecko1_8,safari,opera" />  <extend-property name="locale" values="nl" /> <extend-property name="locale" values="en" />  <collapse-property name="locale" values="en*" /> <collapse-property name="locale" values="nl*" /> <set-property-fallback name="locale" value="en" /> 

i see 48 permutations. expect 4 * 2 = 8 permutations.

what 48 permutations and/or there way instruct compiler show permutations represent during compilation process ?

i have in module <inherits name="com.google.gwt.i18n.cldrlocales" />

*update* : change gives 56 permutations

<extend-property name="locale" values="nl_nl" /> <extend-property name="locale" values="nl_be" /> <extend-property name="locale" values="en_gb" /> <set-property-fallback name="locale" value="en_gb" /> <set-property name="user.agent" value="ie9,gecko1_8,safari,opera" /> 

it still not clear how compiler gets number ?

this comment thomas revealed solution :

you should have <set-property name="locale" value="en,nl"/> or you'll still have default locale though you'll never use it.

so modified :

<extend-property name="locale" values="nl_nl" /> <extend-property name="locale" values="nl_be" /> <extend-property name="locale" values="en_gb" /> <set-property name="locale" value="en_gb,nl_nl,nl_be"/> <!-- <collapse-property name="locale" values="en*" /> <collapse-property      name="locale" values="nl*" /> --> <set-property-fallback name="locale" value="en_gb" /> 

=> 12 permutations, expected 4 (browsers) * 3 (lang/country) = 12 permutations


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -