]> git.mjollnir.org Git - moodle.git/commitdiff
authentication MDL-19182 split auth.php lang file into multiple files separate for...
authorjerome <jerome>
Thu, 11 Jun 2009 03:34:46 +0000 (03:34 +0000)
committerjerome <jerome>
Thu, 11 Jun 2009 03:34:46 +0000 (03:34 +0000)
46 files changed:
auth/cas/auth.php
auth/cas/cas_form.html
auth/cas/config.html
auth/db/auth.php
auth/db/config.html
auth/email/auth.php
auth/email/config.html
auth/fc/config.html
auth/fc/fcFPP.php
auth/imap/config.html
auth/ldap/auth.php
auth/ldap/config.html
auth/ldap/ntlmsso_attempt.php
auth/ldap/ntlmsso_finish.php
auth/ldap/ntlmsso_magic.php
auth/mnet/config.html
auth/nntp/auth.php
auth/nntp/config.html
auth/pop3/auth.php
auth/pop3/config.html
auth/radius/config.html
auth/shibboleth/auth.php
auth/shibboleth/config.html
auth/shibboleth/index_form.html
auth/shibboleth/login.php
lang/en_utf8/auth.php
lang/en_utf8/auth_cas.php [new file with mode: 0644]
lang/en_utf8/auth_db.php [new file with mode: 0644]
lang/en_utf8/auth_email.php [new file with mode: 0644]
lang/en_utf8/auth_fc.php [new file with mode: 0644]
lang/en_utf8/auth_imap.php [new file with mode: 0644]
lang/en_utf8/auth_ldap.php [new file with mode: 0644]
lang/en_utf8/auth_manual.php [new file with mode: 0644]
lang/en_utf8/auth_mnet.php
lang/en_utf8/auth_nntp.php [new file with mode: 0644]
lang/en_utf8/auth_nologin.php [new file with mode: 0644]
lang/en_utf8/auth_none.php [new file with mode: 0644]
lang/en_utf8/auth_pam.php [new file with mode: 0644]
lang/en_utf8/auth_pop3.php [new file with mode: 0644]
lang/en_utf8/auth_radius.php [new file with mode: 0644]
lang/en_utf8/auth_shibboleth.php [new file with mode: 0644]
lib/simpletest/get_string_fixtures/pagelogs/admin_index.php_get_string.log.php
lib/simpletest/get_string_fixtures/pagelogs/admin_index.php_old_get_string.log.php
user/edit.php
user/editlib.php
user/emailupdate.php

index 2c15875199076858dfa71a0ae7e1794fdee0192b..919e84bfae452227dfa1596e0c109dc013415932 100644 (file)
@@ -89,7 +89,7 @@ class auth_plugin_cas extends auth_plugin_base {
          global $SESSION;
 
       $site = get_site();
-      $CASform = get_string("CASform","auth");
+      $CASform = get_string("CASform","auth_cas");
       $username = optional_param("username");
 
       if (!empty($username)) {
@@ -636,7 +636,7 @@ if ( !is_object($PHPCAS_CLIENT) ) {
 
         if (!$ldapconnection) {
             $this->ldap_close($ldapconnection);
-            print get_string('auth_ldap_noconnect','auth',$this->config->host_url);
+            print get_string('auth_ldap_noconnect','auth_ldap',$this->config->host_url);
             exit;
         }
 
@@ -710,18 +710,18 @@ if ( !is_object($PHPCAS_CLIENT) ) {
                 foreach ($remove_users as $user) {
                     if ($this->config->removeuser == AUTH_REMOVEUSER_FULLDELETE) {
                         if (delete_user($user)) {
-                            echo "\t"; print_string('auth_dbdeleteuser', 'auth', array($user->username, $user->id)); echo "\n";
+                            echo "\t"; print_string('auth_dbdeleteuser', 'auth_db', array($user->username, $user->id)); echo "\n";
                         } else {
-                            echo "\t"; print_string('auth_dbdeleteusererror', 'auth', $user->username); echo "\n";
+                            echo "\t"; print_string('auth_dbdeleteusererror', 'auth_db', $user->username); echo "\n";
                         }
                     } else if ($this->config->removeuser == AUTH_REMOVEUSER_SUSPEND) {
                         $updateuser = new object();
                         $updateuser->id = $user->id;
                         $updateuser->auth = 'nologin';
                         if ($DB->update_record('user', $updateuser)) {
-                            echo "\t"; print_string('auth_dbsuspenduser', 'auth', array($user->username, $user->id)); echo "\n";
+                            echo "\t"; print_string('auth_dbsuspenduser', 'auth_db', array($user->username, $user->id)); echo "\n";
                         } else {
-                            echo "\t"; print_string('auth_dbsuspendusererror', 'auth', $user->username); echo "\n";
+                            echo "\t"; print_string('auth_dbsuspendusererror', 'auth_db', $user->username); echo "\n";
                         }
                     }
                 }
@@ -747,9 +747,9 @@ if ( !is_object($PHPCAS_CLIENT) ) {
                     $updateuser->id = $user->id;
                     $updateuser->auth = 'ldap';
                     if ($DB->pdate_record('user', $updateuser)) {
-                        echo "\t"; print_string('auth_dbreviveser', 'auth', array($user->username, $user->id)); echo "\n";
+                        echo "\t"; print_string('auth_dbreviveser', 'auth_db', array($user->username, $user->id)); echo "\n";
                     } else {
-                        echo "\t"; print_string('auth_dbreviveusererror', 'auth', $user->username); echo "\n";
+                        echo "\t"; print_string('auth_dbreviveusererror', 'auth_db', $user->username); echo "\n";
                     }
                 }
             } else {
@@ -802,7 +802,7 @@ if ( !is_object($PHPCAS_CLIENT) ) {
                 $maxxcount = 100;
 
                 foreach ($users as $user) {
-                    echo "\t"; print_string('auth_dbupdatinguser', 'auth', array($user->username, $user->id));
+                    echo "\t"; print_string('auth_dbupdatinguser', 'auth_db', array($user->username, $user->id));
                     if (!$this->update_user_record($user->username, $updatekeys)) {
                         echo " - ".get_string('skipped');
                     }
@@ -866,13 +866,13 @@ if ( !is_object($PHPCAS_CLIENT) ) {
                 }
 
                 if ($id = $DB->insert_record('user', $user)) {
-                    echo "\t"; print_string('auth_dbinsertuser', 'auth', array($user->username, $id)); echo "\n";
+                    echo "\t"; print_string('auth_dbinsertuser', 'auth_db', array($user->username, $id)); echo "\n";
                     $userobj = $this->update_user_record($user->username);
                     if (!empty($this->config->forcechangepassword)) {
                         set_user_preference('auth_forcepasswordchange', 1, $userobj->id);
                     }
                 } else {
-                    echo "\t"; print_string('auth_dbinsertusererror', 'auth', $user->username); echo "\n";
+                    echo "\t"; print_string('auth_dbinsertusererror', 'auth_db', $user->username); echo "\n";
                 }
 
                 // add course creators if needed
@@ -912,7 +912,7 @@ if ( !is_object($PHPCAS_CLIENT) ) {
         $user = $DB->get_record('user', array('username'=>$username, 'mnethostid'=>$CFG->mnet_localhost_id));
         if (empty($user)) { // trouble
             error_log("Cannot update non-existent user: ".$username);
-            print_error('auth_dbusernotexist','auth','',$username);
+            print_error('auth_dbusernotexist','auth_db','',$username);
             die;
         }
 
index 9beb74b28f9134ed55ceef88215f741752a55b46..146caaa27762a9e7a873bcf5cddde49935330cf3 100644 (file)
@@ -6,7 +6,7 @@
 
 <div>
 
-<a href="<?php echo $CFG->wwwroot.'/login/index.php?authCAS=CAS';?>"><?php print_string("accesCAS","auth");?></a>
+<a href="<?php echo $CFG->wwwroot.'/login/index.php?authCAS=CAS';?>"><?php print_string("accesCAS","auth_cas");?></a>
 
 </div>
 
@@ -14,7 +14,7 @@
 
 <div>
 
-<a href="<?php echo $CFG->wwwroot.'/login/index.php?authCAS=NOCAS';?>"><?php print_string("accesNOCAS","auth");?></a>
+<a href="<?php echo $CFG->wwwroot.'/login/index.php?authCAS=NOCAS';?>"><?php print_string("accesNOCAS","auth_cas");?></a>
 
 </div>
 
index 1afbc6074b4a4e03e7f8617df7ac80b6202eb4f0..2ae572101472861b0bde99d52f872b03c1d69c7b 100644 (file)
 
 if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
-    notify(get_string('auth_ldap_noextension','auth'));
+    notify(get_string('auth_ldap_noextension','auth_ldap'));
 
 }
 
@@ -142,7 +142,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
    <td colspan="2">
 
-        <h4><?php print_string('auth_cas_server_settings', 'auth') ?> </h4>
+        <h4><?php print_string('auth_cas_server_settings', 'auth_cas') ?> </h4>
 
    </td>
 
@@ -150,7 +150,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-    <td align="right"><?php print_string('auth_cas_hostname_key', 'auth') ?>:</td>
+    <td align="right"><?php print_string('auth_cas_hostname_key', 'auth_cas') ?>:</td>
 
     <td>
 
@@ -172,7 +172,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     </td>
 
-    <td><?php print_string('auth_cas_hostname', 'auth') ?></td>
+    <td><?php print_string('auth_cas_hostname', 'auth_cas') ?></td>
 
 </tr>
 
@@ -180,7 +180,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top"  class="required">
 
-    <td align="right"><?php print_string('auth_cas_baseuri_key', 'auth') ?>:</td>
+    <td align="right"><?php print_string('auth_cas_baseuri_key', 'auth_cas') ?>:</td>
 
     <td>
 
@@ -202,7 +202,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     </td>
 
-    <td><?php print_string('auth_cas_baseuri', 'auth') ?></td>
+    <td><?php print_string('auth_cas_baseuri', 'auth_cas') ?></td>
 
 </tr>
 
@@ -210,7 +210,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-    <td align="right"><?php print_string('auth_cas_port_key', 'auth') ?>:</td>
+    <td align="right"><?php print_string('auth_cas_port_key', 'auth_cas') ?>:</td>
 
     <td>
 
@@ -232,7 +232,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     </td>
 
-    <td><?php print_string('auth_cas_port', 'auth') ?></td>
+    <td><?php print_string('auth_cas_port', 'auth_cas') ?></td>
 
 </tr>
 
@@ -240,7 +240,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top"  class="required">
 
-    <td align="right"><?php print_string('auth_cas_casversion', 'auth') ?>:</td>
+    <td align="right"><?php print_string('auth_cas_casversion', 'auth_cas') ?>:</td>
 
     <td>
 
@@ -262,7 +262,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     </td>
 
-    <td><?php print_string('auth_cas_version', 'auth') ?></td>
+    <td><?php print_string('auth_cas_version', 'auth_cas') ?></td>
 
 </tr>
 
@@ -270,7 +270,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top"  class="required">
 
-    <td align="right"><?php print_string('auth_cas_language_key', 'auth') ?>:</td>
+    <td align="right"><?php print_string('auth_cas_language_key', 'auth_cas') ?>:</td>
 
     <td>
 
@@ -286,7 +286,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     </td>
 
-    <td><?php print_string('auth_cas_language', 'auth') ?></td>
+    <td><?php print_string('auth_cas_language', 'auth_cas') ?></td>
 
 </tr>
 
@@ -294,7 +294,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top"  class="required">
 
-    <td align="right"><?php print_string('auth_cas_proxycas_key', 'auth') ?>:</td>
+    <td align="right"><?php print_string('auth_cas_proxycas_key', 'auth_cas') ?>:</td>
 
     <td>
 
@@ -310,7 +310,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     </td>
 
-    <td><?php print_string('auth_cas_proxycas', 'auth') ?></td>
+    <td><?php print_string('auth_cas_proxycas', 'auth_cas') ?></td>
 
 </tr>
 
@@ -318,7 +318,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top"  class="required">
 
-    <td align="right"><?php print_string('auth_cas_logoutcas_key', 'auth') ?>:</td>
+    <td align="right"><?php print_string('auth_cas_logoutcas_key', 'auth_cas') ?>:</td>
 
     <td>
 
@@ -334,7 +334,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     </td>
 
-    <td><?php print_string('auth_cas_logoutcas', 'auth') ?></td>
+    <td><?php print_string('auth_cas_logoutcas', 'auth_cas') ?></td>
 
 </tr>
 
@@ -342,7 +342,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top"  class="required">
 
-    <td align="right"><?php print_string('auth_cas_multiauth_key', 'auth') ?>:</td>
+    <td align="right"><?php print_string('auth_cas_multiauth_key', 'auth_cas') ?>:</td>
 
     <td>
 
@@ -358,7 +358,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     </td>
 
-    <td><?php print_string('auth_cas_multiauth', 'auth') ?></td>
+    <td><?php print_string('auth_cas_multiauth', 'auth_cas') ?></td>
 
 </tr>
 
@@ -368,7 +368,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
    <td colspan="2">
 
-        <h4><?php print_string('auth_ldap_server_settings', 'auth') ?> </h4>
+        <h4><?php print_string('auth_ldap_server_settings', 'auth_ldap') ?> </h4>
 
    </td>
 
@@ -378,7 +378,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-    <td align="right"><label for="host_url"><?php print_string('auth_ldap_host_url_key','auth') ?></label></td>
+    <td align="right"><label for="host_url"><?php print_string('auth_ldap_host_url_key','auth_ldap') ?></label></td>
 
     <td>
 
@@ -390,7 +390,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     <td>
 
-    <?php print_string('auth_ldap_host_url','auth') ?>
+    <?php print_string('auth_ldap_host_url','auth_ldap') ?>
 
     </td>
 
@@ -400,7 +400,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-    <td align="right"><label for="menuversion"><?php print_string('auth_ldap_version_key','auth') ?></label></td>
+    <td align="right"><label for="menuversion"><?php print_string('auth_ldap_version_key','auth_ldap') ?></label></td>
 
     <td>
 
@@ -422,7 +422,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     <td>
 
-    <?php print_string('auth_ldap_version','auth') ?>
+    <?php print_string('auth_ldap_version','auth_ldap') ?>
 
     </td>
 
@@ -432,7 +432,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-    <td align="right"><label for="ldapencoding"><?php print_string("auth_ldap_ldap_encoding_key", "auth") ?></label></td>
+    <td align="right"><label for="ldapencoding"><?php print_string("auth_ldap_ldap_encoding_key", "auth_ldap") ?></label></td>
 
     <td>
 
@@ -454,7 +454,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     </td>
 
-    <td><?php print_string('auth_ldap_ldap_encoding', 'auth') ?></td>
+    <td><?php print_string('auth_ldap_ldap_encoding', 'auth_ldap') ?></td>
 
 </tr>
 
@@ -464,7 +464,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
    <td colspan="2">
 
-        <h4><?php print_string('auth_ldap_bind_settings', 'auth') ?> </h4>
+        <h4><?php print_string('auth_ldap_bind_settings', 'auth_ldap') ?> </h4>
 
    </td>
 
@@ -474,7 +474,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-    <td align="right"><label for="bind_dn"><?php print_string('auth_ldap_bind_dn_key','auth') ?></label></td>
+    <td align="right"><label for="bind_dn"><?php print_string('auth_ldap_bind_dn_key','auth_ldap') ?></label></td>
 
     <td>
 
@@ -484,7 +484,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     </td><td>
 
-    <?php print_string('auth_ldap_bind_dn','auth') ?>
+    <?php print_string('auth_ldap_bind_dn','auth_ldap') ?>
 
     </td>
 
@@ -494,7 +494,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-    <td align="right"><label for="bind_pw"><?php print_string('auth_ldap_bind_pw_key','auth') ?></label></td>
+    <td align="right"><label for="bind_pw"><?php print_string('auth_ldap_bind_pw_key','auth_ldap') ?></label></td>
 
     <td>
 
@@ -504,7 +504,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     </td><td>
 
-    <?php print_string('auth_ldap_bind_pw','auth') ?>
+    <?php print_string('auth_ldap_bind_pw','auth_ldap') ?>
 
     </td>
 
@@ -516,7 +516,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
    <td colspan="2">
 
-        <h4><?php print_string('auth_ldap_user_settings', 'auth') ?> </h4>
+        <h4><?php print_string('auth_ldap_user_settings', 'auth_ldap') ?> </h4>
 
    </td>
 
@@ -526,7 +526,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-    <td align="right"><label for="menuuser_type"><?php print_string('auth_ldap_user_type_key','auth') ?></label></td>
+    <td align="right"><label for="menuuser_type"><?php print_string('auth_ldap_user_type_key','auth_ldap') ?></label></td>
 
     <td>
 
@@ -538,7 +538,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     <td>
 
-    <?php print_string('auth_ldap_user_type', 'auth') ?>
+    <?php print_string('auth_ldap_user_type', 'auth_ldap') ?>
 
     </td>
 
@@ -548,7 +548,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-    <td align="right"><label for="contexts"><?php print_string('auth_ldap_contexts_key','auth') ?></label></td>
+    <td align="right"><label for="contexts"><?php print_string('auth_ldap_contexts_key','auth_ldap') ?></label></td>
 
     <td>
 
@@ -560,7 +560,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     <td>
 
-    <?php print_string('auth_ldap_contexts', 'auth') ?>
+    <?php print_string('auth_ldap_contexts', 'auth_ldap') ?>
 
     </td>
 
@@ -570,7 +570,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-    <td align="right"><label for="menusearch_sub"><?php print_string('auth_ldap_search_sub_key','auth') ?></label></td>
+    <td align="right"><label for="menusearch_sub"><?php print_string('auth_ldap_search_sub_key','auth_ldap') ?></label></td>
 
     <td>
 
@@ -580,7 +580,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     <td>
 
-    <?php print_string('auth_ldap_search_sub','auth') ?>
+    <?php print_string('auth_ldap_search_sub','auth_ldap') ?>
 
     </td>
 
@@ -590,7 +590,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-    <td align="right"><label for="menuopt_deref"><?php print_string('auth_ldap_opt_deref_key','auth') ?></label></td>
+    <td align="right"><label for="menuopt_deref"><?php print_string('auth_ldap_opt_deref_key','auth_ldap') ?></label></td>
 
     <td>
 
@@ -612,7 +612,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     <td>
 
-    <?php print_string('auth_ldap_opt_deref','auth') ?>
+    <?php print_string('auth_ldap_opt_deref','auth_ldap') ?>
 
     </td>
 
@@ -626,7 +626,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-    <td align="right"><label for="user_attribute"><?php print_string('auth_ldap_user_attribute_key','auth') ?></label></td>
+    <td align="right"><label for="user_attribute"><?php print_string('auth_ldap_user_attribute_key','auth_ldap') ?></label></td>
 
     <td>
 
@@ -638,7 +638,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     <td>
 
-    <?php print_string('auth_ldap_user_attribute','auth') ?>
+    <?php print_string('auth_ldap_user_attribute','auth_ldap') ?>
 
     </td>
 
@@ -648,7 +648,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-        <td align="right"><label for="memberattribute"><?php print_string('auth_ldap_memberattribute_key','auth') ?></label></td>
+        <td align="right"><label for="memberattribute"><?php print_string('auth_ldap_memberattribute_key','auth_ldap') ?></label></td>
 
         <td>
 
@@ -658,7 +658,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     </td><td>
 
-    <?php print_string('auth_ldap_memberattribute','auth') ?>
+    <?php print_string('auth_ldap_memberattribute','auth_ldap') ?>
 
     </td>
 
@@ -668,7 +668,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-        <td align="right"><label for="memberattribute_isdn"><?php print_string('auth_ldap_memberattribute_isdn_key','auth') ?></label></td>
+        <td align="right"><label for="memberattribute_isdn"><?php print_string('auth_ldap_memberattribute_isdn_key','auth_ldap') ?></label></td>
 
         <td>
 
@@ -678,7 +678,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     </td><td>
 
-    <?php print_string('auth_ldap_memberattribute_isdn','auth') ?>
+    <?php print_string('auth_ldap_memberattribute_isdn','auth_ldap') ?>
 
     </td>
 
@@ -688,7 +688,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-    <td align="right"><label for="objectclass"><?php print_string('auth_ldap_objectclass_key','auth') ?></label></td>
+    <td align="right"><label for="objectclass"><?php print_string('auth_ldap_objectclass_key','auth_ldap') ?></label></td>
 
     <td>
 
@@ -700,7 +700,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     <td>
 
-    <?php print_string('auth_ldap_objectclass','auth') ?>
+    <?php print_string('auth_ldap_objectclass','auth_ldap') ?>
 
     </td>
 
@@ -722,7 +722,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-        <td align="right"><label for="attrcreators"><?php print_string('auth_ldap_attrcreators_key','auth') ?></label></td>
+        <td align="right"><label for="attrcreators"><?php print_string('auth_ldap_attrcreators_key','auth_ldap') ?></label></td>
 
         <td>
 
@@ -732,7 +732,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     </td><td>
 
-    <?php print_string('auth_ldap_attrcreators','auth') ?>
+    <?php print_string('auth_ldap_attrcreators','auth_ldap') ?>
 
     </td>
 
@@ -742,7 +742,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr valign="top" class="required">
 
-        <td align="right"><label for="groupecreators"><?php print_string('auth_ldap_groupecreators_key','auth') ?></label></td>
+        <td align="right"><label for="groupecreators"><?php print_string('auth_ldap_groupecreators_key','auth_ldap') ?></label></td>
 
         <td>
 
@@ -752,7 +752,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
     </td><td>
 
-    <?php print_string('auth_ldap_groupecreators','auth') ?>
+    <?php print_string('auth_ldap_groupecreators','auth_ldap') ?>
 
     </td>
 
@@ -806,7 +806,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 
 
-$help  = get_string('auth_ldapextrafields','auth');
+$help  = get_string('auth_ldapextrafields','auth_ldap');
 
 $help .= get_string('auth_updatelocal_expl','auth');
 
index c0f57aff6fa1dc4393289b31676c7aba7d39db9c..a88a9f50b66f8ec73ecf3bbcb35174deaca1dcf8 100644 (file)
@@ -60,7 +60,7 @@ class auth_plugin_db extends auth_plugin_base {
                                      WHERE {$this->config->fielduser} = '".$this->ext_addslashes($extusername)."' ");
             if (!$rs) {
                 $authdb->Close();
-                print_error('auth_dbcantconnect','auth');
+                print_error('auth_dbcantconnect','auth_db');
                 return false;
             }
 
@@ -93,7 +93,7 @@ class auth_plugin_db extends auth_plugin_base {
                                   AND {$this->config->fieldpass} = '".$this->ext_addslashes($extpassword)."' ");
             if (!$rs) {
                 $authdb->Close();
-                print_error('auth_dbcantconnect','auth');
+                print_error('auth_dbcantconnect','auth_db');
                 return false;
             }
 
@@ -249,23 +249,23 @@ class auth_plugin_db extends auth_plugin_base {
             $remove_users = $DB->get_records_sql($sql);
 
             if (!empty($remove_users)) {
-                print_string('auth_dbuserstoremove','auth', count($remove_users)); echo "\n";
+                print_string('auth_dbuserstoremove','auth_db', count($remove_users)); echo "\n";
 
                 foreach ($remove_users as $user) {
                     if ($this->config->removeuser == AUTH_REMOVEUSER_FULLDELETE) {
                         if (delete_user($user)) {
-                            echo "\t"; print_string('auth_dbdeleteuser', 'auth', array($user->username, $user->id)); echo "\n";
+                            echo "\t"; print_string('auth_dbdeleteuser', 'auth_db', array($user->username, $user->id)); echo "\n";
                         } else {
-                            echo "\t"; print_string('auth_dbdeleteusererror', 'auth', $user->username); echo "\n";
+                            echo "\t"; print_string('auth_dbdeleteusererror', 'auth_db', $user->username); echo "\n";
                         }
                     } else if ($this->config->removeuser == AUTH_REMOVEUSER_SUSPEND) {
                         $updateuser = new object();
                         $updateuser->id   = $user->id;
                         $updateuser->auth = 'nologin';
                         if ($DB->update_record('user', $updateuser)) {
-                            echo "\t"; print_string('auth_dbsuspenduser', 'auth', array($user->username, $user->id)); echo "\n";
+                            echo "\t"; print_string('auth_dbsuspenduser', 'auth_db', array($user->username, $user->id)); echo "\n";
                         } else {
-                            echo "\t"; print_string('auth_dbsuspendusererror', 'auth', $user->username); echo "\n";
+                            echo "\t"; print_string('auth_dbsuspendusererror', 'auth_db', $user->username); echo "\n";
                         }
                     }
                 }
@@ -306,7 +306,7 @@ class auth_plugin_db extends auth_plugin_base {
                     print "User entries to update: ". count($update_users). "\n";
 
                     foreach ($update_users as $user) {
-                        echo "\t"; print_string('auth_dbupdatinguser', 'auth', array($user->username, $user->id));
+                        echo "\t"; print_string('auth_dbupdatinguser', 'auth_db', array($user->username, $user->id));
                         if (!$this->update_user_record($user->username, $updatekeys)) {
                             echo " - ".get_string('skipped');
                         }
@@ -342,7 +342,7 @@ class auth_plugin_db extends auth_plugin_base {
         unset($usernames);
 
         if (!empty($add_users)) {
-            print_string('auth_dbuserstoadd','auth',count($add_users)); echo "\n";
+            print_string('auth_dbuserstoadd','auth_db',count($add_users)); echo "\n";
             $DB->begin_sql();
             foreach($add_users as $user) {
                 $username = $user;
@@ -362,16 +362,16 @@ class auth_plugin_db extends auth_plugin_base {
                 if ($old_user = $DB->get_record('user', array('username'=>$user->username, 'deleted'=>1, 'mnethostid'=>$user->mnethostid))) {
                     $user->id = $old_user->id;
                     $DB->set_field('user', 'deleted', 0, array('username'=>$user->username));
-                    echo "\t"; print_string('auth_dbreviveuser', 'auth', array($user->username, $user->id)); echo "\n";
+                    echo "\t"; print_string('auth_dbreviveuser', 'auth_db', array($user->username, $user->id)); echo "\n";
                 } elseif ($id = $DB->insert_record ('user',$user)) { // it is truly a new user
-                    echo "\t"; print_string('auth_dbinsertuser','auth',array($user->username, $id)); echo "\n";
+                    echo "\t"; print_string('auth_dbinsertuser','auth_db',array($user->username, $id)); echo "\n";
                     // if relevant, tag for password generation
                     if ($this->config->passtype === 'internal') {
                         set_user_preference('auth_forcepasswordchange', 1, $id);
                         set_user_preference('create_password',          1, $id);
                     }
                 } else {
-                    echo "\t"; print_string('auth_dbinsertusererror', 'auth', $user->username); echo "\n";
+                    echo "\t"; print_string('auth_dbinsertusererror', 'auth_db', $user->username); echo "\n";
                 }
             }
             $DB->commit_sql();
@@ -394,7 +394,7 @@ class auth_plugin_db extends auth_plugin_base {
                                      WHERE {$this->config->fielduser} = '".$this->ext_addslashes($extusername)."' ");
 
         if (!$rs) {
-            print_error('auth_dbcantconnect','auth');
+            print_error('auth_dbcantconnect','auth_db');
         } else if ( !$rs->EOF ) {
             // user exists exterally
             $result = true;
@@ -417,7 +417,7 @@ class auth_plugin_db extends auth_plugin_base {
                                 FROM   {$this->config->table} ");
 
         if (!$rs) {
-            print_error('auth_dbcantconnect','auth');
+            print_error('auth_dbcantconnect','auth_db');
         } else if ( !$rs->EOF ) {
             while ($rec = $rs->FetchRow()) {
                 $rec = (object)array_change_key_case((array)$rec , CASE_LOWER);
@@ -464,7 +464,7 @@ class auth_plugin_db extends auth_plugin_base {
         $user = $DB->get_record('user', array('username'=>$username, 'mnethostid'=>$CFG->mnet_localhost_id));
         if (empty($user)) { // trouble
             error_log("Cannot update non-existent user: $username");
-            print_error('auth_dbusernotexist','auth',$username);
+            print_error('auth_dbusernotexist','auth_db',$username);
             die;
         }
 
index d7aea3f814e8758144eecb339d336aa4a5009ddd..25a0d86703e9282165eedc41098433430bd31ca6 100644 (file)
@@ -53,7 +53,7 @@
 <table cellspacing="0" cellpadding="5" border="0">
 
 <tr valign="top" class="required">
-    <td align="right"><label for="host"><?php print_string("auth_dbhost_key", "auth") ?></label></td>
+    <td align="right"><label for="host"><?php print_string("auth_dbhost_key", "auth_db") ?></label></td>
     <td>
         <input id="host" name="host" type="text" size="30" value="<?php echo $config->host?>" />
         <?php
 
         ?>
     </td>
-    <td><?php print_string("auth_dbhost", "auth") ?></td>
+    <td><?php print_string("auth_dbhost", "auth_db") ?></td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="menutype"><?php print_string("auth_dbtype_key", "auth") ?></label></td>
+    <td align="right"><label for="menutype"><?php print_string("auth_dbtype_key", "auth_db") ?></label></td>
     <td>
     <?php  $dbtypes = array("access","ado_access", "ado", "ado_mssql", "borland_ibase", "csv", "db2", "fbsql", "firebird", "ibase", "informix72", "informix", "mssql", "mssql_n", "mysql", "mysqli", "mysqlt", "oci805", "oci8", "oci8po", "odbc", "odbc_mssql", "odbc_oracle", "oracle", "postgres64", "postgres7", "postgres", "proxy", "sqlanywhere", "sybase", "vfp");
        foreach ($dbtypes as $dbtype) {
 
     </td>
     <td>
-    <?php print_string("auth_dbtype","auth") ?>
+    <?php print_string("auth_dbtype","auth_db") ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="menusybasequoting"><?php print_string("auth_dbsybasequoting", "auth") ?></label></td>
+    <td align="right"><label for="menusybasequoting"><?php print_string("auth_dbsybasequoting", "auth_db") ?></label></td>
     <td>
         <?php choose_from_menu($yesno, 'sybasequoting', $config->sybasequoting, ''); ?>
     </td>
-    <td><?php print_string("auth_dbsybasequotinghelp", "auth") ?></td>
+    <td><?php print_string("auth_dbsybasequotinghelp", "auth_db") ?></td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="name"><?php print_string("auth_dbname_key", "auth") ?></label></td>
+    <td align="right"><label for="name"><?php print_string("auth_dbname_key", "auth_db") ?></label></td>
     <td>
         <input id="name" name="name" type="text" size="30" value="<?php echo $config->name?>" />
         <?php
 
         ?>
     </td>
-    <td><?php print_string("auth_dbname", "auth") ?></td>
+    <td><?php print_string("auth_dbname", "auth_db") ?></td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="user"><?php print_string("auth_dbuser_key", "auth") ?></label></td>
+    <td align="right"><label for="user"><?php print_string("auth_dbuser_key", "auth_db") ?></label></td>
     <td>
         <input id="user" name="user" type="text" size="30" value="<?php echo $config->user?>" />
         <?php
 
         ?>
     </td>
-    <td><?php print_string("auth_dbuser", "auth") ?></td>
+    <td><?php print_string("auth_dbuser", "auth_db") ?></td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="pass"><?php print_string("auth_dbpass_key", "auth") ?></label></td>
+    <td align="right"><label for="pass"><?php print_string("auth_dbpass_key", "auth_db") ?></label></td>
     <td>
         <input id="pass" name="pass" type="text" size="30" value="<?php echo $config->pass?>" />
         <?php
         ?>
     </td>
     <td>
-    <?php print_string("auth_dbpass", "auth") ?>
+    <?php print_string("auth_dbpass", "auth_db") ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="table"><?php print_string("auth_dbtable_key", "auth") ?></label></td>
+    <td align="right"><label for="table"><?php print_string("auth_dbtable_key", "auth_db") ?></label></td>
     <td>
         <input id="table" name="table" type="text" size="30" value="<?php echo $config->table?>" />
         <?php
 
         ?>
     </td>
-    <td><?php print_string("auth_dbtable", "auth") ?></td>
+    <td><?php print_string("auth_dbtable", "auth_db") ?></td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="fielduser"><?php print_string("auth_dbfielduser_key", "auth") ?></label></td>
+    <td align="right"><label for="fielduser"><?php print_string("auth_dbfielduser_key", "auth_db") ?></label></td>
     <td>
         <input id="fielduser" name="fielduser" type="text" size="30" value="<?php echo $config->fielduser?>" />
         <?php
 
         ?>
     </td>
-    <td><?php print_string("auth_dbfielduser", "auth") ?></td>
+    <td><?php print_string("auth_dbfielduser", "auth_db") ?></td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="fieldpass"><?php print_string("auth_dbfieldpass_key", "auth") ?></label></td>
+    <td align="right"><label for="fieldpass"><?php print_string("auth_dbfieldpass_key", "auth_db") ?></label></td>
     <td>
         <input id="fieldpass" name="fieldpass" type="text" size="30" value="<?php echo $config->fieldpass?>" />
         <?php
 
         ?>
     </td>
-    <td><?php print_string("auth_dbfieldpass", "auth") ?></td>
+    <td><?php print_string("auth_dbfieldpass", "auth_db") ?></td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="menupasstype"><?php print_string("auth_dbpasstype_key", "auth") ?></label></td>
+    <td align="right"><label for="menupasstype"><?php print_string("auth_dbpasstype_key", "auth_db") ?></label></td>
     <td>
         <?php
         $passtype = array();
 
         ?>
     </td>
-    <td><?php print_string("auth_dbpasstype", "auth") ?></td>
+    <td><?php print_string("auth_dbpasstype", "auth_db") ?></td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="extencoding"><?php print_string("auth_dbextencoding", "auth") ?></label></td>
+    <td align="right"><label for="extencoding"><?php print_string("auth_dbextencoding", "auth_db") ?></label></td>
     <td>
         <input id="extencoding" name="extencoding" type="text" value="<?php echo $config->extencoding ?>" />
         <?php
 
         ?>
     </td>
-    <td><?php print_string('auth_dbextencodinghelp', 'auth') ?></td>
+    <td><?php print_string('auth_dbextencodinghelp', 'auth_db') ?></td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><label for="setupsql"><?php print_string("auth_dbsetupsql", "auth") ?></label></td>
+    <td align="right"><label for="setupsql"><?php print_string("auth_dbsetupsql", "auth_db") ?></label></td>
     <td>
         <input id="setupsql" name="setupsql" type="text" value="<?php echo $config->setupsql ?>" />
     </td>
-    <td><?php print_string('auth_dbsetupsqlhelp', 'auth') ?></td>
+    <td><?php print_string('auth_dbsetupsqlhelp', 'auth_db') ?></td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><label for="menudebugauthdb"><?php print_string("auth_dbdebugauthdb", "auth") ?></label></td>
+    <td align="right"><label for="menudebugauthdb"><?php print_string("auth_dbdebugauthdb", "auth_db") ?></label></td>
     <td>
         <?php choose_from_menu($yesno, 'debugauthdb', $config->debugauthdb, ''); ?>
     </td>
-    <td><?php print_string("auth_dbdebugauthdbhelp", "auth") ?></td>
+    <td><?php print_string("auth_dbdebugauthdbhelp", "auth_db") ?></td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><label for="changepasswordurl"><?php print_string("auth_dbchangepasswordurl_key", "auth") ?></label></td>
+    <td align="right"><label for="changepasswordurl"><?php print_string("auth_dbchangepasswordurl_key", "auth_db") ?></label></td>
     <td>
         <input id="changepasswordurl" name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
         <?php
 
 <?php
 
-print_auth_lock_options('db', $user_fields, get_string('auth_dbextrafields', 'auth'), true, true);
+print_auth_lock_options('db', $user_fields, get_string('auth_dbextrafields', 'auth_db'), true, true);
 
 ?>
 </table>
index 75e4bf476f1c437179da105f194d61a7974f831f..7f0bf5b0661c7f752b1b59cddc290888f64d15ff 100644 (file)
@@ -80,7 +80,7 @@ class auth_plugin_email extends auth_plugin_base {
         $user->password = hash_internal_user_password($user->password);
 
         if (! ($user->id = $DB->insert_record('user', $user)) ) {
-            print_error('auth_emailnoinsert','auth');
+            print_error('auth_emailnoinsert','auth_email');
         }
         
         /// Save any custom profile field information
@@ -90,7 +90,7 @@ class auth_plugin_email extends auth_plugin_base {
         events_trigger('user_created', $user);
 
         if (! send_confirmation_email($user)) {
-            print_error('auth_emailnoemail','auth');
+            print_error('auth_emailnoemail','auth_email');
         }
 
         if ($notify) {
index 71b9536780f861dbf1626060a538c3b5b4310fc3..8b6b8290309e2f28dce15f59605c1de6e86a324c 100644 (file)
 <table cellspacing="0" cellpadding="5" border="0">
 <tr>
    <td colspan="3">
-        <h2 class="main"><?php print_string('auth_emailsettings', 'auth') ?> </h2>
+        <h2 class="main"><?php print_string('auth_emailsettings', 'auth_email') ?> </h2>
    </td>
 </tr>
 <tr>
-    <td align="right"><label for="menurecaptcha"><?php print_string('auth_emailrecaptcha_key', 'auth') ?></label></td>
+    <td align="right"><label for="menurecaptcha"><?php print_string('auth_emailrecaptcha_key', 'auth_email') ?></label></td>
     <td><?php choose_from_menu($yesno, 'recaptcha', $config->recaptcha, ''); ?></td> 
-    <td><?php print_string('auth_emailrecaptcha', 'auth') ?></td>
+    <td><?php print_string('auth_emailrecaptcha', 'auth_email') ?></td>
 </tr>    
 <?php
 
index 9f7e9f691a1cefa6b06e155d2b140d032dcbfe72..3b287310c05f115a9bcfdc869891b83fb87da1fa 100644 (file)
 <table cellspacing="0" cellpadding="5" border="0">
 
 <tr valign="top" class="required">
-    <td align="right"><?php  print_string("auth_fchost_key", "auth") ?>:</td>
+    <td align="right"><?php  print_string("auth_fchost_key", "auth_fc") ?>:</td>
     <td>
         <input name="host" type="text" size="30" value="<?php echo $config->host?>" />
     <?php  if (isset($err["host"])) formerr($err["host"]); ?>
     </td>
     <td>
-    <?php  print_string("auth_fchost", "auth") ?>
+    <?php  print_string("auth_fchost", "auth_fc") ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><?php  print_string("auth_fcfppport_key", "auth") ?>:</td>
+    <td align="right"><?php  print_string("auth_fcfppport_key", "auth_fc") ?>:</td>
     <td>
         <input name="fppport" type="text" size="30" value="<?php echo $config->fppport?>" />
     <?php  if (isset($err["fppport"])) formerr($err["host"]); ?>
     </td>
     <td>
-    <?php  print_string("auth_fcfppport", "auth") ?>
+    <?php  print_string("auth_fcfppport", "auth_fc") ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><?php  print_string("auth_fcuserid_key", "auth") ?>:</td>
+    <td align="right"><?php  print_string("auth_fcuserid_key", "auth_fc") ?>:</td>
     <td>
         <input name="userid" type="text" size="30" maxlength="15" value="<?php echo $config->userid?>" />
     <?php  if (isset($err["userid"])) formerr($err["userid"]); ?>
     </td>
     <td>
-    <?php  print_string("auth_fcuserid", "auth") ?>
+    <?php  print_string("auth_fcuserid", "auth_fc") ?>
     </td>
 </tr>
 <tr valign="top" class="required">
-    <td align="right"><?php  print_string("auth_fcpasswd_key", "auth") ?>:</td>
+    <td align="right"><?php  print_string("auth_fcpasswd_key", "auth_fc") ?>:</td>
     <td>
         <input name="passwd" type="password" size="30" maxlength="12" value="<?php echo $config->passwd?>" />
     <?php  if (isset($err["passwd"])) formerr($err["passwd"]); ?>
     </td>
     <td>
-    <?php  print_string("auth_fcpasswd", "auth") ?>
+    <?php  print_string("auth_fcpasswd", "auth_fc") ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><?php  print_string("auth_fccreators_key", "auth") ?>:</td>
+    <td align="right"><?php  print_string("auth_fccreators_key", "auth_fc") ?>:</td>
     <td>
         <input name="creators" type="text" size="30" value="<?php echo $config->creators?>" />
     <?php  if (isset($err["creators"])) formerr($err["creators"]); ?>
     </td>
     <td>
-    <?php  print_string("auth_fccreators", "auth") ?>
+    <?php  print_string("auth_fccreators", "auth_fc") ?>
     </td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><?php print_string('auth_fcchangepasswordurl', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_fcchangepasswordurl', 'auth_fc') ?>: </td>
     <td>
         <input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
         <?php
index d7db72eb172ded6cb9d207533d56e664cb8f288c..38af533f6f2447b517eacbab30a471ff30a8a8c0 100644 (file)
@@ -51,7 +51,7 @@ class fcFPP
     $conn = fsockopen($host, $port, $errno, $errstr, 5);
     if (!$conn)
     {
-        print_error('auth_fcconnfail','auth', '', array($errno, $errstr));
+        print_error('auth_fcconnfail','auth_fc', '', array($errno, $errstr));
         return false;
     }
 
index bbb9723f72cc718939cfe2b4df8f91def358fcc9..dbe56b8c6651c5c92405eeb0f74fac816695d43b 100644 (file)
@@ -18,7 +18,7 @@ if (!isset($config->changepasswordurl)) {
 <table cellspacing="0" cellpadding="5" border="0">
 
 <tr valign="top" class="required">
-    <td align="right"><?php print_string('auth_imaphost_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_imaphost_key', 'auth_imap') ?>: </td>
     <td>
         <input name="host" type="text" size="30" value="<?php echo $config->host ?>" />
         <?php
@@ -32,7 +32,7 @@ if (!isset($config->changepasswordurl)) {
     <td>
         <?php
 
-        print_string('auth_imaphost', 'auth');
+        print_string('auth_imaphost', 'auth_imap');
         print_string('auth_multiplehosts', 'auth');
 
         ?>
@@ -40,7 +40,7 @@ if (!isset($config->changepasswordurl)) {
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><?php print_string('auth_imaptype_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_imaptype_key', 'auth_imap') ?>: </td>
     <td>
         <?php
 
@@ -52,11 +52,11 @@ if (!isset($config->changepasswordurl)) {
 
         ?>
     </td>
-    <td><?php print_string('auth_imaptype', 'auth') ?></td>
+    <td><?php print_string('auth_imaptype', 'auth_imap') ?></td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><?php print_string('auth_imapport_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_imapport_key', 'auth_imap') ?>: </td>
     <td>
         <input name="port" type="text" size="6" value="<?php echo $config->port ?>" />
         <?php
@@ -67,11 +67,11 @@ if (!isset($config->changepasswordurl)) {
 
         ?>
     </td>
-    <td><?php print_string('auth_imapport', 'auth') ?></td>
+    <td><?php print_string('auth_imapport', 'auth_imap') ?></td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><?php print_string('auth_imapchangepasswordurl_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_imapchangepasswordurl_key', 'auth_imap') ?>: </td>
     <td>
         <input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
         <?php
index f2968dc10571b91f394e7e5d2e4d3913e73f9bfe..d422b39bdf657a53ec91bb4997e2261b92255451 100644 (file)
@@ -102,7 +102,7 @@ class auth_plugin_ldap extends auth_plugin_base {
      */
     function user_login($username, $password) {
         if (! function_exists('ldap_bind')) {
-            print_error('auth_ldapnotinstalled','auth');
+            print_error('auth_ldapnotinstalled','auth_ldap');
             return false;
         }
 
@@ -169,7 +169,7 @@ class auth_plugin_ldap extends auth_plugin_base {
         }
         else {
             $this->ldap_close();
-            print_error('auth_ldap_noconnect','auth','',$this->config->host_url);
+            print_error('auth_ldap_noconnect','auth_ldap','',$this->config->host_url);
         }
         return false;
     }
@@ -355,7 +355,7 @@ class auth_plugin_ldap extends auth_plugin_base {
                 // strings (UCS-2 Little Endian format) and surrounded with
                 // double quotes. See http://support.microsoft.com/?kbid=269190
                 if (!function_exists('mb_convert_encoding')) {
-                    print_error('auth_ldap_no_mbstring', 'auth');
+                    print_error('auth_ldap_no_mbstring', 'auth_ldap');
                 }
 
                 // First create the user account, and mark it as disabled.
@@ -366,7 +366,7 @@ class auth_plugin_ldap extends auth_plugin_base {
                 $userdn = 'cn=' .  $this->ldap_addslashes($extusername) .
                           ',' . $this->config->create_context;
                 if (!ldap_add($ldapconnection, $userdn, $newuser)) {
-                    print_error('auth_ldap_ad_create_req', 'auth');
+                    print_error('auth_ldap_ad_create_req', 'auth_ldap');
                 }
 
                 // Now set the password
@@ -376,12 +376,12 @@ class auth_plugin_ldap extends auth_plugin_base {
                 if(!ldap_modify($ldapconnection, $userdn, $newuser)) {
                     // Something went wrong: delete the user account and error out
                     ldap_delete ($ldapconnection, $userdn);
-                    print_error('auth_ldap_ad_create_req', 'auth');
+                    print_error('auth_ldap_ad_create_req', 'auth_ldap');
                 }
                 $uadd = true;
                 break;
             default:
-               print_error('auth_ldap_unsupportedusertype','auth','',$this->config->user_type);
+               print_error('auth_ldap_unsupportedusertype','auth_ldap','',$this->config->user_type);
         }
         $this->ldap_close();
         return $uadd;
@@ -409,18 +409,18 @@ class auth_plugin_ldap extends auth_plugin_base {
         require_once($CFG->dirroot.'/user/profile/lib.php');
 
         if ($this->user_exists($user->username)) {
-            print_error('auth_ldap_user_exists', 'auth');
+            print_error('auth_ldap_user_exists', 'auth_ldap');
         }
 
         $plainslashedpassword = $user->password;
         unset($user->password);
 
         if (! $this->user_create($user, $plainslashedpassword)) {
-            print_error('auth_ldap_create_error', 'auth');
+            print_error('auth_ldap_create_error', 'auth_ldap');
         }
 
         if (! ($user->id = $DB->insert_record('user', $user)) ) {
-            print_error('auth_emailnoinsert', 'auth');
+            print_error('auth_emailnoinsert', 'auth_email');
         }
 
         /// Save any custom profile field information
@@ -433,7 +433,7 @@ class auth_plugin_ldap extends auth_plugin_base {
         events_trigger('user_created', $user);
 
         if (! send_confirmation_email($user)) {
-            print_error('auth_emailnoemail', 'auth');
+            print_error('auth_emailnoemail', 'auth_email');
         }
 
         if ($notify) {
@@ -569,7 +569,7 @@ class auth_plugin_ldap extends auth_plugin_base {
 
         if (!$ldapconnection) {
             $this->ldap_close();
-            print get_string('auth_ldap_noconnect','auth',$this->config->host_url);
+            print get_string('auth_ldap_noconnect','auth_ldap',$this->config->host_url);
             exit;
         }
 
@@ -643,18 +643,18 @@ class auth_plugin_ldap extends auth_plugin_base {
                 foreach ($remove_users as $user) {
                     if ($this->config->removeuser == AUTH_REMOVEUSER_FULLDELETE) {
                         if (delete_user($user)) {
-                            echo "\t"; print_string('auth_dbdeleteuser', 'auth', array($user->username, $user->id)); echo "\n";
+                            echo "\t"; print_string('auth_dbdeleteuser', 'auth_db', array($user->username, $user->id)); echo "\n";
                         } else {
-                            echo "\t"; print_string('auth_dbdeleteusererror', 'auth', $user->username); echo "\n";
+                            echo "\t"; print_string('auth_dbdeleteusererror', 'auth_db', $user->username); echo "\n";
                         }
                     } else if ($this->config->removeuser == AUTH_REMOVEUSER_SUSPEND) {
                         $updateuser = new object();
                         $updateuser->id = $user->id;
                         $updateuser->auth = 'nologin';
                         if ($DB->update_record('user', $updateuser)) {
-                            echo "\t"; print_string('auth_dbsuspenduser', 'auth', array($user->username, $user->id)); echo "\n";
+                            echo "\t"; print_string('auth_dbsuspenduser', 'auth_db', array($user->username, $user->id)); echo "\n";
                         } else {
-                            echo "\t"; print_string('auth_dbsuspendusererror', 'auth', $user->username); echo "\n";
+                            echo "\t"; print_string('auth_dbsuspendusererror', 'auth_db', $user->username); echo "\n";
                         }
                     }
                 }
@@ -680,9 +680,9 @@ class auth_plugin_ldap extends auth_plugin_base {
                     $updateuser->id = $user->id;
                     $updateuser->auth = 'ldap';
                     if ($DB->pdate_record('user', $updateuser)) {
-                        echo "\t"; print_string('auth_dbreviveser', 'auth', array($user->username, $user->id)); echo "\n";
+                        echo "\t"; print_string('auth_dbreviveser', 'auth_db', array($user->username, $user->id)); echo "\n";
                     } else {
-                        echo "\t"; print_string('auth_dbreviveusererror', 'auth', $user->username); echo "\n";
+                        echo "\t"; print_string('auth_dbreviveusererror', 'auth_db', $user->username); echo "\n";
                     }
                 }
             } else {
@@ -735,7 +735,7 @@ class auth_plugin_ldap extends auth_plugin_base {
                 $maxxcount = 100;
 
                 foreach ($users as $user) {
-                    echo "\t"; print_string('auth_dbupdatinguser', 'auth', array($user->username, $user->id));
+                    echo "\t"; print_string('auth_dbupdatinguser', 'auth_db', array($user->username, $user->id));
                     if (!$this->update_user_record($user->username, $updatekeys)) {
                         echo " - ".get_string('skipped');
                     }
@@ -803,13 +803,13 @@ class auth_plugin_ldap extends auth_plugin_base {
                 }
 
                 if ($id = $DB->insert_record('user', $user)) {
-                    echo "\t"; print_string('auth_dbinsertuser', 'auth', array($user->username, $id)); echo "\n";
+                    echo "\t"; print_string('auth_dbinsertuser', 'auth_db', array($user->username, $id)); echo "\n";
                     $userobj = $this->update_user_record($user->username);
                     if (!empty($this->config->forcechangepassword)) {
                         set_user_preference('auth_forcepasswordchange', 1, $userobj->id);
                     }
                 } else {
-                    echo "\t"; print_string('auth_dbinsertusererror', 'auth', $user->username); echo "\n";
+                    echo "\t"; print_string('auth_dbinsertusererror', 'auth_db', $user->username); echo "\n";
                 }
 
                 // add course creators if needed
@@ -849,7 +849,7 @@ class auth_plugin_ldap extends auth_plugin_base {
         $user = $DB->get_record('user', array('username'=>$username, 'mnethostid'=>$CFG->mnet_localhost_id));
         if (empty($user)) { // trouble
             error_log("Cannot update non-existent user: ".$username);
-            print_error('auth_dbusernotexist','auth','',$username);
+            print_error('auth_dbusernotexist','auth_db','',$username);
             die;
         }
 
@@ -1416,7 +1416,7 @@ class auth_plugin_ldap extends auth_plugin_base {
                 $result = $this->ldap_get_ad_pwdexpire($time, $ldapconnection, $user_dn);
                 break;
             default:
-                print_error('auth_ldap_usertypeundefined', 'auth');
+                print_error('auth_ldap_usertypeundefined', 'auth_ldap');
         }
         return $result;
     }
@@ -1437,7 +1437,7 @@ class auth_plugin_ldap extends auth_plugin_base {
                 $result = $time ; //Already in correct format
                 break;
             default:
-                print_error('auth_ldap_usertypeundefined2', 'auth');
+                print_error('auth_ldap_usertypeundefined2', 'auth_ldap');
         }
         return $result;
 
@@ -1585,7 +1585,7 @@ class auth_plugin_ldap extends auth_plugin_base {
         }
 
         //If any of servers are alive we have already returned connection
-        print_error('auth_ldap_noconnect_all','auth','', $debuginfo);
+        print_error('auth_ldap_noconnect_all','auth_ldap','', $debuginfo);
         return false;
     }
 
index 594966a2f7e856bcfa583bd0e8a9710971399134..155832023e1a973d4a55748fbe036dc9063a6fce 100644 (file)
@@ -65,7 +65,7 @@
     $yesno = array( get_string('no'), get_string('yes') );
 
 if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
-    notify(get_string('auth_ldap_noextension','auth'));
+    notify(get_string('auth_ldap_noextension','auth_ldap'));
 }
 
 ?>
@@ -73,23 +73,23 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr>
    <td colspan="2">
-        <h4><?php print_string('auth_ldap_server_settings', 'auth') ?> </h4>
+        <h4><?php print_string('auth_ldap_server_settings', 'auth_ldap') ?> </h4>
    </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="host_url"><?php print_string('auth_ldap_host_url_key','auth') ?></label></td>
+    <td align="right"><label for="host_url"><?php print_string('auth_ldap_host_url_key','auth_ldap') ?></label></td>
     <td>
         <input name="host_url" id="host_url" type="text" size="30" value="<?php echo $config->host_url?>" />
     <?php  if (isset($err['host_url'])) formerr($err['host_url']); ?>
     </td>
     <td>
-    <?php print_string('auth_ldap_host_url','auth') ?>
+    <?php print_string('auth_ldap_host_url','auth_ldap') ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="menuversion"><?php print_string('auth_ldap_version_key','auth') ?></label></td>
+    <td align="right"><label for="menuversion"><?php print_string('auth_ldap_version_key','auth_ldap') ?></label></td>
     <td>
     <?php
        $versions = array();
@@ -100,12 +100,12 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
     ?>
     </td>
     <td>
-    <?php print_string('auth_ldap_version','auth') ?>
+    <?php print_string('auth_ldap_version','auth_ldap') ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="ldapencoding"><?php print_string("auth_ldap_ldap_encoding_key", "auth") ?></label></td>
+    <td align="right"><label for="ldapencoding"><?php print_string("auth_ldap_ldap_encoding_key", "auth_ldap") ?></label></td>
     <td>
         <input id="ldapencoding" name="ldapencoding" type="text" value="<?php echo $config->ldapencoding ?>" />
         <?php
@@ -116,84 +116,84 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
         ?>
     </td>
-    <td><?php print_string('auth_ldap_ldap_encoding', 'auth') ?></td>
+    <td><?php print_string('auth_ldap_ldap_encoding', 'auth_ldap') ?></td>
 </tr>
 
 <tr>
    <td colspan="2">
-        <h4><?php print_string('auth_ldap_bind_settings', 'auth') ?> </h4>
+        <h4><?php print_string('auth_ldap_bind_settings', 'auth_ldap') ?> </h4>
    </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="menupreventpassindb"><?php print_string('auth_ldap_preventpassindb_key','auth') ?></label></td>
+    <td align="right"><label for="menupreventpassindb"><?php print_string('auth_ldap_preventpassindb_key','auth_ldap') ?></label></td>
     <td>
         <?php choose_from_menu($yesno, 'preventpassindb', $config->preventpassindb, ''); ?>
     </td><td>
-    <?php print_string('auth_ldap_preventpassindb','auth') ?>
+    <?php print_string('auth_ldap_preventpassindb','auth_ldap') ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="bind_dn"><?php print_string('auth_ldap_bind_dn_key','auth') ?></label></td>
+    <td align="right"><label for="bind_dn"><?php print_string('auth_ldap_bind_dn_key','auth_ldap') ?></label></td>
     <td>
     <input name="bind_dn" id="bind_dn" type="text" size="30" value="<?php echo $config->bind_dn?>" />
     <?php  if (isset($err['bind_dn'])) formerr($err['bind_dn']); ?>
     </td><td>
-    <?php print_string('auth_ldap_bind_dn','auth') ?>
+    <?php print_string('auth_ldap_bind_dn','auth_ldap') ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="bind_pw"><?php print_string('auth_ldap_bind_pw_key','auth') ?></label></td>
+    <td align="right"><label for="bind_pw"><?php print_string('auth_ldap_bind_pw_key','auth_ldap') ?></label></td>
     <td>
     <input name="bind_pw" id="bind_pw" type="password" size="30" value="<?php echo $config->bind_pw?>" />
     <?php  if (isset($err['bind_pw'])) formerr($err['bind_pw']); ?>
     </td><td>
-    <?php print_string('auth_ldap_bind_pw','auth') ?>
+    <?php print_string('auth_ldap_bind_pw','auth_ldap') ?>
     </td>
 </tr>
 
 <tr>
    <td colspan="2">
-        <h4><?php print_string('auth_ldap_user_settings', 'auth') ?> </h4>
+        <h4><?php print_string('auth_ldap_user_settings', 'auth_ldap') ?> </h4>
    </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="menuuser_type"><?php print_string('auth_ldap_user_type_key','auth') ?></label></td>
+    <td align="right"><label for="menuuser_type"><?php print_string('auth_ldap_user_type_key','auth_ldap') ?></label></td>
     <td>
     <?php choose_from_menu($this->ldap_suppported_usertypes(), 'user_type', $config->user_type, ''); ?>
     <?php  if (isset($err['user_type'])) formerr($err['user_type']); ?>
     </td>
     <td>
-    <?php print_string('auth_ldap_user_type', 'auth') ?>
+    <?php print_string('auth_ldap_user_type', 'auth_ldap') ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="contexts"><?php print_string('auth_ldap_contexts_key','auth') ?></label></td>
+    <td align="right"><label for="contexts"><?php print_string('auth_ldap_contexts_key','auth_ldap') ?></label></td>
     <td>
     <input name="contexts" id="contexts"  type="text" size="30" value="<?php echo $config->contexts?>" />
     <?php  if (isset($err['contexts'])) formerr($err['contexts']); ?>
     </td>
     <td>
-    <?php print_string('auth_ldap_contexts', 'auth') ?>
+    <?php print_string('auth_ldap_contexts', 'auth_ldap') ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="menusearch_sub"><?php print_string('auth_ldap_search_sub_key','auth') ?></label></td>
+    <td align="right"><label for="menusearch_sub"><?php print_string('auth_ldap_search_sub_key','auth_ldap') ?></label></td>
     <td>
         <?php choose_from_menu($yesno, 'search_sub', $config->search_sub, ''); ?>
     </td>
     <td>
-    <?php print_string('auth_ldap_search_sub','auth') ?>
+    <?php print_string('auth_ldap_search_sub','auth_ldap') ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="menuopt_deref"><?php print_string('auth_ldap_opt_deref_key','auth') ?></label></td>
+    <td align="right"><label for="menuopt_deref"><?php print_string('auth_ldap_opt_deref_key','auth_ldap') ?></label></td>
     <td>
     <?php
        $opt_deref = array();
@@ -204,51 +204,51 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
     ?>
     </td>
     <td>
-    <?php print_string('auth_ldap_opt_deref','auth') ?>
+    <?php print_string('auth_ldap_opt_deref','auth_ldap') ?>
     </td>
 </tr>
 
 
 
 <tr valign="top" class="required">
-    <td align="right"><label for="user_attribute"><?php print_string('auth_ldap_user_attribute_key','auth') ?></label></td>
+    <td align="right"><label for="user_attribute"><?php print_string('auth_ldap_user_attribute_key','auth_ldap') ?></label></td>
     <td>
     <input name="user_attribute" id="user_attribute" type="text" size="30" value="<?php echo $config->user_attribute?>" />
     <?php  if (isset($err['user_attribute'])) formerr($err['user_attribute']); ?>
     </td>
     <td>
-    <?php print_string('auth_ldap_user_attribute','auth') ?>
+    <?php print_string('auth_ldap_user_attribute','auth_ldap') ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-        <td align="right"><label for="memberattribute"><?php print_string('auth_ldap_memberattribute_key','auth') ?></label></td>
+        <td align="right"><label for="memberattribute"><?php print_string('auth_ldap_memberattribute_key','auth_ldap') ?></label></td>
         <td>
     <input name="memberattribute" id="memberattribute" type="text" size="30" value="<?php echo $config->memberattribute?>" />
     <?php  if (isset($err['memberattribute'])) formerr($err['memberattribute']); ?>
     </td><td>
-    <?php print_string('auth_ldap_memberattribute','auth') ?>
+    <?php print_string('auth_ldap_memberattribute','auth_ldap') ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-        <td align="right"><label for="memberattribute_isdn"><?php print_string('auth_ldap_memberattribute_isdn_key','auth') ?></label></td>
+        <td align="right"><label for="memberattribute_isdn"><?php print_string('auth_ldap_memberattribute_isdn_key','auth_ldap') ?></label></td>
         <td>
     <input name="memberattribute_isdn" id="memberattribute_isdn" type="text" size="30" value="<?php echo $config->memberattribute_isdn?>" />
     <?php  if (isset($err['memberattribute_isdn'])) formerr($err['memberattribute_isdn']); ?>
     </td><td>
-    <?php print_string('auth_ldap_memberattribute_isdn','auth') ?>
+    <?php print_string('auth_ldap_memberattribute_isdn','auth_ldap') ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="objectclass"><?php print_string('auth_ldap_objectclass_key','auth') ?></label></td>
+    <td align="right"><label for="objectclass"><?php print_string('auth_ldap_objectclass_key','auth_ldap') ?></label></td>
     <td>
     <input name="objectclass" id="objectclass" type="text" size="30" value="<?php echo $config->objectclass?>" />
     <?php  if (isset($err['objectclass'])) formerr($err['objectclass']); ?>
     </td>
     <td>
-    <?php print_string('auth_ldap_objectclass','auth') ?>
+    <?php print_string('auth_ldap_objectclass','auth_ldap') ?>
     </td>
 </tr>
 
@@ -280,7 +280,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="menupasstype"><?php print_string('auth_ldap_passtype_key', 'auth') ?></label></td>
+    <td align="right"><label for="menupasstype"><?php print_string('auth_ldap_passtype_key', 'auth_ldap') ?></label></td>
     <td>
         <?php
         $passtype = array();
@@ -291,11 +291,11 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
         ?>
     </td>
-    <td><?php print_string('auth_ldap_passtype', 'auth') ?></td>
+    <td><?php print_string('auth_ldap_passtype', 'auth_ldap') ?></td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><label for="changepasswordurl"><?php print_string('auth_ldap_changepasswordurl_key','auth') ?></label></td>
+    <td align="right"><label for="changepasswordurl"><?php print_string('auth_ldap_changepasswordurl_key','auth_ldap') ?></label></td>
     <td>
         <input name="changepasswordurl" id="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
         <?php
@@ -311,12 +311,12 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr>
    <td colspan="2">
-        <h4><?php print_string('auth_ldap_passwdexpire_settings', 'auth') ?> </h4>
+        <h4><?php print_string('auth_ldap_passwdexpire_settings', 'auth_ldap') ?> </h4>
    </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="menuexpiration"><?php print_string('auth_ldap_expiration_key','auth') ?></label></td>
+    <td align="right"><label for="menuexpiration"><?php print_string('auth_ldap_expiration_key','auth_ldap') ?></label></td>
     <td>
     <?php
        $expiration = array();
@@ -327,54 +327,54 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
     ?>
     </td>
     <td>
-    <?php print_string('auth_ldap_expiration_desc','auth') ?>
+    <?php print_string('auth_ldap_expiration_desc','auth_ldap') ?>
     </td>
 </tr>
 
 
 <tr valign="top" class="required">
-    <td align="right"><label for="expiration_warning"><?php print_string('auth_ldap_expiration_warning_key','auth') ?></label></td>
+    <td align="right"><label for="expiration_warning"><?php print_string('auth_ldap_expiration_warning_key','auth_ldap') ?></label></td>
     <td>
     <input name="expiration_warning" id="expiration_warning" type="text" size="2" value="<?php echo $config->expiration_warning?>" />
     <?php   if (isset($err['expiration_warning'])) formerr($err['expiration_warning']);
     ?>
     </td>
     <td>
-    <?php print_string('auth_ldap_expiration_warning_desc','auth') ?>
+    <?php print_string('auth_ldap_expiration_warning_desc','auth_ldap') ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="expireattr"><?php print_string('auth_ldap_expireattr_key','auth') ?></label></td>
+    <td align="right"><label for="expireattr"><?php print_string('auth_ldap_expireattr_key','auth_ldap') ?></label></td>
     <td>
     <input name="expireattr" id="expireattr" type="text" size="30" value="<?php echo $config->expireattr?>" />
     <?php  if (isset($err['expireattr'])) formerr($err['expireattr']);
     ?>
     </td>
     <td>
-    <?php print_string('auth_ldap_expireattr_desc','auth') ?>
+    <?php print_string('auth_ldap_expireattr_desc','auth_ldap') ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="menugracelogins"><?php print_string('auth_ldap_gracelogins_key','auth') ?></label></td>
+    <td align="right"><label for="menugracelogins"><?php print_string('auth_ldap_gracelogins_key','auth_ldap') ?></label></td>
     <td>
         <?php choose_from_menu($yesno, 'gracelogins', $config->gracelogins, ''); ?>
     </td>
     <td>
-    <?php print_string('auth_ldap_gracelogins_desc','auth') ?>
+    <?php print_string('auth_ldap_gracelogins_desc','auth_ldap') ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="graceattr"><?php print_string('auth_ldap_gracelogin_key','auth') ?></label></td>
+    <td align="right"><label for="graceattr"><?php print_string('auth_ldap_gracelogin_key','auth_ldap') ?></label></td>
     <td>
     <input name="graceattr" id="graceattr" type="text" size="30" value="<?php echo $config->graceattr?>" />
     <?php   if (isset($err['graceattr'])) formerr($err['graceattr']);
     ?>
     </td>
     <td>
-    <?php print_string('auth_ldap_graceattr_desc','auth') ?>
+    <?php print_string('auth_ldap_graceattr_desc','auth_ldap') ?>
     </td>
 </tr>
 
@@ -387,7 +387,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 </tr>
 
 <tr valign="top">
-    <td align="right"><label for="menuauth_user_create"><?php print_string('auth_ldap_auth_user_create_key','auth') ?></label></td>
+    <td align="right"><label for="menuauth_user_create"><?php print_string('auth_ldap_auth_user_create_key','auth_ldap') ?></label></td>
     <td>
       <?php choose_from_menu($yesno, 'auth_user_create', $config->auth_user_create, ''); ?>
     </td>
@@ -397,12 +397,12 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><label for="create_context"><?php print_string('auth_ldap_create_context_key','auth') ?></label></td>
+    <td align="right"><label for="create_context"><?php print_string('auth_ldap_create_context_key','auth_ldap') ?></label></td>
     <td>
     <input name="create_context" id="create_context" type="text" size="30" value="<?php echo $config->create_context?>" />
     <?php  if (isset($err['create_context'])) formerr($err['create_context']); ?>
     </td><td>
-    <?php print_string('auth_ldap_create_context','auth') ?>
+    <?php print_string('auth_ldap_create_context','auth_ldap') ?>
     </td>
 </tr>
 
@@ -414,12 +414,12 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 </tr>
 
 <tr valign="top" class="required">
-        <td align="right"><label for="creators"><?php print_string('auth_ldap_creators_key','auth') ?></label></td>
+        <td align="right"><label for="creators"><?php print_string('auth_ldap_creators_key','auth_ldap') ?></label></td>
         <td>
     <input name="creators" id="creators" type="text" size="30" value="<?php echo $config->creators?>" />
     <?php  if (isset($err['creators'])) formerr($err['creators']); ?>
     </td><td>
-    <?php print_string('auth_ldap_creators','auth') ?>
+    <?php print_string('auth_ldap_creators','auth_ldap') ?>
     </td>
 </tr>
 
@@ -447,44 +447,44 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
 
 <tr>
    <td colspan="2">
-        <h4><?php print_string('auth_ntlmsso', 'auth') ?> </h4>
+        <h4><?php print_string('auth_ntlmsso', '_ldap') ?> </h4>
    </td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><label for="menuntlmsso_enabled"><?php print_string('auth_ntlmsso_enabled_key','auth') ?></label></td>
+    <td align="right"><label for="menuntlmsso_enabled"><?php print_string('auth_ntlmsso_enabled_key','auth_ldap') ?></label></td>
     <td>
     <?php
        choose_from_menu($yesno, 'ntlmsso_enabled', $config->ntlmsso_enabled, '0');
     ?>
     </td>
     <td>
-    <?php print_string('auth_ntlmsso_enabled','auth') ?>
+    <?php print_string('auth_ntlmsso_enabled','auth_ldap') ?>
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><label for="ntlmsso_subnet"><?php print_string('auth_ntlmsso_subnet_key','auth') ?></label></td>
+    <td align="right"><label for="ntlmsso_subnet"><?php print_string('auth_ntlmsso_subnet_key','auth_ldap') ?></label></td>
     <td><input name="ntlmsso_subnet" id="ntlmsso_subnet" type="text" size="30" value="<?php p($config->ntlmsso_subnet) ?>" />
     </td>
     <td>
-    <?php print_string('auth_ntlmsso_subnet','auth') ?>
+    <?php print_string('auth_ntlmsso_subnet','auth_ldap') ?>
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><label for="menuntlmsso_ie_fastpath"><?php print_string('auth_ntlmsso_ie_fastpath_key','auth') ?></label></td>
+    <td align="right"><label for="menuntlmsso_ie_fastpath"><?php print_string('auth_ntlmsso_ie_fastpath_key','auth_ldap') ?></label></td>
     <td>
     <?php
        choose_from_menu($yesno, 'ntlmsso_ie_fastpath', $config->ntlmsso_ie_fastpath, '0');
     ?>
     </td>
     <td>
-    <?php print_string('auth_ntlmsso_ie_fastpath','auth') ?>
+    <?php print_string('auth_ntlmsso_ie_fastpath','auth_ldap') ?>
     </td>
 </tr>
 
 <?php
 
-$help  = get_string('auth_ldapextrafields','auth');
+$help  = get_string('auth_ldapextrafields','auth_ldap');
 $help .= get_string('auth_updatelocal_expl','auth');
 $help .= get_string('auth_fieldlock_expl','auth');
 $help .= get_string('auth_updateremote_expl','auth');
index fac2bce0271fcb892322ba6f1be6a27943933247..1f2fbe238ca15311607d80dccccd2b53be2236e3 100644 (file)
@@ -17,7 +17,7 @@ if (!in_array('ldap',$authsequence,true)) {
 
 $authplugin = get_auth_plugin('ldap');
 if (empty($authplugin->config->ntlmsso_enabled)) {
-    print_error('ntlmsso_isdisabled','auth');
+    print_error('ntlmsso_isdisabled','auth_ldap');
 }
 
 $sesskey = sesskey();
@@ -31,7 +31,7 @@ $navlinks = array(array('name' => $loginsite, 'link' => null, 'type' => 'misc'))
 $navigation = build_navigation($navlinks);
 print_header("$site->fullname: $loginsite", $site->fullname, $navigation, '', '', true);
 
-$msg = '<p>'.get_string('ntlmsso_attempting','auth').'</p>'
+$msg = '<p>'.get_string('ntlmsso_attempting','auth_ldap').'</p>'
     . '<img width="1", height="1" '
     . ' src="' . $CFG->wwwroot . '/auth/ldap/ntlmsso_magic.php?sesskey='
     . $sesskey . '" />';
index fe613cc33b748376f500d14ef6c0d6159d232f18..b0353e8ee938aed5f448fede8f8cbd5e5f296d2c 100644 (file)
@@ -17,7 +17,7 @@ if (!in_array('ldap',$authsequence,true)) {
 
 $authplugin = get_auth_plugin('ldap');
 if (empty($authplugin->config->ntlmsso_enabled)) {
-    print_error('ntlmsso_isdisabled','auth');
+    print_error('ntlmsso_isdisabled','auth_ldap');
 }
 
 // If ntlmsso_finish() succeeds, then the code never returns,
@@ -31,6 +31,6 @@ if (!$authplugin->ntlmsso_finish()) {
     $navigation = build_navigation($navlinks);
     print_header("$site->fullname: $loginsite", $site->fullname, $navigation, '', '', true);
     redirect($CFG->httpswwwroot . '/login/index.php?authldap_skipntlmsso=1', 
-             get_string('ntlmsso_failed','auth'), 3);
+             get_string('ntlmsso_failed','auth_ldap'), 3);
 }
 ?>
index c04919a3f59c424c8a08f019caa87d02bc200d40..8636a913c3fb4dbd379f7fdf85f13eb9bc635992 100644 (file)
@@ -18,7 +18,7 @@ if (!in_array('ldap',$authsequence,true)) {
 
 $authplugin = get_auth_plugin('ldap');
 if (empty($authplugin->config->ntlmsso_enabled)) {
-    print_error('ntlmsso_isdisabled','auth');
+    print_error('ntlmsso_isdisabled','auth_ldap');
 }
 
 $sesskey = required_param('sesskey', PARAM_RAW);
@@ -44,7 +44,7 @@ if ($authplugin->ntlmsso_magic($sesskey)
     fclose($handle);
     exit;
 } else {
-    print_error('ntlmsso_iwamagicnotenabled','auth');
+    print_error('ntlmsso_iwamagicnotenabled','auth_ldap');
 }
 
 ?>
index fb87bc40fed72dc9eb0dedc61f6f7e3431b79a5d..75c5aa524eca96f211bd6dbc6eb42c22275cebb8 100644 (file)
@@ -19,7 +19,7 @@ if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict'
 <table cellspacing="0" cellpadding="5">
 
 <tr valign="top" class="required">
-    <td align="right"><?php print_string('rpc_negotiation_timeout', 'auth'); ?>: </td>
+    <td align="right"><?php print_string('rpc_negotiation_timeout', 'auth_mnet'); ?>: </td>
     <td>
         <input name="rpc_negotiation_timeout" type="text" size="5" value="<?php echo $config->rpc_negotiation_timeout ?>" />
         <?php
@@ -33,14 +33,14 @@ if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict'
     <td>
         <?php
 
-        print_string('auth_mnet_rpc_negotiation_timeout', 'auth');
+        print_string('auth_mnet_rpc_negotiation_timeout', 'auth_mnet');
 
         ?>
     </td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><?php print_string('auto_add_remote_users', 'auth'); ?>: </td>
+    <td align="right"><?php print_string('auto_add_remote_users', 'auth_mnet'); ?>: </td>
     <td>
         <?php
 
@@ -51,13 +51,13 @@ if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict'
     <td>
         <?php
 
-        print_string('auth_mnet_auto_add_remote_users', 'auth');
+        print_string('auth_mnet_auto_add_remote_users', 'auth_mnet');
 
         ?>
     </td>
 </tr>
 <tr valign="top" class="required">
-    <td colspan="3"><?php print_string('auth_mnet_roamin', 'auth'); ?>: </td>
+    <td colspan="3"><?php print_string('auth_mnet_roamin', 'auth_mnet'); ?>: </td>
 </tr>
 <?php
 foreach($id_providers as $host) {
@@ -70,7 +70,7 @@ foreach($id_providers as $host) {
 }
 ?>
 <tr valign="top" class="required">
-    <td colspan="3"><?php print_string('auth_mnet_roamout', 'auth'); ?>: </td>
+    <td colspan="3"><?php print_string('auth_mnet_roamout', 'auth_mnet'); ?>: </td>
 </tr>
 <?php
 foreach($service_providers as $host) {
index 27454d4a3f3bc4f9718406b81894e09d4e614048..e24e1e37462706ebb4627c01d360185322bf7e51 100644 (file)
@@ -41,7 +41,7 @@ class auth_plugin_nntp extends auth_plugin_base {
      */
     function user_login ($username, $password) {
         if (! function_exists('imap_open')) {
-            print_error('auth_nntpnotinstalled','auth');
+            print_error('auth_nntpnotinstalled','auth_nntp');
             exit;
         }
 
index 59683099c708170594971282cc8eb99bb5478d27..99ea1db646f270a12fd45f55f8d86d563e55f301 100644 (file)
@@ -15,7 +15,7 @@ if (!isset($config->changepasswordurl)) {
 <table cellspacing="0" cellpadding="5" border="0">
 
 <tr valign="top" class="required">
-    <td align="right"><?php print_string('auth_nntphost_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_nntphost_key', 'auth_nntp') ?>: </td>
     <td>
         <input name="host" type="text" size="30" value="<?php echo $config->host ?>" />
         <?php
@@ -29,7 +29,7 @@ if (!isset($config->changepasswordurl)) {
     <td>
         <?php
 
-        print_string("auth_nntphost", "auth");
+        print_string("auth_nntphost", "auth_nntp");
         print_string("auth_multiplehosts", "auth");
 
         ?>
@@ -37,7 +37,7 @@ if (!isset($config->changepasswordurl)) {
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><?php print_string('auth_nntpport_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_nntpport_key', 'auth_nntp') ?>: </td>
     <td>
         <input name="port" type="text" size="6" value="<?php echo $config->port ?>" />
         <?php
@@ -48,11 +48,11 @@ if (!isset($config->changepasswordurl)) {
 
         ?>
     </td>
-    <td><?php print_string("auth_nntpport", "auth") ?></td>
+    <td><?php print_string("auth_nntpport", "auth_nntp") ?></td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><?php print_string('auth_nntpchangepasswordurl_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_nntpchangepasswordurl_key', 'auth_nntp') ?>: </td>
     <td>
         <input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
         <?php
index a4a66976afc2886391a7b7f3d493bdacf4ee3a62..3e93d375f32ff30eb543c60658af0a2a3778e4eb 100644 (file)
@@ -41,7 +41,7 @@ class auth_plugin_pop3 extends auth_plugin_base {
      */
     function user_login($username, $password) {
         if (! function_exists('imap_open')) {
-            print_error('auth_pop3notinstalled','auth');
+            print_error('auth_pop3notinstalled','auth_pop3');
             exit;
         }
 
index 464094d6cca342a9dd21683b8b9a33b7bc8db1e2..7fc609a8ea26b3eced54e5af2c68c8c51c92bea7 100644 (file)
@@ -21,7 +21,7 @@ if (!isset($config->changepasswordurl)) {
 <table cellspacing="0" cellpadding="5" border="0">
 
 <tr valign="top" class="required">
-    <td align="right"><?php print_string('auth_pop3host_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_pop3host_key', 'auth_pop3') ?>: </td>
     <td>
         <input name="host" type="text" size="30" value="<?php echo $config->host ?>" />
         <?php
@@ -35,7 +35,7 @@ if (!isset($config->changepasswordurl)) {
     <td>
         <?php
 
-        print_string('auth_pop3host', 'auth');
+        print_string('auth_pop3host', 'auth_pop3');
         print_string('auth_multiplehosts', 'auth');
 
         ?>
@@ -43,7 +43,7 @@ if (!isset($config->changepasswordurl)) {
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><?php print_string('auth_pop3type_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_pop3type_key', 'auth_pop3') ?>: </td>
     <td>
         <?php
 
@@ -55,11 +55,11 @@ if (!isset($config->changepasswordurl)) {
 
         ?>
     </td>
-    <td><?php print_string('auth_pop3type', 'auth') ?></td>
+    <td><?php print_string('auth_pop3type', 'auth_pop3') ?></td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><?php print_string('auth_pop3port_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_pop3port_key', 'auth_pop3') ?>: </td>
     <td>
         <input name="port" type="text" size="6" value="<?php echo $config->port ?>" />
         <?php
@@ -70,11 +70,11 @@ if (!isset($config->changepasswordurl)) {
 
         ?>
     </td>
-    <td><?php print_string('auth_pop3port', 'auth') ?></td>
+    <td><?php print_string('auth_pop3port', 'auth_pop3') ?></td>
 </tr>
 
 <tr valign="top" class="required">
-    <td align="right"><?php print_string('auth_pop3mailbox_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_pop3mailbox_key', 'auth_pop3') ?>: </td>
     <td>
         <input name="mailbox" type="text" size="6" value="<?php echo $config->mailbox ?>" />
         <?php
@@ -85,11 +85,11 @@ if (!isset($config->changepasswordurl)) {
 
         ?>
     </td>
-    <td><?php print_string('auth_pop3mailbox', 'auth') ?></td>
+    <td><?php print_string('auth_pop3mailbox', 'auth_pop3') ?></td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><?php print_string('auth_pop3changepasswordurl_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_pop3changepasswordurl_key', 'auth_pop3') ?>: </td>
     <td>
         <input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
         <?php
index d56f9477c9e075e745dcba550e1a08fd7585ef93..16180a24cf9ad2563a22128e96b0341bc7c4a611 100644 (file)
@@ -30,7 +30,7 @@ if (!isset($config->changepasswordurl)) {
 <table cellspacing="0" cellpadding="5" border="0">
 
 <tr valign="top">
-    <td align="right"><?php print_string('auth_radiushost_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_radiushost_key', 'auth_radius') ?>: </td>
     <td>
         <input name="host" type="text" size="30" value="<?php echo $config->host ?>" />
         <?php
@@ -41,11 +41,11 @@ if (!isset($config->changepasswordurl)) {
 
         ?>
         </td>
-    <td><?php print_string('auth_radiushost', 'auth') ?></td>
+    <td><?php print_string('auth_radiushost', 'auth_radius') ?></td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><?php print_string('auth_radiusnasport_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_radiusnasport_key', 'auth_radius') ?>: </td>
     <td>
         <input name="nasport" type="text" size="6" value="<?php echo $config->nasport ?>" />
         <?php
@@ -56,19 +56,19 @@ if (!isset($config->changepasswordurl)) {
 
         ?>
     </td>
-    <td><?php print_string('auth_radiusnasport', 'auth') ?></td>
+    <td><?php print_string('auth_radiusnasport', 'auth_radius') ?></td>
 </tr>
 
 <tr valign="top" >
-    <td align="right"><?php print_string('auth_radiustype_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_radiustype_key', 'auth_radius') ?>: </td>
     <td>
 <?php
 
     $radiustype = array();
-    $radiustype['PAP']      = get_string('auth_radiustypepap', 'auth');
-    $radiustype['CHAP_MD5'] = get_string('auth_radiustypechapmd5', 'auth');
-    $radiustype['MSCHAPv1'] = get_string('auth_radiustypemschapv1', 'auth');
-    $radiustype['MSCHAPv2'] = get_string('auth_radiustypemschapv2', 'auth');
+    $radiustype['PAP']      = get_string('auth_radiustypepap', 'auth_radius');
+    $radiustype['CHAP_MD5'] = get_string('auth_radiustypechapmd5', 'auth_radius');
+    $radiustype['MSCHAPv1'] = get_string('auth_radiustypemschapv1', 'auth_radius');
+    $radiustype['MSCHAPv2'] = get_string('auth_radiustypemschapv2', 'auth_radius');
     choose_from_menu($radiustype, 'radiustype', $config->radiustype, '');
 
     if (isset($err['radiustype'])) {
@@ -77,12 +77,12 @@ if (!isset($config->changepasswordurl)) {
 
 ?>
     </td>
-    <td><?php print_string('auth_radiustype', 'auth') ?></td>
+    <td><?php print_string('auth_radiustype', 'auth_radius') ?></td>
 </tr>
 
 
 <tr valign="top" >
-    <td align="right"><?php print_string('auth_radiussecret_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_radiussecret_key', 'auth_radius') ?>: </td>
     <td>
         <input name="secret" type="text" size="6" value="<?php echo $config->secret ?>" />
         <?php
@@ -93,11 +93,11 @@ if (!isset($config->changepasswordurl)) {
 
         ?>
     </td>
-    <td><?php print_string('auth_radiussecret', 'auth') ?></td>
+    <td><?php print_string('auth_radiussecret', 'auth_radius') ?></td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><?php print_string('auth_radiuschangepasswordurl_key', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_radiuschangepasswordurl_key', 'auth_radius') ?>: </td>
     <td>
         <input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
         <?php
index 9fcfdbf78076c9f3b6f425e17d104a58eded5c5e..faa0fc4ee2b49fdb070c0b702818599aa55bd511 100644 (file)
@@ -94,7 +94,7 @@ class auth_plugin_shibboleth extends auth_plugin_base {
 
         // Check whether we have got all the essential attributes
         if ( empty($_SERVER[$this->config->user_attribute]) ) {
-            print_error( 'shib_not_all_attributes_error', 'auth' , '', "'".$this->config->user_attribute."' ('".$_SERVER[$this->config->user_attribute]."'), '".$this->config->field_map_firstname."' ('".$_SERVER[$this->config->field_map_firstname]."'), '".$this->config->field_map_lastname."' ('".$_SERVER[$this->config->field_map_lastname]."') and '".$this->config->field_map_email."' ('".$_SERVER[$this->config->field_map_email]."')");
+            print_error( 'shib_not_all_attributes_error', 'auth_shibboleth' , '', "'".$this->config->user_attribute."' ('".$_SERVER[$this->config->user_attribute]."'), '".$this->config->field_map_firstname."' ('".$_SERVER[$this->config->field_map_firstname]."'), '".$this->config->field_map_lastname."' ('".$_SERVER[$this->config->field_map_lastname]."') and '".$this->config->field_map_email."' ('".$_SERVER[$this->config->field_map_email]."')");
         }
 
         $attrmap = $this->get_attributes();
index 5bad2145334caf1fce725595078a8a696259238f..43cc733f2975621ab2f5f91a4638f7802afb9be2 100755 (executable)
@@ -4,7 +4,7 @@
 
     // Set to defaults if undefined
     if (!isset($config->auth_instructions) or empty($config->user_attribute)) {
-        $config->auth_instructions = get_string('auth_shib_instructions', 'auth', $CFG->wwwroot.'/auth/shibboleth/index.php');
+        $config->auth_instructions = get_string('auth_shib_instructions', 'auth_shibboleth', $CFG->wwwroot.'/auth/shibboleth/index.php');
     }
     if (!isset ($config->user_attribute)) {
         $config->user_attribute = '';
     <td>
         <input name="user_attribute" type="text" size="30" value="<?php echo $config->user_attribute ?>" />
     </td>
-    <td><?php print_string("auth_shib_username_description", "auth") ?></td>
+    <td><?php print_string("auth_shib_username_description", "auth_shibboleth") ?></td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><?php print_string("auth_shib_convert_data", "auth") ?>:</td>
+    <td align="right"><?php print_string("auth_shib_convert_data", "auth_shibboleth") ?>:</td>
     <td>
         <input name="convert_data" type="text" size="30" value="<?php echo $config->convert_data?>" />
         <?php
 
         if ($config->convert_data and $config->convert_data != '' and !is_readable($config->convert_data)) {
               echo '<br/><font color="red">';
-              print_string("auth_shib_convert_data_warning", "auth");
+              print_string("auth_shib_convert_data_warning", "auth_shibboleth");
               echo '</font>';
         }
 
         ?>
     </td>
-    <td><?php print_string("auth_shib_convert_data_description", "auth"); echo $config->alt_login ?></td>
+    <td><?php print_string("auth_shib_convert_data_description", "auth_shibboleth"); echo $config->alt_login ?></td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><?php print_string("auth_shib_integrated_wayf", "auth") ?>:</td>
+    <td align="right"><?php print_string("auth_shib_integrated_wayf", "auth_shibboleth") ?>:</td>
     <td>
         <input name="alt_login" type="checkbox" <?php 
         if ( isset($config->alt_login) and $config->alt_login == 'on' ){
             }
         ?> />
     </td>
-    <td><?php print_string("auth_shib_integrated_wayf_description", "auth") ?></td>
+    <td><?php print_string("auth_shib_integrated_wayf_description", "auth_shibboleth") ?></td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><?php print_string("auth_shib_idp_list", "auth") ?>:</td>
+    <td align="right"><?php print_string("auth_shib_idp_list", "auth_shibboleth") ?>:</td>
     <td>
         <textarea name="organization_selection" rows="10" cols="30" style="overflow: auto; white-space: nowrap;"
 ><?php 
@@ -73,16 +73,16 @@ urn:mace:organization2:providerID, Example Organization 2, /Shibboleth.sso/WAYF/
     <?php
        if (isset($config->organization_selection) && empty($config->organization_selection) && isset($config->alt_login) && $config->alt_login == 'on') {
               echo '<br/><font color="red">';
-              print_string("auth_shib_no_organizations_warning", "auth");
+              print_string("auth_shib_no_organizations_warning", "auth_shibboleth");
               echo '</font>';
         }
     ?>
     </td>
-    <td><?php print_string("auth_shib_idp_list_description", "auth") ?></td>
+    <td><?php print_string("auth_shib_idp_list_description", "auth_shibboleth") ?></td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><?php print_string("auth_shib_logout_url", "auth") ?>:</td>
+    <td align="right"><?php print_string("auth_shib_logout_url", "auth_shibboleth") ?>:</td>
     <td>
         <input name="logout_handler" type="text" size="30" value="<?php 
         if ( isset($config->logout_handler) and !empty($config->logout_handler)){
@@ -90,11 +90,11 @@ urn:mace:organization2:providerID, Example Organization 2, /Shibboleth.sso/WAYF/
         }
         ?>" />
     </td>
-    <td><?php print_string("auth_shib_logout_url_description", "auth") ?></td>
+    <td><?php print_string("auth_shib_logout_url_description", "auth_shibboleth") ?></td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><?php print_string("auth_shib_logout_return_url", "auth") ?>:</td>
+    <td align="right"><?php print_string("auth_shib_logout_return_url", "auth_shibboleth") ?>:</td>
     <td>
         <input name="logout_return_url" type="text" size="30" value="<?php 
         if ( isset($config->logout_return_url) and !empty($config->logout_return_url)){
@@ -102,11 +102,11 @@ urn:mace:organization2:providerID, Example Organization 2, /Shibboleth.sso/WAYF/
         }
         ?>" />
     </td>
-    <td><?php print_string("auth_shib_logout_return_url_description", "auth") ?></td>
+    <td><?php print_string("auth_shib_logout_return_url_description", "auth_shibboleth") ?></td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><?php print_string("auth_shib_auth_method", "auth") ?>:</td>
+    <td align="right"><?php print_string("auth_shib_auth_method", "auth_shibboleth") ?>:</td>
     <td>
         <input name="login_name" type="text" size="30" value="<?php 
         if ( isset($config->login_name) and !empty($config->login_name)){
@@ -116,11 +116,11 @@ urn:mace:organization2:providerID, Example Organization 2, /Shibboleth.sso/WAYF/
         }
         ?>" />
     </td>
-    <td><?php print_string("auth_shib_auth_method_description", "auth") ?></td>
+    <td><?php print_string("auth_shib_auth_method_description", "auth_shibboleth") ?></td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><?php print_string('auth_shib_changepasswordurl', 'auth') ?>: </td>
+    <td align="right"><?php print_string('auth_shib_changepasswordurl', 'auth_shibboleth') ?>: </td>
     <td>
         <input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
         <?php
index 4a658830387362804efd7add6fcdcbdda4c15898..e8a455c1b0588f6018099d37244904d94f00570d 100644 (file)
@@ -15,7 +15,7 @@ if ($show_instructions) {
         if (isset($config->login_name) && !empty($config->login_name)){
             echo $config->login_name;
         } else {
-            print_string("auth_shibboleth_login_long", "auth");
+            print_string("auth_shibboleth_login_long", "auth_shibboleth");
         }
     ?></h2>
       <div class="subcontent loginsub">
@@ -29,10 +29,10 @@ if ($show_instructions) {
 
         ?>
           <div class="guestsub">
-          <p><?php print_string("auth_shibboleth_select_organization", "auth"); ?></p>
+          <p><?php print_string("auth_shibboleth_select_organization", "auth_shibboleth"); ?></p>
             <form action="login.php" method="post" id="guestlogin">
             <select name="idp"> 
-                <option value="-" ><?php print_string("auth_shibboleth_select_member", "auth"); ?></option>
+                <option value="-" ><?php print_string("auth_shibboleth_select_member", "auth_shibboleth"); ?></option>
                 <?php
                     print_idp_list();
                 ?>
@@ -40,7 +40,7 @@ if ($show_instructions) {
             </form>
             <p>
             <?php 
-                print_string("auth_shibboleth_contact_administrator", "auth"); 
+                print_string("auth_shibboleth_contact_administrator", "auth_shibboleth");
                 echo '<a href="mailto:'.get_admin()->email.'"> Moodle Administrator</a>.';
             ?>
             </p>
index caa2fd917d812d2e8bc3bb53be7f73486ae2c718..7ae0874b880e4e74d7dba7baa54a5f6a3fc02204 100644 (file)
@@ -65,7 +65,7 @@ httpsrequired();
             header('Location: /Shibboleth.sso?providerId='. urlencode($selectedIdP) .'&target='. urlencode($CFG->wwwroot.'/auth/shibboleth/index.php'));
         }
     } elseif (isset($_POST['idp']) && !isset($IdPs[$_POST['idp']]))  {
-        $errormsg = get_string('auth_shibboleth_errormsg', 'auth');
+        $errormsg = get_string('auth_shibboleth_errormsg', 'auth_shibboleth');
     }
 
     $loginsite = get_string("loginsite");
index 558215d675ca6e339b720cd1a274a7316fd0a172..923e9d2603346f3beed1907a9ebb3446eb180bbe 100644 (file)
@@ -13,62 +13,12 @@ $string['user_activatenotsupportusertype'] = 'auth: ldap user_activate() does no
 $string['user_disablenotsupportusertype'] = 'auth: ldap user_disable() does not support selected usertype (..yet)';
 // synchronization
 $string['auth_sync_script'] ='Cron synchronization script';
-$string['auth_dbinsertuser'] ='Inserted user $a[0] id $a[1]';
-$string['auth_dbinsertusererror'] = 'Error inserting user $a';
-$string['auth_dbdeleteuser'] ='Deleted user $a[0] id $a[1]';
-$string['auth_dbdeleteusererror'] = 'Error deleting user $a';
-$string['auth_dbreviveduser'] ='Revived user $a[0] id $a[1]';
-$string['auth_dbrevivedusererror'] = 'Error reviving user $a';
-$string['auth_dbsuspenduser'] ='Suspended user $a[0] id $a[1]';
-$string['auth_dbsuspendusererror'] = 'Error suspending user $a';
-$string['auth_dbupdatinguser'] ='Updating user $a[0] id $a[1]';
 $string['auth_remove_user_key'] ='Removed ext user';
 $string['auth_remove_user'] ='Specify what to do with internal user account during mass synchronization when user was removed from external source. Only suspended users are automatically revived if they reappear in ext source.';
 $string['auth_remove_keep'] ='Keep internal';
 $string['auth_remove_suspend'] ='Suspend internal';
 $string['auth_remove_delete'] ='Full delete internal';
 
-// nologin plugin
-$string['auth_nologindescription'] = 'Auxiliary plugin that prevents user to login into system and also discards any mail sent to the user. Can be used to <em>suspend</em> user accounts.';
-$string['auth_nologintitle'] = 'No login';
-
-// CAS plugin
-$string['auth_cas_proxycas_key'] = "Proxy mode";
-$string['auth_cas_logoutcas_key'] = "Logout CAS";
-$string['auth_cas_multiauth_key'] = "Multi-authentication";
-$string['auth_cas_proxycas'] = 'Turn this to \'yes\' if you use CASin proxy-mode';
-$string['auth_cas_logoutcas'] = 'Turn this to \'yes\' if tou want to logout from CAS when you deconnect from Moodle';
-$string['auth_cas_multiauth'] = 'Turn this to \'yes\' if you want to have multi-authentication (CAS + other authentication)';
-$string['accesCAS'] = "CAS users";
-$string['accesNOCAS'] = "other users";
-$string['CASform'] = "Authentication choice";
-$string['auth_cas_logincas'] = 'Secure connection access';
-$string['auth_cas_invalidcaslogin'] = 'Sorry, your login has failed - you could not be authorised';
-$string['auth_cas_server_settings'] = 'CAS server configuration';
-$string['auth_castitle'] = 'CAS server (SSO)';
-$string['auth_cas_hostname'] = 'Hostname of the CAS server <br />eg: host.domain.fr';
-$string['auth_cas_baseuri'] = 'URI of the server (nothing if no baseUri)<br />For example, if the CAS server responds to host.domaine.fr/CAS/ then<br />cas_baseuri = CAS/';
-$string['auth_cas_port'] = 'Port of the CAS server';
-$string['auth_cas_version'] = 'Version of CAS';
-$string['auth_cas_language'] = 'Selected language';
-$string['auth_casdescription'] = 'This method uses a CAS server (Central Authentication Service) to authenticate users in a Single Sign On environment (SSO). You can also use a simple LDAP authentication. If the given username and password are valid according to CAS, Moodle creates a new user entry in its database, taking user attributes from LDAP if required. On following logins only the username and password are checked.';
-$string['auth_cas_enabled'] = 'Turn this on if you want to use CAS authentication.';
-$string['auth_cas_text'] = 'Secure connection';
-$string['auth_cas_create_user'] = 'Turn this on if you want to insert CAS-authenticated users in Moodle database. If not then only users who already exist in the Moodle database can log in.';
-$string['auth_casnotinstalled'] = 'Cannot use CAS authentication. The PHP LDAP module is not installed.';
-$string['auth_cas_cantconnect'] ='LDAP part of CAS-module cannot connect to server: $a';
-$string['auth_cas_use_cas'] ='Use CAS';
-$string['auth_cas_broken_password'] ='You cannot proceed without changing your password, however there is no available page for changing it. Please contact your Moodle Administrator.';
-
-$string['auth_cas_hostname_key'] ='Hostname';
-$string['auth_cas_changepasswordurl'] ='Password-change URL';
-$string['auth_cas_create_user_key'] ='Create user';
-$string['auth_cas_auth_user_create'] ='Create users externally';
-$string['auth_cas_language_key'] ='Language';
-$string['auth_cas_casversion'] ='Version';
-$string['auth_cas_port_key'] ='Port';
-$string['auth_cas_baseuri_key'] ='Base URI';
-
 $string['auth_changepasswordurl'] = 'Change password URL';
 $string['auth_changepasswordurl_expl'] = 'Specify the url to send users who have lost their $a password. Set <strong>Use standard Change Password page</strong> to <strong>No</strong>.';
 $string['auth_changepasswordhelp'] = 'Change password help';
@@ -76,295 +26,13 @@ $string['auth_changepasswordhelp_expl'] = 'Display lost password help to users w
 $string['auth_common_settings'] = 'Common settings';
 $string['auth_data_mapping'] = 'Data mapping';
 
-// Database plugin
-$string['auth_dbdescription'] = 'This method uses an external database table to check whether a given username and password is valid.  If the account is a new one, then information from other fields may also be copied across into Moodle.';
-$string['auth_dbextrafields'] = 'These fields are optional.  You can choose to pre-fill some Moodle user fields with information from the <b>external database fields</b> that you specify here. <p>If you leave these blank, then defaults will be used.</p><p>In either case, the user will be able to edit all of these fields after they log in.</p>';
-$string['auth_dbfieldpass'] = 'Name of the field containing passwords';
-$string['auth_dbfielduser'] = 'Name of the field containing usernames';
-$string['auth_dbhost'] = 'The computer hosting the database server.';
-$string['auth_dbname'] = 'Name of the database itself';
-$string['auth_dbpass'] = 'Password matching the above username';
-$string['auth_dbpasstype'] = '<p>Specify the format that the password field is using. MD5 hashing is useful for connecting to other common web applications like PostNuke.</p> <p>Use \'internal\' if you want to the external DB to manage usernames &amp; email addresses, but Moodle to manage passwords. If you use \'internal\', you <i>must</i> provide a populated email address field in the external DB, and you must execute both admin/cron.php and auth/db/auth_db_sync_users.php regularly. Moodle will send an email to new users with a temporary password.</p>';
-$string['auth_dbtable'] = 'Name of the table in the database';
-$string['auth_dbtitle'] = 'External database';
-$string['auth_dbtype'] = 'The database type (See the <a href=\"../lib/adodb/readme.htm#drivers\">ADOdb documentation</a> for details)';
-$string['auth_dbuser'] = 'Username with read access to the database';
-$string['auth_dbcantconnect'] ='Could not connect to the specified authentication database...';
-$string['auth_dbuserstoadd'] = 'User entries to add: $a';
-$string['auth_dbuserstoremove'] = 'User entries to remove: $a';
-$string['auth_dbusernotexist'] = 'Cannot update non-existent user: $a';
-$string['auth_dbhost_key'] = 'Host';
-$string['auth_dbtype_key'] = 'Database';
-$string['auth_dbsybasequoting'] = 'Use sybase quotes';
-$string['auth_dbsybasequotinghelp'] = 'Sybase style single quote escaping - needed for Oracle, MS SQL and some other databases. Do not use for MySQL!';
-$string['auth_dbname_key'] = 'DB Name';
-$string['auth_dbuser_key'] = 'DB User';
-$string['auth_dbpass_key'] = 'Password';
-$string['auth_dbtable_key'] = 'Table';
-$string['auth_dbfielduser_key'] = 'Username field';
-$string['auth_dbfieldpass_key'] = 'Password field';
-$string['auth_dbpasstype_key'] = 'Password format';
-$string['auth_dbextencoding'] = 'External db encoding';
-$string['auth_dbextencodinghelp'] = 'Encoding used in external database';
-$string['auth_dbsetupsql'] = 'SQL setup command';
-$string['auth_dbsetupsqlhelp'] = 'SQL command for special database setup, often used to setup communication encoding - example for MySQL and PostgreSQL: <em>SET NAMES \'utf8\'</em>';
-$string['auth_dbdebugauthdb'] = 'Debug ADOdb';
-$string['auth_dbdebugauthdbhelp'] = 'Debug ADOdb connection to external database - use when getting empty page during login. Not suitable for production sites.';
-$string['auth_dbchangepasswordurl_key'] = 'Password-change URL';
-
-// Email plugin
-$string['auth_emailchangecancel'] = 'Cancel email change';
-$string['auth_emailchangepending'] = 'Change pending. Open the link sent to you at $a->preference_newemail.';
-$string['auth_emaildescription'] = 'Email confirmation is the default authentication method.  When the user signs up, choosing their own new username and password, a confirmation email is sent to the user\'s email address.  This email contains a secure link to a page where the user can confirm their account. Future logins just check the username and password against the stored values in the Moodle database.';
-$string['auth_emailnowexists'] = 'The email address you tried to assign to your profile has been assigned to someone else since your original request. Your request for change of email address is hereby cancelled, but you may try again with a different address.';
-$string['auth_emailtitle'] = 'Email-based self-registration';
-$string['auth_emailnoinsert'] = 'Could not add your record to the database!';
-$string['auth_emailnoemail'] = 'Tried to send you an email but failed!';
-$string['auth_emailrecaptcha'] = 'Adds a visual/audio confirmation form element to the signup page for email self-registering users. This protects your site against spammers and contributes to a worthwhile cause. See http://recaptcha.net/learnmore.html for more details. <br /><em>PHP cURL extension is required.</em>';
-$string['auth_emailrecaptcha_key'] = 'Enable reCAPTCHA element';
-$string['auth_emailsettings'] = 'Settings';
-$string['auth_emailupdatemessage'] = 'Dear $a->fullname,
-
-You have requested a change of your email address for your user account at $a->site. Please open the following URL in your browser in order to confirm this change.
-
-$a->url';
-$string['auth_emailupdatetitle'] = 'Confirmation of email update at $a->site';
-$string['auth_invalidnewemailkey'] = 'Error: if you are trying to confirm a change of email address, you may have made a mistake in copying the URL we sent you by email. Please copy the address and try again.';
-$string['auth_emailupdatesuccess'] = 'Email address of user <em>$a->fullname</em> was successfully updated to <em>$a->email</em>.';
-$string['auth_outofnewemailupdateattempts'] = 'You have run out of allowed attempts to update your email address. Your update request has been cancelled.';
-$string['auth_emailupdate'] = 'Email address update';
-$string['auth_changingemailaddress'] = 'You have requested a change of email address, from $a->oldemail to $a->newemail. For security reasons, we are sending you an email message at the new address to confirm that it belongs to you. Your email address will be updated as soon as you open the URL sent to you in that message.';
-
-
-// FirstClass plugin
-$string['auth_fccreators'] = 'List of groups whose members are allowed to create new courses. Separate multiple groups with \';\'. Names must be spelled exactly as on FirstClass server. System is case-sensitive.';
-$string['auth_fcdescription'] = 'This method uses a FirstClass server to check whether a given username and password is valid.';
-$string['auth_fcfppport'] = 'Server port (3333 is the most common)';
-$string['auth_fchost'] = 'The FirstClass server address. Use the IP number or DNS name.';
-$string['auth_fcpasswd'] = 'Password for the account above.';
-$string['auth_fctitle'] = 'FirstClass server';
-$string['auth_fcuserid'] = 'Userid for FirstClass account with privilege \'Subadministrator\' set.';
-$string['auth_fchost_key'] = 'Host';
-$string['auth_fcfppport_key'] = 'Port';
-$string['auth_fcuserid_key'] = 'User ID';
-$string['auth_fcpasswd_key'] = 'Password';
-$string['auth_fccreators_key'] = 'Creators';
-$string['auth_fcchangepasswordurl'] = 'Password-change URL';
-$string['auth_fcconnfail'] = 'Connection failed with Errno: $a[0] and Error String: $a[1]';
-
 // Fieldlocks
 $string['auth_fieldlock'] = 'Lock value';
 $string['auth_fieldlock_expl'] = '<p><b>Lock value:</b> If enabled, will prevent Moodle users and admins from editing the field directly. Use this option if you are maintaining this data in the external auth system. </p>';
 $string['auth_fieldlocks'] = 'Lock user fields';
 $string['auth_fieldlocks_help'] = '<p>You can lock user data fields. This is useful for sites where the user data is maintained by the administrators manually by editing user records or uploading using the \'Upload users\' facility. If you are locking fields that are required by Moodle, make sure that you provide that data when creating user accounts or the accounts will be unusable.</p><p>Consider setting the lock mode to \'Unlocked if empty\' to avoid this problem.</p>';
 
-// IMAP plugin
-$string['auth_imapnotinstalled'] = 'Cannot use IMAP authentication. The PHP IMAP module is not installed.';
-$string['auth_imapdescription'] = 'This method uses an IMAP server to check whether a given username and password is valid.';
-$string['auth_imaphost'] = 'The IMAP server address. Use the IP number, not DNS name.';
-$string['auth_imapport'] = 'IMAP server port number. Usually this is 143 or 993.';
-$string['auth_imaptitle'] = 'IMAP server';
-$string['auth_imaptype'] = 'The IMAP server type.  IMAP servers can have different types of authentication and negotiation.';
-$string['auth_imaptype_key'] = 'Type';
-$string['auth_imaphost_key'] = 'Host';
-$string['auth_imapport_key'] = 'Port';
-$string['auth_imapchangepasswordurl_key'] = 'Password-change URL';
-
-// LDAP plugin
-$string['auth_ldap_ad_create_req'] = 'Cannot create the new account in Active Directory. Make sure you meet all the requirements for this to work (LDAPS connection, bind user with adequate rights, etc.)';
-$string['auth_ldap_attrcreators'] = 'List of groups or contexts whose members are allowed to create attributes. Separate multiple groups with \';\'. Usually something like \'cn=teachers,ou=staff,o=myorg\'';
-$string['auth_ldap_attrcreators_key'] = 'Attribute creators';
-$string['auth_ldap_bind_dn'] = 'If you want to use bind-user to search users, specify it here. Something like \'cn=ldapuser,ou=public,o=org\'';
-$string['auth_ldap_bind_pw'] = 'Password for bind-user.';
-$string['auth_ldap_bind_settings'] = 'Bind settings';
-$string['auth_ldap_contexts'] = 'List of contexts where users are located. Separate different contexts with \';\'. For example: \'ou=users,o=org; ou=others,o=org\'';
-$string['auth_ldap_create_context'] = 'If you enable user creation with email confirmation, specify the context where users are created. This context should be different from other users to prevent security issues. You don\'t need to add this context to ldap_context-variable, Moodle will search for users from this context automatically.<br /><b>Note!</b> You have to modify the method user_create() in file auth/ldap/auth.php to make user creation work';
-$string['auth_ldap_create_error'] = 'Error creating user in LDAP.';
-$string['auth_ldap_creators'] = 'List of groups or contexts whose members are allowed to create new courses. Separate multiple groups with \';\'. Usually something like \'cn=teachers,ou=staff,o=myorg\'';
-$string['auth_ldap_expiration_desc'] = 'Select No to disable expired password checking or LDAP to read passwordexpiration time directly from LDAP';
-$string['auth_ldap_expiration_warning_desc'] = 'Number of days before password expiration warning is issued.';
-$string['auth_ldap_expireattr_desc'] = 'Optional: overrides ldap-attribute that stores password expiration time';
-$string['auth_ldap_graceattr_desc'] = 'Optional: Overrides  gracelogin attribute';
-$string['auth_ldap_gracelogins_desc'] = 'Enable LDAP gracelogin support. After password has expired user can login until gracelogin count is 0. Enabling this setting displays grace login message if password is expired.';
-$string['auth_ldap_groupecreators'] = 'List of groups or contexts whose members are allowed to create groups. Separate multiple groups with \';\'. Usually something like \'cn=teachers,ou=staff,o=myorg\'';
-$string['auth_ldap_groupecreators_key'] = 'Group creators';
-$string['auth_ldap_host_url'] = 'Specify LDAP host in URL-form like \'ldap://ldap.myorg.com/\' or \'ldaps://ldap.myorg.com/\' Separate multipleservers with \';\' to get failover support.';
-$string['auth_ldap_ldap_encoding'] = 'Specify encoding used by LDAP server. Most probably utf-8, MS AD v2 uses default platform encoding such as cp1252, cp1250, etc.';
-$string['auth_ldap_login_settings'] = 'Login settings';
-$string['auth_ldap_memberattribute'] = 'Optional: Overrides user member attribute, when users belongs to a group. Usually \'member\'';
-$string['auth_ldap_memberattribute_isdn'] = 'Optional: Overrides handling of member attribute values, either 0 or 1';
-$string['auth_ldap_no_mbstring'] = 'You need the mbstring extension to create users in Active Directory.';
-$string['auth_ldap_objectclass'] = 'Optional: Overrides objectClass used to name/search users on ldap_user_type. Usually you dont need to chage this.';
-$string['auth_ldap_opt_deref'] = 'Determines how aliases are handled during search. Select one of the following values: \"No\" (LDAP_DEREF_NEVER) or \"Yes\" (LDAP_DEREF_ALWAYS)';
-$string['auth_ldap_passtype'] = 'Specify the format of new or changed passwords in LDAP server.';
-$string['auth_ldap_passwdexpire_settings'] = 'LDAP password expiration settings.';
-$string['auth_ldap_preventpassindb'] = 'Select yes to prevent passwords from being stored in Moodle\'s DB.';
-$string['auth_ldap_search_sub'] = 'Search users from subcontexts.';
-$string['auth_ldap_server_settings'] = 'LDAP server settings';
-$string['auth_ldap_update_userinfo'] = 'Update user information (firstname, lastname, address..) from LDAP to Moodle.  Specify \"Data mapping\" settings as you need.';
-$string['auth_ldap_user_exists'] = 'LDAP username already exists.';
-$string['auth_ldap_user_attribute'] = 'Optional: Overrides the attribute used to name/search users. Usually \'cn\'.';
-$string['auth_ldap_user_settings'] = 'User lookup settings';
-$string['auth_ldap_user_type'] = 'Select how users are stored in LDAP. This setting also specifies how login expiration, grace logins and user creation will work.';
-$string['auth_ldap_version'] = 'The version of the LDAP protocol your server is using.';
-$string['auth_ldapdescription'] = 'This method provides authentication against an external LDAP server.
-
-                                  If the given username and password are valid, Moodle creates a new user
-
-                                  entry in its database. This module can read user attributes from LDAP and prefill
-
-                                  wanted fields in Moodle.  For following logins only the username and
-
-                                  password are checked.';
-$string['auth_ldap_ldap_encoding_key'] = 'LDAP encoding';
-$string['auth_ldap_host_url_key'] = 'Host URL';
-$string['auth_ldap_version_key'] = 'Version';
-$string['auth_ldap_preventpassindb_key'] = 'Hide passwords';
-$string['auth_ldap_bind_dn_key'] = 'Distinguished Name';
-$string['auth_ldap_bind_pw_key'] = 'Password';
-$string['auth_ldap_user_type_key'] = 'User type';
-$string['auth_ldap_contexts_key'] = 'Contexts';
-$string['auth_ldap_search_sub_key'] = 'Search subcontexts';
-$string['auth_ldap_opt_deref_key'] = 'Dereference aliases';
-$string['auth_ldap_user_attribute_key'] = 'User attribute';
-$string['auth_ldap_memberattribute_key'] = 'Member attribute';
-$string['auth_ldap_memberattribute_isdn_key'] = 'Member attribute uses dn';
-$string['auth_ldap_objectclass_key'] = 'Object class';
-$string['auth_ldap_passtype_key'] = 'Password format';
-$string['auth_ldap_changepasswordurl_key'] = 'Password-change URL';
-$string['auth_ldap_expiration_key'] = 'Expiration';
-$string['auth_ldap_expiration_warning_key'] = 'Expiration warning';
-$string['auth_ldap_expireattr_key'] = 'Expiration attribute';
-$string['auth_ldap_gracelogins_key'] = 'Grace logins';
-$string['auth_ldap_gracelogin_key'] = 'Grace login attribute';
-$string['auth_ldap_auth_user_create_key'] = 'Create users externally';
-$string['auth_ldap_create_context_key'] = 'Context for new users';
-$string['auth_ldap_creators_key'] = 'Creators';
-$string['auth_ldap_noconnect'] = 'LDAP-module cannot connect to server: $a';
-$string['auth_ldap_noconnect_all'] = 'LDAP-module cannot connect to any servers: $a';
-$string['auth_ldap_unsupportedusertype'] = 'auth: ldap user_create() does not support selected usertype: $a (..yet)';
-$string['auth_ldap_usertypeundefined'] = 'config.user_type not defined or function ldap_expirationtime2unix does not support selected type!';
-$string['auth_ldap_usertypeundefined2'] = 'config.user_type not defined or function ldap_unixi2expirationtime does not support selected type!';
-$string['auth_ldap_noextension'] = 'Warning: The PHP LDAP module does not seem to be present. Please ensure it is installed and enabled.';
-
-$string['auth_ldapextrafields'] = 'These fields are optional.  You can choose to pre-fill some Moodle user fields with information from the <b>LDAP fields</b> that you specify here. <p>If you leave these fields blank, then nothing will be transferred from LDAP and Moodle defaults will be used instead.</p><p>In either case, the user will be able to edit all of these fields after they log in.</p>';
-$string['auth_ldaptitle'] = 'LDAP server';
-$string['auth_ldapnotinstalled'] = 'Cannot use LDAP authentication. The PHP LDAP module is not installed.';
-$string['auth_ntlmsso'] = 'NTLM SSO';
-$string['auth_ntlmsso_enabled_key'] = 'Enable';
-$string['auth_ntlmsso_enabled'] = 'Set to yes to attempt Single Sign On with the NTLM domain. <strong>Note:</strong> this requires additional setup on the webserver to work, see <a href=\"http://docs.moodle.org/en/NTLM_authentication\">http://docs.moodle.org/en/NTLM_authentication</a>';
-$string['auth_ntlmsso_ie_fastpath'] = 'Set to yes to enable the NTLM SSO fast path (bypasses certain steps and only works if the client\'s browser is MS Internet Explorer).';
-$string['auth_ntlmsso_ie_fastpath_key'] = 'MS IE fast path?';
-$string['auth_ntlmsso_subnet_key'] = 'Subnet';
-$string['auth_ntlmsso_subnet'] = 'If set, it will only attempt SSO with clients in this subnet. Format: xxx.xxx.xxx.xxx/bitmask';
-$string['ntlmsso_attempting'] = 'Attempting Single Sign On via NTLM...';
-$string['ntlmsso_failed'] = 'Auto-login failed, try the normal login page...';
-$string['ntlmsso_isdisabled'] = 'NTLM SSO is disabled.';
-
-// Manual plugin
-$string['auth_manualdescription'] = 'This method removes any way for users to create their own accounts.  All accounts must be manually created by the admin user.';
-$string['auth_manualtitle'] = 'Manual accounts';
-
-// MNET plugin
-$string['auth_mnettitle'] = 'Moodle Network authentication';
-$string['auth_mnetdescription'] = 'Users are authenticated according to the web of trust defined in your Moodle Network settings.';
-$string['auth_mnet_rpc_negotiation_timeout'] = 'The timeout in seconds for authentication over the XMLRPC transport.';
-$string['auth_mnet_roamout'] = 'Your users can roam out to these hosts';
-$string['auth_mnet_roamin'] = 'These host\'s users can roam in to your site';
-$string['auth_mnet_auto_add_remote_users'] = 'When set to Yes, a local user record is auto-created when a remote user logs in for the first time.';
-$string['auto_add_remote_users'] = 'Auto add remote users';
-$string['rpc_negotiation_timeout'] = 'RPC negotiation timeout';
-
 $string['auth_multiplehosts'] = 'Multiple hosts OR addresses can be specified (eg host1.com;host2.com;host3.com) or (eg xxx.xxx.xxx.xxx;xxx.xxx.xxx.xxx)';
-
-// NNTP plugin
-$string['auth_nntpdescription'] = 'This method uses an NNTP server to check whether a given username and password is valid.';
-$string['auth_nntphost'] = 'The NNTP server address. Use the IP number, not DNS name.';
-$string['auth_nntpport'] = 'Server port (119 is the most common)';
-$string['auth_nntptitle'] = 'NNTP server';
-$string['auth_nntpnotinstalled'] = 'Cannot use NNTP authentication. The PHP IMAP module is not installed.';
-$string['auth_nntpchangepasswordurl_key'] = 'Password-change URL';
-$string['auth_nntpport_key'] = 'Port';
-$string['auth_nntphost_key'] = 'Host';
-
-// None plugin
-$string['auth_nonedescription'] = 'Users can sign in and create valid accounts immediately, with no authentication against an external server and no confirmation via email.  Be careful using this option - think of the security and administration problems this could cause.';
-$string['auth_nonetitle'] = 'No authentication';
-
-// PAM plugin
-$string['auth_pamdescription'] = 'This method uses PAM to access the native usernames on this server. You have to install <a href=\"http://www.math.ohio-state.edu/~ccunning/pam_auth/\">PHP4 PAM Authentication</a> in order to use this module.';
-$string['auth_pamtitle'] = 'PAM (Pluggable Authentication Modules)';
-
-$string['auth_passwordisexpired'] = 'Your password is expired. Do you want change your password now?';
-$string['auth_passwordwillexpire'] = 'Your password will expire in $a days. Do you want change your password now?';
-
-// POP3 plugin
-$string['auth_pop3description'] = 'This method uses a POP3 server to check whether a given username and password is valid.';
-$string['auth_pop3host'] = 'The POP3 server address. Use the IP number, not DNS name.';
-$string['auth_pop3mailbox'] = 'Name of the mailbox to attempt a connection with.  (usually INBOX)';
-$string['auth_pop3port'] = 'Server port (110 is the most common, 995 is common for SSL)';
-$string['auth_pop3title'] = 'POP3 server';
-$string['auth_pop3type'] = 'Server type. If your server uses certificate security, choose pop3cert.';
-$string['auth_pop3notinstalled'] = 'Cannot use POP3 authentication. The PHP IMAP module is not installed.';
-$string['auth_pop3changepasswordurl_key'] = 'Password-change URL';
-$string['auth_pop3mailbox_key'] = 'Mailbox';
-$string['auth_pop3port_key'] = 'Port';
-$string['auth_pop3type_key'] = 'Type';
-$string['auth_pop3host_key'] = 'Host';
-
-// RADIUS plugin
-$string['auth_radiustitle'] = 'RADIUS server';
-$string['auth_radiusdescription'] = 'This method uses a <a href=\"http://en.wikipedia.org/wiki/RADIUS\">RADIUS</a> server to check whether a given username and password is valid.';
-$string['auth_radiushost'] = 'Address of the RADIUS server';
-$string['auth_radiusnasport'] = 'Port to use to connect';
-$string['auth_radiussecret'] = 'Shared secret';
-$string['auth_radiustype'] = 'Choose an authentication scheme to use with the RADIUS server.';
-$string['auth_radiustypepap'] = 'PAP';
-$string['auth_radiustypechapmd5'] = 'CHAP MD5';
-$string['auth_radiustypemschapv1'] = 'Microsoft CHAP version 1';
-$string['auth_radiustypemschapv2'] = 'Microsoft CHAP version 2';
-$string['auth_radiuschangepasswordurl_key'] = 'Password-change URL';
-$string['auth_radiusnasport_key'] = 'Port';
-$string['auth_radiushost_key'] = 'Host';
-$string['auth_radiussecret_key'] = 'Secret';
-$string['auth_radiustype_key'] = 'Authentication';
-
-// Shibboleth plugin
-$string['auth_shibbolethdescription'] = 'Using this method users are created and authenticated using <a href=\"http://shibboleth.internet2.edu/\">Shibboleth</a>.<br />Be sure to read the <a href=\"../auth/shibboleth/README.txt\">README</a> for Shibboleth on how to set up your Moodle with Shibboleth';
-$string['auth_shibbolethtitle'] = 'Shibboleth';
-$string['auth_shibboleth_login'] = 'Shibboleth Login';
-$string['auth_shibboleth_manual_login'] = 'Manual Login';
-$string['auth_shib_only'] = 'Shibboleth only';
-$string['auth_shib_only_description'] = 'Check this option if a Shibboleth authentication shall be enforced';
-$string['auth_shib_username_description'] = 'Name of the webserver Shibboleth environment variable that shall be used as Moodle username';
-$string['auth_shib_instructions'] = 'Use the <a href=\"$a\">Shibboleth login</a> to get access via Shibboleth, if your institution supports it.<br />Otherwise, use the normal login form shown here.';
-$string['auth_shib_convert_data'] = 'Data modification API';
-$string['auth_shib_convert_data_description'] = 'You can use this API to further modify the data provided by Shibboleth. Read the <a href=\"../auth/shibboleth/README.txt\">README</a> for further instructions.';
-$string['auth_shib_instructions_help'] = 'Here you should provide custom instructions for your users to explain Shibboleth.  It will be shown on the login page in the instructions section. The instructions must include a link to \"<b>$a</b>\" that users click when they want to log in.';
-$string['auth_shib_convert_data_warning'] = 'The file does not exist or is not readable by the webserver process!';
-$string['auth_shib_changepasswordurl'] = 'Password-change URL';
-$string['auth_shibboleth_login_long'] = 'Login to Moodle via Shibboleth';
-$string['auth_shibboleth_select_organization'] = 'For authentication via Shibboleth, please select your organization from the drop down list:';
-$string['auth_shibboleth_contact_administrator'] = 'In case you are not associated with the given organizations and you need access to a course on this server, please contact the';
-$string['auth_shibboleth_select_member'] = 'I\'m a member of ...';
-$string['auth_shibboleth_errormsg'] ='Please select the organization you are member of!';
-$string['auth_shib_no_organizations_warning'] ='If you want to use the integrated WAYF service, you must provide a coma-separated list of Identity Provider entityIDs, their names and optionally a session initiator.';
-
-$string['shib_not_set_up_error'] = 'Shibboleth authentication doesn\'t seem to be set up correctly because no Shibboleth environment variables are present for this page. Please consult the <a href=\"README.txt\">README</a> for further instructions on how to set up Shibboleth authentication or contact the webmaster of this Moodle installation.';
-$string['shib_no_attributes_error'] = 'You seem to be Shibboleth authenticated but Moodle didn\'t receive any user attributes. Please check that your Identity Provider releases the necessary attributes ($a) to the Service Provider Moodle is running on or inform the webmaster of this server.';
-$string['shib_not_all_attributes_error'] = 'Moodle needs certain Shibboleth attributes which are not present in your case. The attributes are: $a<br />Please contact the webmaster of this server or your Identity Provider.';
-$string['auth_shib_integrated_wayf'] = 'Moodle WAYF Service';
-$string['auth_shib_integrated_wayf_description'] = 'If you check this, Moodle will use its own WAYF service instead of the one configured for Shibboleth. Moodle will display a drop-down list on this alternative login page where the user has to select his Identity Provider.';
-$string['auth_shib_idp_list'] = 'Identity Providers';
-$string['auth_shib_idp_list_description'] = 'Provide a list of Identity Provider entityIDs to let the user choose from on the login page.<br />On each line there must be a comma-separated tuple for entityID of the IdP (see the Shibboleth metadata file) and Name of IdP as it shall be displayed in the drop-down list.<br />As an optional third parameter you can add the location of a Shibboleth session initiator that shall be used in case your Moodle installation is part of a multi federation setup.';
-$string['auth_shib_logout_url'] = 'Shibboleth Service Provider logout handler URL';
-$string['auth_shib_logout_url_description'] = 'Provide the URL to the Shibboleth Service Provider logout handler. This typically is <tt>/Shibboleth.sso/Logout</tt>';
-$string['auth_shib_auth_method'] = 'Authentication Method Name';
-$string['auth_shib_auth_method_description'] = 'Provide a name for the Shibboleth authentication method that is familiar to your users. This could be the name of your Shibboleth federation, e.g. <tt>SWITCHaai Login</tt> or <tt>InCommon Login</tt> or similar.';
-$string['auth_shib_logout_return_url'] = 'Alternative logout return URL';
-$string['auth_shib_logout_return_url_description'] = 'Provide the URL that Shibboleth users shall be redirected to after logging out.<br />If left empty, users will be redirected to the location that moodle will redirect users to';
-
-
 $string['auth_updatelocal'] = 'Update local';
 $string['auth_updatelocal_expl'] = '<p><b>Update local:</b> If enabled, the field will be updated (from external auth) every time the user logs in or there is a user synchronization. Fields set to update locally should be locked.</p>';
 $string['auth_updateremote'] = 'Update external';
diff --git a/lang/en_utf8/auth_cas.php b/lang/en_utf8/auth_cas.php
new file mode 100644 (file)
index 0000000..60a7439
--- /dev/null
@@ -0,0 +1,38 @@
+<?php 
+// CAS plugin
+$string['auth_cas_proxycas_key'] = "Proxy mode";
+$string['auth_cas_logoutcas_key'] = "Logout CAS";
+$string['auth_cas_multiauth_key'] = "Multi-authentication";
+$string['auth_cas_proxycas'] = 'Turn this to \'yes\' if you use CASin proxy-mode';
+$string['auth_cas_logoutcas'] = 'Turn this to \'yes\' if tou want to logout from CAS when you deconnect from Moodle';
+$string['auth_cas_multiauth'] = 'Turn this to \'yes\' if you want to have multi-authentication (CAS + other authentication)';
+$string['accesCAS'] = "CAS users";
+$string['accesNOCAS'] = "other users";
+$string['CASform'] = "Authentication choice";
+$string['auth_cas_logincas'] = 'Secure connection access';
+$string['auth_cas_invalidcaslogin'] = 'Sorry, your login has failed - you could not be authorised';
+$string['auth_cas_server_settings'] = 'CAS server configuration';
+$string['auth_castitle'] = 'CAS server (SSO)';
+$string['auth_cas_hostname'] = 'Hostname of the CAS server <br />eg: host.domain.fr';
+$string['auth_cas_baseuri'] = 'URI of the server (nothing if no baseUri)<br />For example, if the CAS server responds to host.domaine.fr/CAS/ then<br />cas_baseuri = CAS/';
+$string['auth_cas_port'] = 'Port of the CAS server';
+$string['auth_cas_version'] = 'Version of CAS';
+$string['auth_cas_language'] = 'Selected language';
+$string['auth_casdescription'] = 'This method uses a CAS server (Central Authentication Service) to authenticate users in a Single Sign On environment (SSO). You can also use a simple LDAP authentication. If the given username and password are valid according to CAS, Moodle creates a new user entry in its database, taking user attributes from LDAP if required. On following logins only the username and password are checked.';
+$string['auth_cas_enabled'] = 'Turn this on if you want to use CAS authentication.';
+$string['auth_cas_text'] = 'Secure connection';
+$string['auth_cas_create_user'] = 'Turn this on if you want to insert CAS-authenticated users in Moodle database. If not then only users who already exist in the Moodle database can log in.';
+$string['auth_casnotinstalled'] = 'Cannot use CAS authentication. The PHP LDAP module is not installed.';
+$string['auth_cas_cantconnect'] ='LDAP part of CAS-module cannot connect to server: $a';
+$string['auth_cas_use_cas'] ='Use CAS';
+$string['auth_cas_broken_password'] ='You cannot proceed without changing your password, however there is no available page for changing it. Please contact your Moodle Administrator.';
+
+$string['auth_cas_hostname_key'] ='Hostname';
+$string['auth_cas_changepasswordurl'] ='Password-change URL';
+$string['auth_cas_create_user_key'] ='Create user';
+$string['auth_cas_auth_user_create'] ='Create users externally';
+$string['auth_cas_language_key'] ='Language';
+$string['auth_cas_casversion'] ='Version';
+$string['auth_cas_port_key'] ='Port';
+$string['auth_cas_baseuri_key'] ='Base URI';
+?>
\ No newline at end of file
diff --git a/lang/en_utf8/auth_db.php b/lang/en_utf8/auth_db.php
new file mode 100644 (file)
index 0000000..66f0a58
--- /dev/null
@@ -0,0 +1,46 @@
+<?php 
+// Database plugin
+$string['auth_dbdescription'] = 'This method uses an external database table to check whether a given username and password is valid.  If the account is a new one, then information from other fields may also be copied across into Moodle.';
+$string['auth_dbextrafields'] = 'These fields are optional.  You can choose to pre-fill some Moodle user fields with information from the <b>external database fields</b> that you specify here. <p>If you leave these blank, then defaults will be used.</p><p>In either case, the user will be able to edit all of these fields after they log in.</p>';
+$string['auth_dbfieldpass'] = 'Name of the field containing passwords';
+$string['auth_dbfielduser'] = 'Name of the field containing usernames';
+$string['auth_dbhost'] = 'The computer hosting the database server.';
+$string['auth_dbname'] = 'Name of the database itself';
+$string['auth_dbpass'] = 'Password matching the above username';
+$string['auth_dbpasstype'] = '<p>Specify the format that the password field is using. MD5 hashing is useful for connecting to other common web applications like PostNuke.</p> <p>Use \'internal\' if you want to the external DB to manage usernames &amp; email addresses, but Moodle to manage passwords. If you use \'internal\', you <i>must</i> provide a populated email address field in the external DB, and you must execute both admin/cron.php and auth/db/auth_db_sync_users.php regularly. Moodle will send an email to new users with a temporary password.</p>';
+$string['auth_dbtable'] = 'Name of the table in the database';
+$string['auth_dbtitle'] = 'External database';
+$string['auth_dbtype'] = 'The database type (See the <a href=\"../lib/adodb/readme.htm#drivers\">ADOdb documentation</a> for details)';
+$string['auth_dbuser'] = 'Username with read access to the database';
+$string['auth_dbcantconnect'] ='Could not connect to the specified authentication database...';
+$string['auth_dbuserstoadd'] = 'User entries to add: $a';
+$string['auth_dbuserstoremove'] = 'User entries to remove: $a';
+$string['auth_dbhost_key'] = 'Host';
+$string['auth_dbtype_key'] = 'Database';
+$string['auth_dbsybasequoting'] = 'Use sybase quotes';
+$string['auth_dbsybasequotinghelp'] = 'Sybase style single quote escaping - needed for Oracle, MS SQL and some other databases. Do not use for MySQL!';
+$string['auth_dbname_key'] = 'DB Name';
+$string['auth_dbuser_key'] = 'DB User';
+$string['auth_dbpass_key'] = 'Password';
+$string['auth_dbtable_key'] = 'Table';
+$string['auth_dbfielduser_key'] = 'Username field';
+$string['auth_dbfieldpass_key'] = 'Password field';
+$string['auth_dbpasstype_key'] = 'Password format';
+$string['auth_dbextencoding'] = 'External db encoding';
+$string['auth_dbextencodinghelp'] = 'Encoding used in external database';
+$string['auth_dbsetupsql'] = 'SQL setup command';
+$string['auth_dbsetupsqlhelp'] = 'SQL command for special database setup, often used to setup communication encoding - example for MySQL and PostgreSQL: <em>SET NAMES \'utf8\'</em>';
+$string['auth_dbdebugauthdb'] = 'Debug ADOdb';
+$string['auth_dbdebugauthdbhelp'] = 'Debug ADOdb connection to external database - use when getting empty page during login. Not suitable for production sites.';
+$string['auth_dbchangepasswordurl_key'] = 'Password-change URL';
+$string['auth_dbinsertuser'] ='Inserted user $a[0] id $a[1]';
+$string['auth_dbinsertusererror'] = 'Error inserting user $a';
+$string['auth_dbdeleteuser'] ='Deleted user $a[0] id $a[1]';
+$string['auth_dbdeleteusererror'] = 'Error deleting user $a';
+$string['auth_dbreviveduser'] ='Revived user $a[0] id $a[1]';
+$string['auth_dbrevivedusererror'] = 'Error reviving user $a';
+$string['auth_dbsuspenduser'] ='Suspended user $a[0] id $a[1]';
+$string['auth_dbsuspendusererror'] = 'Error suspending user $a';
+$string['auth_dbusernotexist'] = 'Cannot update non-existent user: $a';
+$string['auth_dbupdatinguser'] ='Updating user $a[0] id $a[1]';
+?>
\ No newline at end of file
diff --git a/lang/en_utf8/auth_email.php b/lang/en_utf8/auth_email.php
new file mode 100644 (file)
index 0000000..376b836
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+// Email plugin
+$string['auth_emailchangecancel'] = 'Cancel email change';
+$string['auth_emailchangepending'] = 'Change pending. Open the link sent to you at $a->preference_newemail.';
+$string['auth_emaildescription'] = 'Email confirmation is the default authentication method.  When the user signs up, choosing their own new username and password, a confirmation email is sent to the user\'s email address.  This email contains a secure link to a page where the user can confirm their account. Future logins just check the username and password against the stored values in the Moodle database.';
+$string['auth_emailnowexists'] = 'The email address you tried to assign to your profile has been assigned to someone else since your original request. Your request for change of email address is hereby cancelled, but you may try again with a different address.';
+$string['auth_emailtitle'] = 'Email-based self-registration';
+$string['auth_emailnoinsert'] = 'Could not add your record to the database!';
+$string['auth_emailnoemail'] = 'Tried to send you an email but failed!';
+$string['auth_emailrecaptcha'] = 'Adds a visual/audio confirmation form element to the signup page for email self-registering users. This protects your site against spammers and contributes to a worthwhile cause. See http://recaptcha.net/learnmore.html for more details. <br /><em>PHP cURL extension is required.</em>';
+$string['auth_emailrecaptcha_key'] = 'Enable reCAPTCHA element';
+$string['auth_emailsettings'] = 'Settings';
+$string['auth_emailupdatemessage'] = 'Dear $a->fullname,
+
+You have requested a change of your email address for your user account at $a->site. Please open the following URL in your browser in order to confirm this change.
+
+$a->url';
+$string['auth_emailupdatetitle'] = 'Confirmation of email update at $a->site';
+$string['auth_invalidnewemailkey'] = 'Error: if you are trying to confirm a change of email address, you may have made a mistake in copying the URL we sent you by email. Please copy the address and try again.';
+$string['auth_emailupdatesuccess'] = 'Email address of user <em>$a->fullname</em> was successfully updated to <em>$a->email</em>.';
+$string['auth_outofnewemailupdateattempts'] = 'You have run out of allowed attempts to update your email address. Your update request has been cancelled.';
+$string['auth_emailupdate'] = 'Email address update';
+$string['auth_changingemailaddress'] = 'You have requested a change of email address, from $a->oldemail to $a->newemail. For security reasons, we are sending you an email message at the new address to confirm that it belongs to you. Your email address will be updated as soon as you open the URL sent to you in that message.';
+
+?>
\ No newline at end of file
diff --git a/lang/en_utf8/auth_fc.php b/lang/en_utf8/auth_fc.php
new file mode 100644 (file)
index 0000000..7a307e0
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+// FirstClass plugin
+$string['auth_fccreators'] = 'List of groups whose members are allowed to create new courses. Separate multiple groups with \';\'. Names must be spelled exactly as on FirstClass server. System is case-sensitive.';
+$string['auth_fcdescription'] = 'This method uses a FirstClass server to check whether a given username and password is valid.';
+$string['auth_fcfppport'] = 'Server port (3333 is the most common)';
+$string['auth_fchost'] = 'The FirstClass server address. Use the IP number or DNS name.';
+$string['auth_fcpasswd'] = 'Password for the account above.';
+$string['auth_fctitle'] = 'FirstClass server';
+$string['auth_fcuserid'] = 'Userid for FirstClass account with privilege \'Subadministrator\' set.';
+$string['auth_fchost_key'] = 'Host';
+$string['auth_fcfppport_key'] = 'Port';
+$string['auth_fcuserid_key'] = 'User ID';
+$string['auth_fcpasswd_key'] = 'Password';
+$string['auth_fccreators_key'] = 'Creators';
+$string['auth_fcchangepasswordurl'] = 'Password-change URL';
+$string['auth_fcconnfail'] = 'Connection failed with Errno: $a[0] and Error String: $a[1]';
+?>
\ No newline at end of file
diff --git a/lang/en_utf8/auth_imap.php b/lang/en_utf8/auth_imap.php
new file mode 100644 (file)
index 0000000..9edfff1
--- /dev/null
@@ -0,0 +1,13 @@
+<?php 
+// IMAP plugin
+$string['auth_imapnotinstalled'] = 'Cannot use IMAP authentication. The PHP IMAP module is not installed.';
+$string['auth_imapdescription'] = 'This method uses an IMAP server to check whether a given username and password is valid.';
+$string['auth_imaphost'] = 'The IMAP server address. Use the IP number, not DNS name.';
+$string['auth_imapport'] = 'IMAP server port number. Usually this is 143 or 993.';
+$string['auth_imaptitle'] = 'IMAP server';
+$string['auth_imaptype'] = 'The IMAP server type.  IMAP servers can have different types of authentication and negotiation.';
+$string['auth_imaptype_key'] = 'Type';
+$string['auth_imaphost_key'] = 'Host';
+$string['auth_imapport_key'] = 'Port';
+$string['auth_imapchangepasswordurl_key'] = 'Password-change URL';
+?>
\ No newline at end of file
diff --git a/lang/en_utf8/auth_ldap.php b/lang/en_utf8/auth_ldap.php
new file mode 100644 (file)
index 0000000..33f5a49
--- /dev/null
@@ -0,0 +1,93 @@
+<?php
+// LDAP plugin
+$string['auth_ldap_ad_create_req'] = 'Cannot create the new account in Active Directory. Make sure you meet all the requirements for this to work (LDAPS connection, bind user with adequate rights, etc.)';
+$string['auth_ldap_attrcreators'] = 'List of groups or contexts whose members are allowed to create attributes. Separate multiple groups with \';\'. Usually something like \'cn=teachers,ou=staff,o=myorg\'';
+$string['auth_ldap_attrcreators_key'] = 'Attribute creators';
+$string['auth_ldap_bind_dn'] = 'If you want to use bind-user to search users, specify it here. Something like \'cn=ldapuser,ou=public,o=org\'';
+$string['auth_ldap_bind_pw'] = 'Password for bind-user.';
+$string['auth_ldap_bind_settings'] = 'Bind settings';
+$string['auth_ldap_contexts'] = 'List of contexts where users are located. Separate different contexts with \';\'. For example: \'ou=users,o=org; ou=others,o=org\'';
+$string['auth_ldap_create_context'] = 'If you enable user creation with email confirmation, specify the context where users are created. This context should be different from other users to prevent security issues. You don\'t need to add this context to ldap_context-variable, Moodle will search for users from this context automatically.<br /><b>Note!</b> You have to modify the method user_create() in file auth/ldap/auth.php to make user creation work';
+$string['auth_ldap_create_error'] = 'Error creating user in LDAP.';
+$string['auth_ldap_creators'] = 'List of groups or contexts whose members are allowed to create new courses. Separate multiple groups with \';\'. Usually something like \'cn=teachers,ou=staff,o=myorg\'';
+$string['auth_ldap_expiration_desc'] = 'Select No to disable expired password checking or LDAP to read passwordexpiration time directly from LDAP';
+$string['auth_ldap_expiration_warning_desc'] = 'Number of days before password expiration warning is issued.';
+$string['auth_ldap_expireattr_desc'] = 'Optional: overrides ldap-attribute that stores password expiration time';
+$string['auth_ldap_graceattr_desc'] = 'Optional: Overrides  gracelogin attribute';
+$string['auth_ldap_gracelogins_desc'] = 'Enable LDAP gracelogin support. After password has expired user can login until gracelogin count is 0. Enabling this setting displays grace login message if password is expired.';
+$string['auth_ldap_groupecreators'] = 'List of groups or contexts whose members are allowed to create groups. Separate multiple groups with \';\'. Usually something like \'cn=teachers,ou=staff,o=myorg\'';
+$string['auth_ldap_groupecreators_key'] = 'Group creators';
+$string['auth_ldap_host_url'] = 'Specify LDAP host in URL-form like \'ldap://ldap.myorg.com/\' or \'ldaps://ldap.myorg.com/\' Separate multipleservers with \';\' to get failover support.';
+$string['auth_ldap_ldap_encoding'] = 'Specify encoding used by LDAP server. Most probably utf-8, MS AD v2 uses default platform encoding such as cp1252, cp1250, etc.';
+$string['auth_ldap_login_settings'] = 'Login settings';
+$string['auth_ldap_memberattribute'] = 'Optional: Overrides user member attribute, when users belongs to a group. Usually \'member\'';
+$string['auth_ldap_memberattribute_isdn'] = 'Optional: Overrides handling of member attribute values, either 0 or 1';
+$string['auth_ldap_no_mbstring'] = 'You need the mbstring extension to create users in Active Directory.';
+$string['auth_ldap_objectclass'] = 'Optional: Overrides objectClass used to name/search users on ldap_user_type. Usually you dont need to chage this.';
+$string['auth_ldap_opt_deref'] = 'Determines how aliases are handled during search. Select one of the following values: \"No\" (LDAP_DEREF_NEVER) or \"Yes\" (LDAP_DEREF_ALWAYS)';
+$string['auth_ldap_passtype'] = 'Specify the format of new or changed passwords in LDAP server.';
+$string['auth_ldap_passwdexpire_settings'] = 'LDAP password expiration settings.';
+$string['auth_ldap_preventpassindb'] = 'Select yes to prevent passwords from being stored in Moodle\'s DB.';
+$string['auth_ldap_search_sub'] = 'Search users from subcontexts.';
+$string['auth_ldap_server_settings'] = 'LDAP server settings';
+$string['auth_ldap_update_userinfo'] = 'Update user information (firstname, lastname, address..) from LDAP to Moodle.  Specify \"Data mapping\" settings as you need.';
+$string['auth_ldap_user_exists'] = 'LDAP username already exists.';
+$string['auth_ldap_user_attribute'] = 'Optional: Overrides the attribute used to name/search users. Usually \'cn\'.';
+$string['auth_ldap_user_settings'] = 'User lookup settings';
+$string['auth_ldap_user_type'] = 'Select how users are stored in LDAP. This setting also specifies how login expiration, grace logins and user creation will work.';
+$string['auth_ldap_version'] = 'The version of the LDAP protocol your server is using.';
+$string['auth_ldapdescription'] = 'This method provides authentication against an external LDAP server.
+
+                                  If the given username and password are valid, Moodle creates a new user
+
+                                  entry in its database. This module can read user attributes from LDAP and prefill
+
+                                  wanted fields in Moodle.  For following logins only the username and
+
+                                  password are checked.';
+$string['auth_ldap_ldap_encoding_key'] = 'LDAP encoding';
+$string['auth_ldap_host_url_key'] = 'Host URL';
+$string['auth_ldap_version_key'] = 'Version';
+$string['auth_ldap_preventpassindb_key'] = 'Hide passwords';
+$string['auth_ldap_bind_dn_key'] = 'Distinguished Name';
+$string['auth_ldap_bind_pw_key'] = 'Password';
+$string['auth_ldap_user_type_key'] = 'User type';
+$string['auth_ldap_contexts_key'] = 'Contexts';
+$string['auth_ldap_search_sub_key'] = 'Search subcontexts';
+$string['auth_ldap_opt_deref_key'] = 'Dereference aliases';
+$string['auth_ldap_user_attribute_key'] = 'User attribute';
+$string['auth_ldap_memberattribute_key'] = 'Member attribute';
+$string['auth_ldap_memberattribute_isdn_key'] = 'Member attribute uses dn';
+$string['auth_ldap_objectclass_key'] = 'Object class';
+$string['auth_ldap_passtype_key'] = 'Password format';
+$string['auth_ldap_changepasswordurl_key'] = 'Password-change URL';
+$string['auth_ldap_expiration_key'] = 'Expiration';
+$string['auth_ldap_expiration_warning_key'] = 'Expiration warning';
+$string['auth_ldap_expireattr_key'] = 'Expiration attribute';
+$string['auth_ldap_gracelogins_key'] = 'Grace logins';
+$string['auth_ldap_gracelogin_key'] = 'Grace login attribute';
+$string['auth_ldap_auth_user_create_key'] = 'Create users externally';
+$string['auth_ldap_create_context_key'] = 'Context for new users';
+$string['auth_ldap_creators_key'] = 'Creators';
+$string['auth_ldap_noconnect'] = 'LDAP-module cannot connect to server: $a';
+$string['auth_ldap_noconnect_all'] = 'LDAP-module cannot connect to any servers: $a';
+$string['auth_ldap_unsupportedusertype'] = 'auth: ldap user_create() does not support selected usertype: $a (..yet)';
+$string['auth_ldap_usertypeundefined'] = 'config.user_type not defined or function ldap_expirationtime2unix does not support selected type!';
+$string['auth_ldap_usertypeundefined2'] = 'config.user_type not defined or function ldap_unixi2expirationtime does not support selected type!';
+$string['auth_ldap_noextension'] = 'Warning: The PHP LDAP module does not seem to be present. Please ensure it is installed and enabled.';
+
+$string['auth_ldapextrafields'] = 'These fields are optional.  You can choose to pre-fill some Moodle user fields with information from the <b>LDAP fields</b> that you specify here. <p>If you leave these fields blank, then nothing will be transferred from LDAP and Moodle defaults will be used instead.</p><p>In either case, the user will be able to edit all of these fields after they log in.</p>';
+$string['auth_ldaptitle'] = 'LDAP server';
+$string['auth_ldapnotinstalled'] = 'Cannot use LDAP authentication. The PHP LDAP module is not installed.';
+$string['auth_ntlmsso'] = 'NTLM SSO';
+$string['auth_ntlmsso_enabled_key'] = 'Enable';
+$string['auth_ntlmsso_enabled'] = 'Set to yes to attempt Single Sign On with the NTLM domain. <strong>Note:</strong> this requires additional setup on the webserver to work, see <a href=\"http://docs.moodle.org/en/NTLM_authentication\">http://docs.moodle.org/en/NTLM_authentication</a>';
+$string['auth_ntlmsso_ie_fastpath'] = 'Set to yes to enable the NTLM SSO fast path (bypasses certain steps and only works if the client\'s browser is MS Internet Explorer).';
+$string['auth_ntlmsso_ie_fastpath_key'] = 'MS IE fast path?';
+$string['auth_ntlmsso_subnet_key'] = 'Subnet';
+$string['auth_ntlmsso_subnet'] = 'If set, it will only attempt SSO with clients in this subnet. Format: xxx.xxx.xxx.xxx/bitmask';
+$string['ntlmsso_attempting'] = 'Attempting Single Sign On via NTLM...';
+$string['ntlmsso_failed'] = 'Auto-login failed, try the normal login page...';
+$string['ntlmsso_isdisabled'] = 'NTLM SSO is disabled.';
+
+?>
\ No newline at end of file
diff --git a/lang/en_utf8/auth_manual.php b/lang/en_utf8/auth_manual.php
new file mode 100644 (file)
index 0000000..6f889b5
--- /dev/null
@@ -0,0 +1,5 @@
+<?php 
+// Manual plugin
+$string['auth_manualdescription'] = 'This method removes any way for users to create their own accounts.  All accounts must be manually created by the admin user.';
+$string['auth_manualtitle'] = 'Manual accounts';
+?>
\ No newline at end of file
index 045fa56643b7829876bae05d0567695ebc851478..e3517aa85a464809708d9652c6899ad6783371a3 100644 (file)
@@ -11,4 +11,13 @@ $string['sso_sp_description']          = 'Publish  this service to allow authent
                                          'Subscribe to this service to allow your users to roam to the $a Moodle site without having to re-login there. '.
                                          '<ul><li><em>Dependency</em>: You must also <strong>publish</strong> the SSO (Identity Provider) service to $a.</li></ul><br />';
 $string['sso_mnet_login_refused']      = 'Username $a[0] is not permitted to login from $a[1].';
+// MNET plugin
+$string['auth_mnettitle'] = 'Moodle Network authentication';
+$string['auth_mnetdescription'] = 'Users are authenticated according to the web of trust defined in your Moodle Network settings.';
+$string['auth_mnet_rpc_negotiation_timeout'] = 'The timeout in seconds for authentication over the XMLRPC transport.';
+$string['auth_mnet_roamout'] = 'Your users can roam out to these hosts';
+$string['auth_mnet_roamin'] = 'These host\'s users can roam in to your site';
+$string['auth_mnet_auto_add_remote_users'] = 'When set to Yes, a local user record is auto-created when a remote user logs in for the first time.';
+$string['auto_add_remote_users'] = 'Auto add remote users';
+$string['rpc_negotiation_timeout'] = 'RPC negotiation timeout';
 ?>
\ No newline at end of file
diff --git a/lang/en_utf8/auth_nntp.php b/lang/en_utf8/auth_nntp.php
new file mode 100644 (file)
index 0000000..28201ca
--- /dev/null
@@ -0,0 +1,11 @@
+<?php
+// NNTP plugin
+$string['auth_nntpdescription'] = 'This method uses an NNTP server to check whether a given username and password is valid.';
+$string['auth_nntphost'] = 'The NNTP server address. Use the IP number, not DNS name.';
+$string['auth_nntpport'] = 'Server port (119 is the most common)';
+$string['auth_nntptitle'] = 'NNTP server';
+$string['auth_nntpnotinstalled'] = 'Cannot use NNTP authentication. The PHP IMAP module is not installed.';
+$string['auth_nntpchangepasswordurl_key'] = 'Password-change URL';
+$string['auth_nntpport_key'] = 'Port';
+$string['auth_nntphost_key'] = 'Host';
+?>
\ No newline at end of file
diff --git a/lang/en_utf8/auth_nologin.php b/lang/en_utf8/auth_nologin.php
new file mode 100644 (file)
index 0000000..173bf30
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+// nologin plugin
+$string['auth_nologindescription'] = 'Auxiliary plugin that prevents user to login into system and also discards any mail sent to the user. Can be used to <em>suspend</em> user accounts.';
+$string['auth_nologintitle'] = 'No login';
+
+?>
\ No newline at end of file
diff --git a/lang/en_utf8/auth_none.php b/lang/en_utf8/auth_none.php
new file mode 100644 (file)
index 0000000..c2ee25a
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+// None plugin
+$string['auth_nonedescription'] = 'Users can sign in and create valid accounts immediately, with no authentication against an external server and no confirmation via email.  Be careful using this option - think of the security and administration problems this could cause.';
+$string['auth_nonetitle'] = 'No authentication';
+
+?>
\ No newline at end of file
diff --git a/lang/en_utf8/auth_pam.php b/lang/en_utf8/auth_pam.php
new file mode 100644 (file)
index 0000000..d352152
--- /dev/null
@@ -0,0 +1,9 @@
+<?php
+// PAM plugin
+$string['auth_pamdescription'] = 'This method uses PAM to access the native usernames on this server. You have to install <a href=\"http://www.math.ohio-state.edu/~ccunning/pam_auth/\">PHP4 PAM Authentication</a> in order to use this module.';
+$string['auth_pamtitle'] = 'PAM (Pluggable Authentication Modules)';
+
+$string['auth_passwordisexpired'] = 'Your password is expired. Do you want change your password now?';
+$string['auth_passwordwillexpire'] = 'Your password will expire in $a days. Do you want change your password now?';
+
+?>
\ No newline at end of file
diff --git a/lang/en_utf8/auth_pop3.php b/lang/en_utf8/auth_pop3.php
new file mode 100644 (file)
index 0000000..fd09788
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+// POP3 plugin
+$string['auth_pop3description'] = 'This method uses a POP3 server to check whether a given username and password is valid.';
+$string['auth_pop3host'] = 'The POP3 server address. Use the IP number, not DNS name.';
+$string['auth_pop3mailbox'] = 'Name of the mailbox to attempt a connection with.  (usually INBOX)';
+$string['auth_pop3port'] = 'Server port (110 is the most common, 995 is common for SSL)';
+$string['auth_pop3title'] = 'POP3 server';
+$string['auth_pop3type'] = 'Server type. If your server uses certificate security, choose pop3cert.';
+$string['auth_pop3notinstalled'] = 'Cannot use POP3 authentication. The PHP IMAP module is not installed.';
+$string['auth_pop3changepasswordurl_key'] = 'Password-change URL';
+$string['auth_pop3mailbox_key'] = 'Mailbox';
+$string['auth_pop3port_key'] = 'Port';
+$string['auth_pop3type_key'] = 'Type';
+$string['auth_pop3host_key'] = 'Host';
+?>
\ No newline at end of file
diff --git a/lang/en_utf8/auth_radius.php b/lang/en_utf8/auth_radius.php
new file mode 100644 (file)
index 0000000..0600c3f
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+// RADIUS plugin
+$string['auth_radiustitle'] = 'RADIUS server';
+$string['auth_radiusdescription'] = 'This method uses a <a href=\"http://en.wikipedia.org/wiki/RADIUS\">RADIUS</a> server to check whether a given username and password is valid.';
+$string['auth_radiushost'] = 'Address of the RADIUS server';
+$string['auth_radiusnasport'] = 'Port to use to connect';
+$string['auth_radiussecret'] = 'Shared secret';
+$string['auth_radiustype'] = 'Choose an authentication scheme to use with the RADIUS server.';
+$string['auth_radiustypepap'] = 'PAP';
+$string['auth_radiustypechapmd5'] = 'CHAP MD5';
+$string['auth_radiustypemschapv1'] = 'Microsoft CHAP version 1';
+$string['auth_radiustypemschapv2'] = 'Microsoft CHAP version 2';
+$string['auth_radiuschangepasswordurl_key'] = 'Password-change URL';
+$string['auth_radiusnasport_key'] = 'Port';
+$string['auth_radiushost_key'] = 'Host';
+$string['auth_radiussecret_key'] = 'Secret';
+$string['auth_radiustype_key'] = 'Authentication';
+
+?>
\ No newline at end of file
diff --git a/lang/en_utf8/auth_shibboleth.php b/lang/en_utf8/auth_shibboleth.php
new file mode 100644 (file)
index 0000000..ef78e1e
--- /dev/null
@@ -0,0 +1,37 @@
+<?php
+// Shibboleth plugin
+$string['auth_shibbolethdescription'] = 'Using this method users are created and authenticated using <a href=\"http://shibboleth.internet2.edu/\">Shibboleth</a>.<br />Be sure to read the <a href=\"../auth/shibboleth/README.txt\">README</a> for Shibboleth on how to set up your Moodle with Shibboleth';
+$string['auth_shibbolethtitle'] = 'Shibboleth';
+$string['auth_shibboleth_login'] = 'Shibboleth Login';
+$string['auth_shibboleth_manual_login'] = 'Manual Login';
+$string['auth_shib_only'] = 'Shibboleth only';
+$string['auth_shib_only_description'] = 'Check this option if a Shibboleth authentication shall be enforced';
+$string['auth_shib_username_description'] = 'Name of the webserver Shibboleth environment variable that shall be used as Moodle username';
+$string['auth_shib_instructions'] = 'Use the <a href=\"$a\">Shibboleth login</a> to get access via Shibboleth, if your institution supports it.<br />Otherwise, use the normal login form shown here.';
+$string['auth_shib_convert_data'] = 'Data modification API';
+$string['auth_shib_convert_data_description'] = 'You can use this API to further modify the data provided by Shibboleth. Read the <a href=\"../auth/shibboleth/README.txt\">README</a> for further instructions.';
+$string['auth_shib_instructions_help'] = 'Here you should provide custom instructions for your users to explain Shibboleth.  It will be shown on the login page in the instructions section. The instructions must include a link to \"<b>$a</b>\" that users click when they want to log in.';
+$string['auth_shib_convert_data_warning'] = 'The file does not exist or is not readable by the webserver process!';
+$string['auth_shib_changepasswordurl'] = 'Password-change URL';
+$string['auth_shibboleth_login_long'] = 'Login to Moodle via Shibboleth';
+$string['auth_shibboleth_select_organization'] = 'For authentication via Shibboleth, please select your organization from the drop down list:';
+$string['auth_shibboleth_contact_administrator'] = 'In case you are not associated with the given organizations and you need access to a course on this server, please contact the';
+$string['auth_shibboleth_select_member'] = 'I\'m a member of ...';
+$string['auth_shibboleth_errormsg'] ='Please select the organization you are member of!';
+$string['auth_shib_no_organizations_warning'] ='If you want to use the integrated WAYF service, you must provide a coma-separated list of Identity Provider entityIDs, their names and optionally a session initiator.';
+
+$string['shib_not_set_up_error'] = 'Shibboleth authentication doesn\'t seem to be set up correctly because no Shibboleth environment variables are present for this page. Please consult the <a href=\"README.txt\">README</a> for further instructions on how to set up Shibboleth authentication or contact the webmaster of this Moodle installation.';
+$string['shib_no_attributes_error'] = 'You seem to be Shibboleth authenticated but Moodle didn\'t receive any user attributes. Please check that your Identity Provider releases the necessary attributes ($a) to the Service Provider Moodle is running on or inform the webmaster of this server.';
+$string['shib_not_all_attributes_error'] = 'Moodle needs certain Shibboleth attributes which are not present in your case. The attributes are: $a<br />Please contact the webmaster of this server or your Identity Provider.';
+$string['auth_shib_integrated_wayf'] = 'Moodle WAYF Service';
+$string['auth_shib_integrated_wayf_description'] = 'If you check this, Moodle will use its own WAYF service instead of the one configured for Shibboleth. Moodle will display a drop-down list on this alternative login page where the user has to select his Identity Provider.';
+$string['auth_shib_idp_list'] = 'Identity Providers';
+$string['auth_shib_idp_list_description'] = 'Provide a list of Identity Provider entityIDs to let the user choose from on the login page.<br />On each line there must be a comma-separated tuple for entityID of the IdP (see the Shibboleth metadata file) and Name of IdP as it shall be displayed in the drop-down list.<br />As an optional third parameter you can add the location of a Shibboleth session initiator that shall be used in case your Moodle installation is part of a multi federation setup.';
+$string['auth_shib_logout_url'] = 'Shibboleth Service Provider logout handler URL';
+$string['auth_shib_logout_url_description'] = 'Provide the URL to the Shibboleth Service Provider logout handler. This typically is <tt>/Shibboleth.sso/Logout</tt>';
+$string['auth_shib_auth_method'] = 'Authentication Method Name';
+$string['auth_shib_auth_method_description'] = 'Provide a name for the Shibboleth authentication method that is familiar to your users. This could be the name of your Shibboleth federation, e.g. <tt>SWITCHaai Login</tt> or <tt>InCommon Login</tt> or similar.';
+$string['auth_shib_logout_return_url'] = 'Alternative logout return URL';
+$string['auth_shib_logout_return_url_description'] = 'Provide the URL that Shibboleth users shall be redirected to after logging out.<br />If left empty, users will be redirected to the location that moodle will redirect users to';
+
+?>
\ No newline at end of file
index e73150d3a0096308ed04d2f599d2765864cf9c2d..ba91a2c3f825876d2f30fb21e864fcc757bb360b 100644 (file)
@@ -1323,21 +1323,21 @@ get_string('recaptchapublickey', 'admin', NULL);
 get_string('configrecaptchapublickey', 'admin', NULL);
 get_string('recaptchaprivatekey', 'admin', NULL);
 get_string('configrecaptchaprivatekey', 'admin', NULL);
-get_string('auth_castitle', 'auth', NULL);
-get_string('auth_dbtitle', 'auth', NULL);
-get_string('auth_emailtitle', 'auth', NULL);
-get_string('auth_fctitle', 'auth', NULL);
-get_string('auth_imaptitle', 'auth', NULL);
-get_string('auth_ldaptitle', 'auth', NULL);
-get_string('auth_manualtitle', 'auth', NULL);
-get_string('auth_mnettitle', 'auth', NULL);
-get_string('auth_nntptitle', 'auth', NULL);
-get_string('auth_nologintitle', 'auth', NULL);
-get_string('auth_nonetitle', 'auth', NULL);
-get_string('auth_pamtitle', 'auth', NULL);
-get_string('auth_pop3title', 'auth', NULL);
-get_string('auth_radiustitle', 'auth', NULL);
-get_string('auth_shibbolethtitle', 'auth', NULL);
+get_string('auth_castitle', 'auth_cas', NULL);
+get_string('auth_dbtitle', 'auth_bd', NULL);
+get_string('auth_emailtitle', 'auth_email', NULL);
+get_string('auth_fctitle', 'auth_fc', NULL);
+get_string('auth_imaptitle', 'auth_imap', NULL);
+get_string('auth_ldaptitle', 'auth_ldap', NULL);
+get_string('auth_manualtitle', 'auth_manual', NULL);
+get_string('auth_mnettitle', 'auth_mnet', NULL);
+get_string('auth_nntptitle', 'auth_nntp', NULL);
+get_string('auth_nologintitle', 'auth_nologin', NULL);
+get_string('auth_nonetitle', 'auth_none', NULL);
+get_string('auth_pamtitle', 'auth_pam', NULL);
+get_string('auth_pop3title', 'auth_pop3', NULL);
+get_string('auth_radiustitle', 'auth_radius', NULL);
+get_string('auth_shibbolethtitle', 'auth_shibboleth', NULL);
 get_string('userlist', 'admin', NULL);
 get_string('userbulk', 'admin', NULL);
 get_string('addnewuser', '', NULL);
index ba1eb44a1599a78c95567226ec6f0549df3e515c..76261bda034ee590944ec6372ad7113d66301cd5 100644 (file)
@@ -1323,21 +1323,21 @@ old_get_string('recaptchapublickey', 'admin', NULL);
 old_get_string('configrecaptchapublickey', 'admin', NULL);
 old_get_string('recaptchaprivatekey', 'admin', NULL);
 old_get_string('configrecaptchaprivatekey', 'admin', NULL);
-old_get_string('auth_castitle', 'auth', NULL);
-old_get_string('auth_dbtitle', 'auth', NULL);
-old_get_string('auth_emailtitle', 'auth', NULL);
-old_get_string('auth_fctitle', 'auth', NULL);
-old_get_string('auth_imaptitle', 'auth', NULL);
-old_get_string('auth_ldaptitle', 'auth', NULL);
-old_get_string('auth_manualtitle', 'auth', NULL);
-old_get_string('auth_mnettitle', 'auth', NULL);
-old_get_string('auth_nntptitle', 'auth', NULL);
-old_get_string('auth_nologintitle', 'auth', NULL);
-old_get_string('auth_nonetitle', 'auth', NULL);
-old_get_string('auth_pamtitle', 'auth', NULL);
-old_get_string('auth_pop3title', 'auth', NULL);
-old_get_string('auth_radiustitle', 'auth', NULL);
-old_get_string('auth_shibbolethtitle', 'auth', NULL);
+old_get_string('auth_castitle', 'auth_cas', NULL);
+old_get_string('auth_dbtitle', 'auth_db', NULL);
+old_get_string('auth_emailtitle', 'auth_email', NULL);
+old_get_string('auth_fctitle', 'auth_fc', NULL);
+old_get_string('auth_imaptitle', 'auth_imap', NULL);
+old_get_string('auth_ldaptitle', 'auth_ldap', NULL);
+old_get_string('auth_manualtitle', 'auth_manual', NULL);
+old_get_string('auth_mnettitle', 'auth_mnet', NULL);
+old_get_string('auth_nntptitle', 'auth_nntp', NULL);
+old_get_string('auth_nologintitle', 'auth_nologin', NULL);
+old_get_string('auth_nonetitle', 'auth_none', NULL);
+old_get_string('auth_pamtitle', 'auth_pam', NULL);
+old_get_string('auth_pop3title', 'auth_pop3', NULL);
+old_get_string('auth_radiustitle', 'auth_radius', NULL);
+old_get_string('auth_shibbolethtitle', 'auth_shibboleth', NULL);
 old_get_string('userlist', 'admin', NULL);
 old_get_string('userbulk', 'admin', NULL);
 old_get_string('addnewuser', '', NULL);
index 7fc6ef1059cb0f4686004cc2729bc6cbdaa401b6..0d42b5adc6d75ac42753171017056ccf16e66121 100644 (file)
                 $usernew->preference_newemailattemptsleft = 3;
                 $a->oldemail = $usernew->email = $user->email;
 
-                $email_changed_html = print_box(get_string('auth_changingemailaddress', 'auth', $a), 'generalbox', 'notice', true);
+                $email_changed_html = print_box(get_string('auth_changingemailaddress', 'auth_email', $a), 'generalbox', 'notice', true);
                 $email_changed_html .= print_continue("$CFG->wwwroot/user/view.php?id=$user->id&amp;course=$course->id", true);
                 $email_changed = true;
             }
             $a->site = $SITE->fullname;
             $a->fullname = fullname($user, true);
 
-            $emailupdatemessage = get_string('auth_emailupdatemessage', 'auth', $a);
-            $emailupdatetitle = get_string('auth_emailupdatetitle', 'auth', $a);
+            $emailupdatemessage = get_string('auth_emailupdatemessage', 'auth_email', $a);
+            $emailupdatetitle = get_string('auth_emailupdatetitle', 'auth_email', $a);
 
             if (!$mail_results = email_to_user($temp_user, get_admin(), $emailupdatetitle, $emailupdatemessage)) {
                 die("could not send email!");
index c935843bb4ce983193c5fcf544a33885b640dd6c..adb6de252ccf9deafd05e59630e434478e963385 100644 (file)
@@ -101,9 +101,9 @@ function useredit_shared_definition(&$mform) {
 
     // Do not show email field if change confirmation is pending
     if (!empty($CFG->emailchangeconfirmation) and !empty($user->preference_newemail)) {
-        $notice = get_string('auth_emailchangepending', 'auth', $user);
+        $notice = get_string('auth_emailchangepending', 'auth_email', $user);
         $notice .= '<br /><a href="edit.php?cancelemailchange=1&amp;id='.$user->id.'">'
-                . get_string('auth_emailchangecancel', 'auth') . '</a>';
+                . get_string('auth_emailchangecancel', 'auth_email') . '</a>';
         $mform->addElement('static', 'emailpending', get_string('email'), $notice);
     } else {
         $mform->addElement('text', 'email', get_string('email'), 'maxlength="100" size="30"');
index ec836af78ceb8635d238b5a668d8440e493e48f5..0d7c921b0d0b41232f060d0d5c81649e6a883931 100755 (executable)
@@ -14,7 +14,7 @@ if (!$user = $DB->get_record('user', array('id' => $id))) {
 $preferences = get_user_preferences(null, null, $user->id);
 $a = new stdClass();
 $a->fullname = fullname($user, true);
-$stremailupdate = get_string('auth_emailupdate', 'auth', $a);
+$stremailupdate = get_string('auth_emailupdate', 'auth_email', $a);
 print_header(format_string($SITE->fullname) . ": $stremailupdate", format_string($SITE->fullname) . ": $stremailupdate");
 
 if (empty($preferences['newemailattemptsleft'])) {
@@ -22,7 +22,7 @@ if (empty($preferences['newemailattemptsleft'])) {
 
 } elseif ($preferences['newemailattemptsleft'] < 1) {
     cancel_email_update($user->id);
-    $stroutofattempts = get_string('auth_outofnewemailupdateattempts', 'auth');
+    $stroutofattempts = get_string('auth_outofnewemailupdateattempts', 'auth_email');
     print_box($stroutofattempts, 'center');
 
 } elseif ($key == $preferences['newemailkey']) {
@@ -31,7 +31,7 @@ if (empty($preferences['newemailattemptsleft'])) {
 
     // Detect duplicate before saving
     if ($DB->get_record('user', array('email' => $user->email))) {
-        $stremailnowexists = get_string('auth_emailnowexists', 'auth');
+        $stremailnowexists = get_string('auth_emailnowexists', 'auth_email');
         print_box($stremailnowexists, 'center');
         print_continue("$CFG->wwwroot/user/view.php?id=$user->id");
     } else {
@@ -39,7 +39,7 @@ if (empty($preferences['newemailattemptsleft'])) {
         $DB->set_field('user', 'email', $user->email, array('id' => $user->id));
         events_trigger('user_updated', $user);
         $a->email = $user->email;
-        $stremailupdatesuccess = get_string('auth_emailupdatesuccess', 'auth', $a);
+        $stremailupdatesuccess = get_string('auth_emailupdatesuccess', 'auth_email', $a);
         print_box($stremailupdatesuccess, 'center');
         print_continue("$CFG->wwwroot/user/view.php?id=$user->id");
     }
@@ -47,7 +47,7 @@ if (empty($preferences['newemailattemptsleft'])) {
 } else {
     $preferences['newemailattemptsleft']--;
     set_user_preference('newemailattemptsleft', $preferences['newemailattemptsleft'], $user->id);
-    $strinvalidkey = get_string('auth_invalidnewemailkey', 'auth');
+    $strinvalidkey = get_string('auth_invalidnewemailkey', 'auth_email');
     print_box($strinvalidkey, 'center');
 }