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

Login page form title incorrect in some languages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.0
    • 4.0
    • Themes, UX
    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-73766-master
    • Hide
      1. Test in Boost
      2. As Admin, set the full site name to "Moodle 4.0", be sure to not set a large logo.
      3. Log out.
      4. When logging in verify the header says "Log in to Moodle 4.0".
      5. Log in.
      6. Set a large logo.
      7. Log out.
      8. Try to log in again.
      9. When logging in, in the source, verify the sr-only element for the image header says "Log in to Moodle 4.0".

      Show
      Test in Boost As Admin, set the full site name to "Moodle 4.0", be sure to not set a large logo. Log out. When logging in verify the header says "Log in to Moodle 4.0". Log in. Set a large logo. Log out. Try to log in again. When logging in, in the source, verify the sr-only element for the image header says "Log in to Moodle 4.0".

      New login page design introduced with MDL-69371 hardcodes order of strings "sitename" and "login".

      Example: if sitename is "Mount Orange School", title is

      • in English: "Mount Orange School Log in" (which seems awkward to me, but English is not my first language);
      • in French: "Mount Orange School Connexion", which is plain wrong. Notice also the capitalisation of "Connexion", which is wrong too. This should be something like "Connexion à Mount Orange School".

      Further notes:

      Fix suggestion:

      • Add a new lang string for the Login form title, with "sitename" as a parameter, e.g. $string['loginformtitle'] = '{$a} login'; (English), which will translate $string['loginformtitle'] = 'Connexion à {$a}'; in French
      • Use this string in file lib/templates/loginform.mustache around line 108.

        1. Login form english.png
          84 kB
          Nicolas Martignoni
        2. Login form french.png
          126 kB
          Nicolas Martignoni
        3. MDL-73766_step 4.png
          225 kB
          Angelia Dela Cruz
        4. MDL-73766_step 9.png
          431 kB
          Angelia Dela Cruz
        5. MDL-73766-after.png
          126 kB
          Luca Bösch

            lucaboesch Luca Bösch
            mina Nicolas Martignoni
            Nicolas Martignoni Nicolas Martignoni
            Andrew Lyons Andrew Lyons
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 50 minutes
                50m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.