Announcement

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

    DateChooser localisation

    How do you change the values for the names of the individual days of the week ("Su, Mo, Tu, ...") and the month abbreviations (e.g. "Mar, Apr, ...")?

    I'm trying to do this from within my Java code, but I can't seem to figure out how you can change these strings.


    Best Regards,
    Gijs

    #2
    These values have already been localized for many languages. Which locale are you using? You can find the existing translations on the 99translations project.

    Code:
    date_shortDayNames_1=Sun
    date_shortDayNames_2=Mon
    date_shortDayNames_3=Tue
    date_shortDayNames_4=Wed
    date_shortDayNames_5=Thu
    date_shortDayNames_6=Fri
    date_shortDayNames_7=Sat
    
    date_shortMonthNames_1=Jan
    date_shortMonthNames_2=Feb
    date_shortMonthNames_3=Mar
    date_shortMonthNames_4=Apr
    date_shortMonthNames_5=May
    date_shortMonthNames_6=Jun
    date_shortMonthNames_7=Jul
    date_shortMonthNames_8=Aug
    date_shortMonthNames_9=Sep
    date_shortMonthNames_10=Oct
    date_shortMonthNames_11=Nov
    date_shortMonthNames_12=Dec
    You can read about GWT's i18n mechanism here.
    Sanjiv
    Last edited by sjivan; 23 Sep 2010, 03:01.

    Comment


      #3
      Thank you for your answer. I will look further into GWT's i18n mechanism.

      Comment

      Working...
      X