Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-26610

datepicker lack localisation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • 2.0.2
    • None
    • MOODLE_20_STABLE

    Description

      Datepicker lacks local strings for month and day names.

      to reproduce bug:
      1. switch to any language but english.
      2. add an assignment to a course
      3. click on due: to trigger the datepicker

      I guess the definition in the file \moodle\lib\form\yui\dateselector\dateselector.js on line 196 must be changed.

      for my german installation I did

      this.calendar = new YAHOO.widget.Calendar(document.getElementById('dateselector-calendar-content'),

      { iframe: false, hide_blank_weeks: true, start_weekday: config.firstdayofweek }

      );

      chnage to (see: http://developer.yahoo.com/yui/examples/calendar/germany.html)

      this.calendar = new YAHOO.widget.Calendar(document.getElementById('dateselector-calendar-content'),

      { MONTHS_SHORT: ["Jan", "Feb", "M\u00E4r", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"], MONTHS_LONG: ["J\u00E4nner", "Februar", "M\u00E4rz", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"], WEEKDAYS_1CHAR: ["S", "M", "D", "M", "D", "F", "S"], WEEKDAYS_SHORT: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], WEEKDAYS_MEDIUM:["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam"], WEEKDAYS_LONG: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], iframe: false, hide_blank_weeks: true, start_weekday: config.firstdayofweek }

      );

      and it works fine...

      Instead of my hardcoded string the bugfix should use strings from the moodle calendar should be injected.

      Attachments

        Issue Links

          Activity

            People

              moodle.com Moodle HQ
              mikevienna Mike Vienna
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: