> I tried to set the default locale using another bit > of XML found at > http://code.google.com/intl/es-AR/webtoolkit/doc/latest/DevGuideI18nL..., > but I could not even get the GWT compile to work when including that > XML.
Me too; I thought I was just missing something. The documentation says to add this to the .gwt.xml file: <set-property-fallback name="locale" value="en"/> http://code.google.com/webtoolkit/doc/latest/DevGuideI18nLocale.html#LocaleDefault But that rule does not appear to be valid. I get this error message when I add it: The content of element type "module" must match "(inherits|source| public|super-source|entry-point|stylesheet| script|servlet|replace-with|generate-with|define-property|extend- property|set-property|clear-configuration- property|define-configuration-property|extend-configuration-property| set-configuration-property|property- provider|define-linker|add-linker)*". And I don't see it defined, even in the most current version of the dtd: http://google-web-toolkit.googlecode.com/svn/tags/2.1.0/distro-source/core/src/gwt-module.dtd On Dec 2, 5:23 am, Rick Porter <[email protected]> wrote: > I think I have solved my date/time issues by forcing a locale, but I > would welcome suggestions for a better solution. > > In my module XML, I added the following line to include some > internationalization code: > > <inherits name="com.google.gwt.i18n.I18N"/> > > I added the following line to my module XML for my locale: > > <extend-property name="locale" values="en_US"/> > > Including the locale extend-property increases the GWT compile time, > since the compile does each browser/locale combination. This was the > most undesireable piece of my solution since it basically doubled my > GWT compile times. I tried to set the default locale using another bit > of XML found > athttp://code.google.com/intl/es-AR/webtoolkit/doc/latest/DevGuideI18nL..., > but I could not even get the GWT compile to work when including that > XML. > > The last required piece was adding the following line in my HTML file: > > <meta name='gwt:property' content='locale=en_US'> > > This gives it a default locale, but I believe that it can be > overridden with request parameters. > > I did test this on a couple projects, and it worked for both. However, > I did not test with different locales. It seems that a new GWT 2.1 > project has the same issues, so this is not just a GWT 2.0 conversion > problem -- I tested by adding a DateBox to a new GWT default project. > > Enjoy, > Rick -- 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.
