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

Display a warning when missing some locales on server

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      Linux
      1. Check the locales installed in your system

        locale -a
        

      2. Go to "Site administration / Language / Language packs"
      3. Install one or more language packs which are not in the list of locales installed in your system. For example, if the Spanish language (e.g. es_ES.UTF-8) is not in the list of locales installed in your system, install the "Español - Internacional ‎(es)" language pack on your Moodle instance.
      4. CHECK that an error message is displayed that indicates that the language packs that you have installed are not fully supported by your server.
      Windows
      1. Go to "Site administration / Language / Language packs"
      2. Install the "Asturianu ‎(ast)" and "Bosanski ‎(bs)" language packs. (These don't seem to be supported on a Windows 7 Enterprise machine)
      3. CHECK that an error message is displayed that indicates that the language packs that you have installed are not fully supported by your server.
      Show
      Linux Check the locales installed in your system locale -a Go to " Site administration / Language / Language packs " Install one or more language packs which are not in the list of locales installed in your system. For example, if the Spanish language (e.g. es_ES.UTF-8) is not in the list of locales installed in your system, install the "Español - Internacional ‎(es)" language pack on your Moodle instance. CHECK that an error message is displayed that indicates that the language packs that you have installed are not fully supported by your server. Windows Go to " Site administration / Language / Language packs " Install the "Asturianu ‎(ast)" and "Bosanski ‎(bs)" language packs. (These don't seem to be supported on a Windows 7 Enterprise machine) CHECK that an error message is displayed that indicates that the language packs that you have installed are not fully supported by your server.
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull Master Branch:
      MDL-62728-locale_5

      Description

      When locales are not configured properly, dates display may seems it's ignoring:

      • Course's forced language setting
      • Dates are still displayed based on global site language setting.

      It would help to add a warning when some locales are missing on this page: admin/tool/langimport/index.php

        Attachments

        1. example.png
          example.png
          22 kB
        2. listed-unsupported-lang-packs.png
          listed-unsupported-lang-packs.png
          42 kB
        3. locale.png
          locale.png
          27 kB
        4. wrong_locales_windows.png
          wrong_locales_windows.png
          45 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  20/May/19