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

When current browser language is not installed, default language is not used

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 3.8.4, 3.9.1, 3.10
    • Fix Version/s: None
    • Component/s: Administration, Language
    • Labels:
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      Description

      Steps to reproduce it:

      1. Login as admin
      2. Install the Catalan (ca) language pack
      3. Go to Site administration > Language > Language settings
      4. Set "Language autodetect" = Yes
      5. Set "Default language" = Catalan
      6. Save changes
      7. Logout
      8. Set your preferred browser language to Spanish
      9. Clear your browser caches and cookies
      10. Go to the Moodle login page

       

      ** You can replace Catalan/Spanish by any other languages you're more familiarised (except English).

       

      Expected result:

      The page is displayed in Catalan as this language was autodetected for you

       

      Current result:

      The page is displayed in Catalan only if Catalan is defined in the "Choose your preferred language for displaying pages" list (Firefox) or "Settings -> Languages -> Language" list (Chrome). 

       

       

      For fixing this issue Andrew suggested we could do something to say "Use $CFG->lang when priority is < 0.9".

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              sarjona Sara Arjona (@sarjona)
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, David Mudrák (@mudrd8mz), Helen Foster, Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: