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

function shorten_text fails in languages without latin spaces or periods

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: 1.8.4, 1.9, 2.0
    • Component/s: General
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_15_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      function shorten_text creates very long lines in Japanese (unicode), probably because there are no latin style spaces or periods. $stopzone is looking for space or periods to determin where to truncate the text, but there are none, so it ends up including the entire original text.

      The extremely long lines creates a rather serious interface problem in the assignment module. (online assignments; online/assignments.class.php)

      http://moodle.cvs.sourceforge.net/moodle/moodle/lib/moodlelib.php

      line 5430

        Attachments

          Activity

            People

            Assignee:
            lazyfish Yu Zhang
            Reporter:
            imported Imported
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jan/08