Monday, June 8, 2015

Re: Change DatePicker language

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

On Thursday, 22 March 2012 14:14:04 UTC+5:30, nicanor.babula wrote:
Thank you very much, Thomas. Setting -deploy and -extra to directories outside the war solved the problem.
Problem solved.


On Wed, Mar 21, 2012 at 4:42 PM, Thomas Broyer <t.br...@gmail.com> wrote:


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

--
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-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
Nicanor Cristian Babula

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment