Change DatePicker language

655 views
Skip to first unread message

nicanor.babula

unread,
Mar 21, 2012, 9:02:27 AM3/21/12
to google-we...@googlegroups.com
Hi everyone,

How can I change the display language of the DatePicker object? My app is internationalized on a GWT level, but enabling more than 1 language in module.gwt.xml generates a war too big to be deployed on Appengine, therefore I am stuck with the default which I assume is english. Is there a way to change only the locale of the DatePicker or to change the default locale?

Thanks,
Cristian.

Thomas Broyer

unread,
Mar 21, 2012, 11:42:38 AM3/21/12
to google-we...@googlegroups.com


On Wednesday, March 21, 2012 2:02:27 PM UTC+1, nicanor.babula wrote:
Hi everyone,

How can I change the display language of the DatePicker object? My app is internationalized on a GWT level, but enabling more than 1 language in module.gwt.xml generates a war too big to be deployed on Appengine,

Could it be because of the WEB-INF/deploy? If so, pass -deploy to the compiler to redirect these files to another folder outside your WAR.
 
therefore I am stuck with the default which I assume is english. Is there a way to change only the locale of the DatePicker or to change the default locale?

You can change the default locale with the following in your gwt.xml:
<extend-property name="locale" value="fr" />
<set-property-default name="locale" value="fr" />
<set-property name="locale" value="fr" />

Nicanor Babula

unread,
Mar 22, 2012, 4:44:04 AM3/22/12
to google-we...@googlegroups.com
Thank you very much, Thomas. Setting -deploy and -extra to directories outside the war solved the problem.
Problem solved.



--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/NMT8ZWQR7eYJ.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
Nicanor Cristian Babula

Aravindhan Annamalai

unread,
Jun 8, 2015, 7:56:16 AM6/8/15
to google-we...@googlegroups.com
Hi Nicanor,

    I am trying to internationalize the DatePicker. I am not using DatePicker directly but DateBox widget.

    Is there any way to specify the locale  in order to change the display of DatePicker? I understand that the supported locales has to be entered in myapp.gwt.xml
   <extend-property name="locale" values="en,fr"/>

    I am not sure how the widget picks this up.

Regards,
Aravind
To unsubscribe from this group, send email to google-web-toolkit+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
Nicanor Cristian Babula

Reply all
Reply to author
Forward
0 new messages