Building GWT application with different locales

52 views
Skip to first unread message

Dawn Borg Costanzi

unread,
Apr 16, 2013, 5:57:41 AM4/16/13
to google-we...@googlegroups.com

Please help... It is the first time I am deploying an internationalized GWT application. I have 3 locale properties files within a 'shared' source folder:

  • com.blabla.shared
    • StringConstants.java
    • StringConstants.properties
    • StringConstants_fr.properties
    • StringConstants_es.properties

When running in development mode, I have no problem changing locale, using the '&locale=fr' syntax. However, once I build using Ant and deploy on Tomcat, I get a 404 error when trying to do the same.

I have the following in the gwt.xml file:

<inherits name="com.google.gwt.i18n.I18N"/>
<source path="client" />
<source path="shared" />
<extend-property name="locale" values="fr"/>
<extend-property name="locale" values="es"/>

However, it seems like the properties file are not being included correctly in the war file.

Thanks in advance,

Dawn

Thomas Broyer

unread,
Apr 16, 2013, 6:09:56 AM4/16/13
to google-we...@googlegroups.com
A 404 is independent from GWT. What URL are you trying exactly?

Dawn Borg Costanzi

unread,
Apr 16, 2013, 6:13:33 AM4/16/13
to google-we...@googlegroups.com


--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/Uzn4CSbHUG8/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jens

unread,
Apr 16, 2013, 6:25:01 AM4/16/13
to google-we...@googlegroups.com
Should be http://mytesturl.org:8686/codequest/?locale=fr

You use "?" to start the GET parameter list in the URL and "&" to append a second or more parameters to the list.

-- J.

Dawn Borg Costanzi

unread,
Apr 16, 2013, 6:30:45 AM4/16/13
to google-web-toolkit
Thanks a million! That worked :)
I had also tried /codequest?locale=fr, but missed out the /
Thanks again!


--
Reply all
Reply to author
Forward
0 new messages