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

Submitted Assignments show 0 Words in spaceless languages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: None
    • Component/s: Assignment (2.2)
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_16_STABLE

      Description

      Japanese does not have spaces between the words

      Hence for a japanese system something like this is needed

      echo ' ('.get_string('numwords', '', count_words(format_text($submission->data1, $submission->data2))).','.get_string('numchars', '', mb_strlen(format_text($submission->data1, $submission->data2))).')</td></tr>';

      with the following added to lang/en/moodle.php

      $string['numchars'] = '$a characters';

        Attachments

          Activity

            People

            Assignee:
            dougiamas Martin Dougiamas
            Reporter:
            timtak Timothy Takemoto
            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: