Use names for the field types
authormoodler <moodler>
Fri, 12 Jan 2007 08:42:59 +0000 (08:42 +0000)
committermoodler <moodler>
Fri, 12 Jan 2007 08:42:59 +0000 (08:42 +0000)
lang/en_utf8/admin.php
user/profile/lib.php

index 6a6b504b422b4808610fb60ccb705872df269192..ae421a976f358a31896ec39ec27b2687464adc08 100644 (file)
@@ -412,6 +412,8 @@ $string['profileeditcategory'] = 'Editing category: $a';
 $string['profileeditfield'] = 'Editing profile field: $a';
 $string['profilefields'] = 'User profile fields';
 $string['profilefieldsize'] = 'Display size';
+$string['profilefieldtypemenu'] = 'Menu of choices';
+$string['profilefieldtypetext'] = 'Text input';
 $string['profilefieldmaxlength'] = 'Maximum length';
 $string['profileinvaliddata'] = 'Invalid value';
 $string['profilelocked'] = 'Is this field locked?';
index f409ac615a2149a53167ba25b4100ff19365c0df..dff24522c26c8f8e9b1bc69dd7f3ac6d0b9e495a 100644 (file)
@@ -463,7 +463,7 @@ function profile_list_datatypes() {
 
     if ($dirlist = get_directory_list($CFG->dirroot.'/user/profile/field', '', false, true, false)) {
         foreach ($dirlist as $type) {
-            $datatypes[$type] = $type;
+            $datatypes[$type] = get_string('profilefieldtype'.$type, 'admin');
         }
     }
     return $datatypes;