Thanks for the suggestion. I tried it but even with a valid locale as
the suffix of the file, it still gave the same error when attempting
to compile. Perhaps I'm missing an essential piece of information that
I cannot find!

The name of the file is InternationalizationConstants_es-
GTC.properties and perhaps it was a happy accident that it worked
before.

Regards

Craige

On Mar 19, 3:03 pm, Danny Goovaerts <[email protected]> wrote:
> es_GTC is normally not a valid locale. The "country" part of a locale
> is the two character ISO country code. GTC is not a valid country
> code.
> A reason might be that GWT 1.5 was not strict about the country code
> format, and that 2.0 is much stricter.
>
> Danny
> On 19 mrt, 14:28,craige<[email protected]> wrote:
>
> > I am trying to migrate a GWT 1.5 application (which definitely works
> > without problem) to 2.03 and I am having problems with the compilation
> > of the application. My application uses various locales which are
> > defined in the Main.gwt.xml file
>
> >         <extend-property name="locale" values="es"/>
> >         <extend-property name="locale" values="es_GTC"/>
> >         <extend-property name="locale" values="en"/>
>
> > The problem comes when the compiler attempts to compile the locale
> > es_GTC and the file InternationalizationConstants_es_GTC.properties
>
> > The error from the compiler was as follows :
>
> >         Validating newly compiled units
> >             [ERROR] Errors in 'generated://
> > 6156E89F6D1ADDBDACCA415E145F7A5A/com/google/gwt/i18n/client/impl/
> > LocaleInfoImpl_es-gtc.java'
> >                [ERROR] Line 10: The type LocaleInfoImpl_es is already
> > defined
> >                [ERROR] Line 10: Syntax error on token "-", < expected
> >                [ERROR] Line 10: Syntax error, insert ">" to complete
> > ReferenceType1
>
> > This previously worked with GWT 1.5. If I remove the locale
>
> > <extend-property name="locale" values="es_GTC"/>
>
> > from the Main.gwt.xml file, the application compiles and runs without
> > problem. It seems that the GWT compiler has a problem with the -
> > character in the name of the autogenerated java method which is
>
> > public class LocaleInfoImpl_es-gtc extends LocaleInfoImpl_shared {
>
> > Anybody got any suggestions? I've looked in the documentation for GWT
> > 2.x and there is nothing to indicate that this has changed.
>
> > Thanks
>
> >Craige
>
>

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