From 5a4ef4c55d18dc82ddb19fe7f38a20454bf3a169 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 12 Jan 2007 08:42:59 +0000 Subject: [PATCH] Use names for the field types --- lang/en_utf8/admin.php | 2 ++ user/profile/lib.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lang/en_utf8/admin.php b/lang/en_utf8/admin.php index 6a6b504b42..ae421a976f 100644 --- a/lang/en_utf8/admin.php +++ b/lang/en_utf8/admin.php @@ -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?'; diff --git a/user/profile/lib.php b/user/profile/lib.php index f409ac615a..dff24522c2 100644 --- a/user/profile/lib.php +++ b/user/profile/lib.php @@ -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; -- 2.39.5