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

UTF-8 non breaking spaces in language packs cause display problems

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.8.1, 1.9
    • Component/s: General, Language
    • Labels:
      None
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      If the language pack contains UTF-8 encoded non breaking spaces, some strings display wrong.

      To reproduce, follow these steps:
      1) Switch to the french language.
      2) Log in and see "Connecté sous le nom « Your Name Here »" in the top right of the window (correct behaviour).
      3) Log out
      4) In the file moodle.php of the french language pack, replace the   in the string $string['loggedinas'] with a UTF8 encoded non breaking space.
      5) Log in and see the "Connecté sous le nom «" (nothing more) in the top right of the window (bug).

      The correction of this bug could be very handful, as it will allow a better lisibility of the lang pack and the consistent use of non-breaking spaces in all strings (i.e also those that are sent by standard mail, which doesn't support HTML entities).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mudrd8mz David Mudrák (@mudrd8mz)
              Reporter:
              mina Nicolas Martignoni
              Tester:
              Nicolas Martignoni
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, David Mudrák (@mudrd8mz), Helen Foster, Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jun/07