mnet: Removed hardcoded English strings from some MNET files: MDL-8069

This commit is contained in:
donal72
2007-01-05 05:58:39 +00:00
parent 820aff13a4
commit cd607643dc
14 changed files with 60 additions and 101 deletions
+3 -3
View File
@@ -72,7 +72,7 @@ switch ($params->action) {
case 'enable':
// check auth plugin is valid first
if (!exists_auth_plugin($params->auth)) {
error("Authentication plugin '{$params->auth}' is not installed.", $url);
error(get_string('pluginnotinstalled', 'auth', $params->auth), $url);
}
// add to enabled list
if (!array_search($params->auth, $authsenabled)) {
@@ -86,7 +86,7 @@ switch ($params->action) {
$key = array_search($params->auth, $authsenabled);
// check auth plugin is valid
if ($key === false) {
error("Authentication plugin '{$params->auth}' is not enabled.", $url);
error(get_string('pluginnotenabled', 'auth', $params->auth), $url);
}
// move down the list
if ($key < (count($authsenabled) - 1)) {
@@ -101,7 +101,7 @@ switch ($params->action) {
$key = array_search($params->auth, $authsenabled);
// check auth is valid
if ($key === false) {
error("Authentication plugin '{$params->auth}' is not enabled.", $url);
error(get_string('pluginnotenabled', 'auth', $params->auth), $url);
}
// move up the list
if ($key >= 1) {