From 30ce0cd396c95e6a683a936af0131416a4ae4c2c Mon Sep 17 00:00:00 2001 From: Jenny Gray Date: Tue, 3 Dec 2013 09:45:14 +0000 Subject: [PATCH] MDL-43135 Guest Enrol: new language string for with key icon AMOS BEGIN CPY [pluginname,enrol_guest], [guestaccess_withpassword,enrol_guest] CPY [pluginname,enrol_guest], [guestaccess_withoutpassword,enrol_guest] AMOS END --- enrol/guest/lang/en/enrol_guest.php | 2 ++ enrol/guest/lib.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/enrol/guest/lang/en/enrol_guest.php b/enrol/guest/lang/en/enrol_guest.php index 606def815cd..f536bb211fb 100644 --- a/enrol/guest/lang/en/enrol_guest.php +++ b/enrol/guest/lang/en/enrol_guest.php @@ -24,6 +24,8 @@ $string['allowguests'] = 'This course allows guest users to enter'; $string['guest:config'] = 'Configure guest access instances'; +$string['guestaccess_withpassword'] = 'Guest access requires password'; +$string['guestaccess_withoutpassword'] = 'Guest access'; $string['password'] = 'Password'; $string['password_help'] = 'A password allows guest access to the course to be restricted to only those who know the password. Guests will be required to supply the password each time they access the course.'; $string['passwordinvalid'] = 'Incorrect access password, please try again'; diff --git a/enrol/guest/lib.php b/enrol/guest/lib.php index 65444bdd6b6..2f0d4442437 100644 --- a/enrol/guest/lib.php +++ b/enrol/guest/lib.php @@ -44,9 +44,9 @@ class enrol_guest_plugin extends enrol_plugin { public function get_info_icons(array $instances) { foreach ($instances as $instance) { if ($instance->password !== '') { - return array(new pix_icon('withpassword', get_string('pluginname', 'enrol_guest'), 'enrol_guest')); + return array(new pix_icon('withpassword', get_string('guestaccess_withpassword', 'enrol_guest'), 'enrol_guest')); } else { - return array(new pix_icon('withoutpassword', get_string('pluginname', 'enrol_guest'), 'enrol_guest')); + return array(new pix_icon('withoutpassword', get_string('guestaccess_withoutpassword', 'enrol_guest'), 'enrol_guest')); } } }