]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-13481, Distinguish between course fullname and user fullname
authordongsheng <dongsheng>
Wed, 19 Mar 2008 08:49:23 +0000 (08:49 +0000)
committerdongsheng <dongsheng>
Wed, 19 Mar 2008 08:49:23 +0000 (08:49 +0000)
12 files changed:
course/edit_form.php
course/lib.php
course/pending.php
course/request_form.php
lang/en_utf8/moodle.php
mod/assignment/lib.php
mod/resource/type/file/resource.class.php
mod/resource/type/repository/resource.class.php
user/extendenrol.php
user/filters/lib.php
user/groupextendenrol.php
user/index.php

index 1b1c976014e9b80df1bc3acf3e578876fd64a2cb..d13a59f70dda40be4767e891bd9654f961f5ab39 100644 (file)
@@ -74,14 +74,14 @@ class course_edit_form extends moodleform {
         $mform->setDefault('category', $category->id);
         $mform->setType('category', PARAM_INT);
 
-        $mform->addElement('text','fullname', get_string('fullname'),'maxlength="254" size="50"');
-        $mform->setHelpButton('fullname', array('coursefullname', get_string('fullname')), true);
+        $mform->addElement('text','fullname', get_string('fullnamecourse'),'maxlength="254" size="50"');
+        $mform->setHelpButton('fullname', array('coursefullname', get_string('fullnamecourse')), true);
         $mform->setDefault('fullname', get_string('defaultcoursefullname'));
         $mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client');
         $mform->setType('fullname', PARAM_MULTILANG);
 
-        $mform->addElement('text','shortname', get_string('shortname'),'maxlength="100" size="20"');
-        $mform->setHelpButton('shortname', array('courseshortname', get_string('shortname')), true);
+        $mform->addElement('text','shortname', get_string('shortnamecourse'),'maxlength="100" size="20"');
+        $mform->setHelpButton('shortname', array('courseshortname', get_string('shortnamecourse')), true);
         $mform->setDefault('shortname', get_string('defaultcourseshortname'));
         $mform->addRule('shortname', get_string('missingshortname'), 'required', null, 'client');
         $mform->setType('shortname', PARAM_MULTILANG);
index d5853e5882978d4d26d9df65d99e3089a6485464..f646aaf7b6b3cd4628aadf01c1811cf35ae46566 100644 (file)
@@ -263,7 +263,7 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per
     }
     echo "<th class=\"c1 header\" scope=\"col\">".get_string('time')."</th>\n";
     echo "<th class=\"c2 header\" scope=\"col\">".get_string('ip_address')."</th>\n";
-    echo "<th class=\"c3 header\" scope=\"col\">".get_string('fullname')."</th>\n";
+    echo "<th class=\"c3 header\" scope=\"col\">".get_string('fullnamecourse')."</th>\n";
     echo "<th class=\"c4 header\" scope=\"col\">".get_string('action')."</th>\n";
     echo "<th class=\"c5 header\" scope=\"col\">".get_string('info')."</th>\n";
     echo "</tr>\n";
@@ -383,7 +383,7 @@ function print_mnet_log($hostid, $course, $user=0, $date=0, $order="l.time ASC",
     }
     echo "<th class=\"c1 header\">".get_string('time')."</th>\n";
     echo "<th class=\"c2 header\">".get_string('ip_address')."</th>\n";
-    echo "<th class=\"c3 header\">".get_string('fullname')."</th>\n";
+    echo "<th class=\"c3 header\">".get_string('fullnamecourse')."</th>\n";
     echo "<th class=\"c4 header\">".get_string('action')."</th>\n";
     echo "<th class=\"c5 header\">".get_string('info')."</th>\n";
     echo "</tr>\n";
@@ -452,7 +452,7 @@ function print_log_csv($course, $user, $date, $order='l.time DESC', $modname,
                         $modid, $modaction, $groupid) {
 
     $text = get_string('course')."\t".get_string('time')."\t".get_string('ip_address')."\t".
-            get_string('fullname')."\t".get_string('action')."\t".get_string('info');
+            get_string('fullnamecourse')."\t".get_string('action')."\t".get_string('info');
 
     if (!$logs = build_logs_array($course, $user, $date, $order, '', '',
                        $modname, $modid, $modaction, $groupid)) {
@@ -568,7 +568,7 @@ function print_log_xls($course, $user, $date, $order='l.time DESC', $modname,
 
     $worksheet = array();
     $headers = array(get_string('course'), get_string('time'), get_string('ip_address'),
-                        get_string('fullname'),    get_string('action'), get_string('info'));
+                        get_string('fullnamecourse'),    get_string('action'), get_string('info'));
 
     // Creating worksheets
     for ($wsnumber = 1; $wsnumber <= $nroPages; $wsnumber++) {
@@ -681,7 +681,7 @@ function print_log_ods($course, $user, $date, $order='l.time DESC', $modname,
 
     $worksheet = array();
     $headers = array(get_string('course'), get_string('time'), get_string('ip_address'),
-                        get_string('fullname'),    get_string('action'), get_string('info'));
+                        get_string('fullnamecourse'),    get_string('action'), get_string('info'));
 
     // Creating worksheets
     for ($wsnumber = 1; $wsnumber <= $nroPages; $wsnumber++) {
index 2fc6f89f95b6336e409bebe950c2df53acb28211..5a4e672faf79a507240beeb812fc69e136d19a8f 100644 (file)
@@ -99,7 +99,7 @@
         $table->cellpadding = 4;
         $table->cellspacing = 3;
         $table->align = array('center','center','center','center','center','center','center');
-        $table->head = array('&nbsp;',get_string('shortname'),get_string('fullname'),get_string('requestedby'),get_string('summary'),
+        $table->head = array('&nbsp;',get_string('shortnamecourse'),get_string('fullnamecourse'),get_string('requestedby'),get_string('summary'),
                                get_string('requestreason'),'');
         $strrequireskey = get_string('requireskey');
         foreach ($pending as $course) {
index 53e1b924c63af88e9e3d089befd1b085cbf8212d..6598e5d66e56ca573ac83438b44b0640066e4199 100644 (file)
@@ -6,11 +6,11 @@ class course_request_form extends moodleform {
     function definition() {
         $mform =& $this->_form;
 
-        $mform->addElement('text', 'fullname', get_string('fullname'), 'maxlength="254" size="50"');
+        $mform->addElement('text', 'fullname', get_string('fullnamecourse'), 'maxlength="254" size="50"');
         $mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client');
         $mform->setType('fullname', PARAM_TEXT);
 
-        $mform->addElement('text', 'shortname', get_string('shortname'), 'maxlength="100" size="20"');
+        $mform->addElement('text', 'shortname', get_string('shortnamecourse'), 'maxlength="100" size="20"');
         $mform->addRule('shortname', get_string('missingshortname'), 'required', null, 'client');
         $mform->setType('shortname', PARAM_TEXT);
 
index ba322b4af26c9285cebe9ad631ae5eeaeb5742d5..604a1ca0186babcc3e25508a8626465ab75f700c 100644 (file)
@@ -671,6 +671,8 @@ $string['frontpagenews'] = 'News items';
 $string['frontpagetopiconly'] = 'Topic section';
 $string['fulllistofcourses'] = 'All courses';
 $string['fullname'] = 'Full name';
+$string['fullnamecourse'] = 'Course full name';
+$string['fullnameuser'] = 'User full name';
 $string['fullnamedisplay'] = '$a->firstname $a->lastname';
 $string['fullprofile'] = 'Full profile';
 $string['fullsitename'] = 'Full site name';
@@ -1324,6 +1326,8 @@ $string['serverlocaltime'] = 'Server\'s local time';
 $string['setcategorytheme'] = 'Set Category Theme';
 $string['settings'] = 'Settings';
 $string['shortname'] = 'Short name';
+$string['shortnamecourse'] = 'Course short name';
+$string['shortnameuser'] = 'User short name';
 $string['shortnamecollisionwarning'] = '[*] = This shortname is already in use by a course and will need to be changed upon approval';
 $string['shortnametaken'] = 'Short name is already used for another course ($a)';
 $string['shortsitename'] = 'Short name for site (eg single word)';
@@ -1644,4 +1648,4 @@ $string['zippingbackup'] = 'Zipping backup';
 
 $string['authenticationplugins'] = 'Authentication Plugins';
 $string['chooseauthmethod'] = 'Choose authentication plugin';
-?>
\ No newline at end of file
+?>
index b90dd11517b2fed17fe406167745dbbf0dd3b133..41827b801d8c1d4284f08194fb5544c882f27ccf 100644 (file)
@@ -1081,7 +1081,7 @@ class assignment_base {
         }
 
         $tableheaders = array('',
-                              get_string('fullname'),
+                              get_string('fullnameuser'),
                               get_string('grade'),
                               get_string('comment', 'assignment'),
                               get_string('lastmodified').' ('.$course->student.')',
index 046cb3a3522695079be4d3ad39a2751f300df0ed..464da8a28dcfc6697bf4443d43c674fda692ed7a 100644 (file)
@@ -33,9 +33,9 @@ class resource_file extends resource_base {
 
                 'courseid'        => array('langstr' => 'id',
                                            'value'   => $this->course->id),
-                'coursefullname'  => array('langstr' => get_string('fullname'),
+                'coursefullname'  => array('langstr' => get_string('fullnamecourse'),
                                            'value'   => $this->course->fullname),
-                'courseshortname' => array('langstr' => get_string('shortname'),
+                'courseshortname' => array('langstr' => get_string('shortnamecourse'),
                                            'value'   => $this->course->shortname),
                 'courseidnumber'  => array('langstr' => get_string('idnumbercourse'),
                                            'value'   => $this->course->idnumber),
@@ -89,7 +89,7 @@ class resource_file extends resource_base {
                                            'value'   => $USER->firstname),
                 'userlastname'    => array('langstr' => get_string('lastname'),
                                            'value'   => $USER->lastname),
-                'userfullname'    => array('langstr' => get_string('fullname'),
+                'userfullname'    => array('langstr' => get_string('fullnameuser'),
                                            'value'   => fullname($USER)),
                 'useremail'       => array('langstr' => get_string('email'),
                                            'value'   => $USER->email),
index f25c2b5245cee6b0c4444edcb8b62eeecbfbe812..a492a3734982547db19b8fe0875386c807737480 100644 (file)
@@ -42,9 +42,9 @@ function set_parameters() {
 
             'courseid'        => array('langstr' => 'id',
                                        'value'   => $this->course->id),
-            'coursefullname'  => array('langstr' => get_string('fullname'),
+            'coursefullname'  => array('langstr' => get_string('fullnamecourse'),
                                        'value'   => $this->course->fullname),
-            'courseshortname' => array('langstr' => get_string('shortname'),
+            'courseshortname' => array('langstr' => get_string('shortnamecourse'),
                                        'value'   => $this->course->shortname),
             'courseidnumber'  => array('langstr' => get_string('idnumbercourse'),
                                        'value'   => $this->course->idnumber),
@@ -98,7 +98,7 @@ function set_parameters() {
                                        'value'   => $USER->firstname),
             'userlastname'    => array('langstr' => get_string('lastname'),
                                        'value'   => $USER->lastname),
-            'userfullname'    => array('langstr' => get_string('fullname'),
+            'userfullname'    => array('langstr' => get_string('fullnameuser'),
                                        'value'   => fullname($USER)),
             'useremail'       => array('langstr' => get_string('email'),
                                        'value'   => $USER->email),
index 1adc0344bacbdf0b520ff55695b0aa8aff956529..33926c2bd0603df05909d1f98d602e1fbc531e56 100644 (file)
@@ -116,7 +116,7 @@ print_heading($title . helpbutton('extendenrol', $title, 'moodle', true, false,
 echo "<form method=\"post\" action=\"extendenrol.php\">\n";
 echo '<input type="hidden" name="id" value="'.$course->id.'" />';
 echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />';
-$table->head  = array (get_string('fullname'), get_string('enrolmentstart'), get_string('enrolmentend'), get_string('extendperiod'), get_string('startingfrom'));
+$table->head  = array (get_string('fullnameuser'), get_string('enrolmentstart'), get_string('enrolmentend'), get_string('extendperiod'), get_string('startingfrom'));
 $table->align = array ('left', 'center', 'center', 'center');
 $table->width = "600";
 $nochange = get_string('nochange');
index 85db4d69c3b59df72779bd24ab93f95c3b43663d..e4f3445e3bef3c9a20d8083903b48c4b9482e2b8 100644 (file)
@@ -98,7 +98,7 @@ class user_filtering {
 
         switch ($fieldname) {
             case 'username':    return new user_filter_text('username', get_string('username'), $advanced, 'username');
-            case 'realname':    return new user_filter_text('realname', get_string('fullname'), $advanced, sql_fullname());
+            case 'realname':    return new user_filter_text('realname', get_string('fullnameuser'), $advanced, sql_fullname());
             case 'lastname':    return new user_filter_text('lastname', get_string('lastname'), $advanced, 'lastname');
             case 'firstname':    return new user_filter_text('firstname', get_string('firstname'), $advanced, 'firstname');
             case 'email':       return new user_filter_text('email', get_string('email'), $advanced, 'email');
index e941141f3825f6a4f66b2c558a21174463d1ce59..aa9f2a7ae07a64a349cfe3dd25824597a8a51ddc 100755 (executable)
@@ -113,7 +113,7 @@ print_heading($title . helpbutton('groupextendenrol', $title, 'moodle', true, fa
 echo '<form method="post" action="groupextendenrol.php">';
 echo '<input type="hidden" name="id" value="'.$course->id.'" />';
 echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />';
-$table->head  = array (get_string('fullname'), get_string('enrolmentstart'), get_string('enrolmentend'));
+$table->head  = array (get_string('fullnameuser'), get_string('enrolmentstart'), get_string('enrolmentend'));
 $table->align = array ('left', 'center', 'center', 'center');
 $table->width = "600";
 $nochange = get_string('nochange');
index 3eace2f6109b6f128e994fb3ef5e29f89b04ee8a..1a7f0a38c9269c37ad087cfe981fd71bf4886dcd 100644 (file)
     /// Define a table showing a list of users in the current role selection
 
     $tablecolumns = array('userpic', 'fullname');
-    $tableheaders = array(get_string('userpic'), get_string('fullname'));
+    $tableheaders = array(get_string('userpic'), get_string('fullnameuser'));
     if ($mode === MODE_BRIEF && !isset($hiddenfields['city'])) {
         $tablecolumns[] = 'city';
         $tableheaders[] = get_string('city');