Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Set Monday as first day of week for English UK

    The Calendar DateItem picker is set to display Sunday as the first day of week. However I would like to set it to Monday while keeping English as the main language.

    On [Application name].gwt.xml file (just below the "inherits" lines), I set:
    Code:
    <extend-property name="locale" values="en_GB"/>
    <set-property name="locale" value="en_GB"/>
    The result is:
    a) Widgets in English but
    b) DateItem picker starts with Sunday as first day of week.

    On [Application name].gwt.xml file (just below the "inherits" lines), I set:
    Code:
    <extend-property name="locale" values="de_DE"/>
    <set-property name="locale" value="de_DE"/>
    The result is:
    a) Widgets in German (as expected) but
    b) DateItem picker with Monday as first day of week.

    How do I set the application main language in English *and* Monday as first day of week?

    Thanks in advance

    #2
    Hi oespanyol,

    you can use the en_GB *.gwt.xml plus DateChooser.setFirstDayOfWeek():
    Code:
    DateChooser dc = new DateChooser();
    dc.setFirstDayOfWeek(1);
    DateChooser.setDefaultProperties(dc);
    Best regards,
    Blama

    Comment


      #3
      Many thanks for the solution. This is actually what I was looking for!.

      Oriol
      Last edited by oespanyol; 2 Sep 2014, 23:50.

      Comment

      Working...
      X