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

Month not translated in date picker with form API ...

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.8.2, 2.8.5, 2.8.8, 2.9, 2.9.2, 3.1.2, 3.2, 3.7.3, 3.8
    • Fix Version/s: None
    • Component/s: Forms Library, JavaScript
    • Labels:

      Description

      I have developed a local plugin which contains a form.
      In this form I have a date_selector element.
      My problem is that days are translated (in french) but months are still in english.
      After some research, I found that I have the same issue when I try to change the date of start of a course. The date picker of the course parameters page has days in french but months always in english.

      Steps to reproduce (works e.g. on https://sandbox.moodledemo.net, too):

      • Prerequisite: a language pack is installed, e.g. the french one
      • Log in as admin
      • change the user language to french (the site default language is still English)
      • browse to a course page and click on "Edit settings" in the Administration block (opening the course's settings page)
      • click on date picker icon next to "Course start date"
      • you will see the month name in English instead of current language

        Attachments

        1. datepicker.png
          datepicker.png
          40 kB
        2. datespanish.png
          datespanish.png
          43 kB
        3. lang.png
          lang.png
          42 kB
        4. MDL-50364.png
          MDL-50364.png
          197 kB

          Issue Links

            Activity

              People

              Assignee:
              joeyandres Joey Andres
              Reporter:
              batistou Baptiste Lhoste
              Peer reviewer:
              Jun Pataleta
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              15 Vote for this issue
              Watchers:
              22 Start watching this issue

                Dates

                Created:
                Updated: