-
New Feature
-
Resolution: Won't Do
-
Minor
-
None
-
1.9.2, 2.5
-
None
-
php 5 , mysql 5, apache 2 , moodle 1.9.2
-
MySQL
-
MOODLE_19_STABLE, MOODLE_25_STABLE
the Israeli ministry of education instructed us to hide the full name of students so we tried using only first names
but some students had duplicate first names (same goes for last names, yes !)
so we came up with a new full name criteria : first name + two letters of the last name.
i added a new translation string : $string['shortened'] = 'Shortened'; to /lang/en_utf8/moodle.php
and changed the code in moodle/lib/moodlelib.php just after line 2633.
(after "...
} else if ($CFG->fullnamedisplay == 'lastname firstname')
else if ($CFG->fullnamedisplay == 'firstname lastname shortened') {
return $user->firstname .' '. substr($user->lastname,0,4) . '\'';
and also changed moodle/admin/setting/security.php and added the following line just after line 30:
'firstname lastname shortened' => get_string('firstname').' + '.get_string('lastname').' - '.get_string('shortened'),
+++++++++++++++++++++++++++
another tiny patch was to have Admin (user id == 2 ) see fullname no matter what
so i added the following code in moodle/lib/moodlelib.php just after line 2526
if ($USER->id == 2)
{ // admin sees firstname + lastname return $user->firstname .' '. $user->lastname; }- has a non-specific relationship to
-
MDL-31776 Additional name fields, to allow Asian languages to flexibly display user names in Chinese characters, local phonetic system or Romanization
-
- Closed
-