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

Comma needed in Fullname for Last, First order

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.5
    • 1.3
    • Administration
    • None
    • All
    • MOODLE_13_STABLE
    • MOODLE_15_STABLE

      When Western names are printed in Last, First order, it would be nice if a comma were inserted. In the case of users of Asian languages, however, this would not be desirableso I suggest the following fix for the fullname function in moodlelib:

      } else if ($CFG->fullnamedisplay == 'lastname firstname') {

      if ( strpos(( ja,zh,ko),substr($CFG->lang,0,2)) > 0)

      { $usecomma = ; }

      else

      { $usecomma = ,; }

      return $user->lastname$usecomma $user->firstname;

            dougiamas Martin Dougiamas
            tomrobb Tom Robb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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