ENDERROR
# Probably should log an error here
@@ -1036,24 +1054,24 @@ ENDERROR
my %data = &Apache::lonnet::tmpget($mailtoken);
if ($currentpass ne $data{'temppasswd'}) {
&passwordchanger($r,
- 'ERROR:'.
- 'Could not verify current authentication. '.
- 'Please try again.',$caller,$mailtoken);
+ ''.
+ &mt('Could not verify current authentication').'. '.
+ &mt('Please try again').'.',$caller,$mailtoken);
return 1;
}
}
if ($newpass1 ne $newpass2) {
&passwordchanger($r,
- 'ERROR:'.
- 'The new passwords you entered do not match. '.
- 'Please try again.',$caller,$mailtoken);
+ ''.
+ &mt('The new passwords you entered do not match').'. '.
+ &mt('Please try again').'.',$caller,$mailtoken);
return 1;
}
if (length($newpass1) < 7) {
&passwordchanger($r,
- 'ERROR:'.
- 'Passwords must be a minimum of 7 characters long. '.
- 'Please try again.',$caller,$mailtoken);
+ ''.
+ &mt('Passwords must be a minimum of 7 characters long').'. '.
+ &mt('Please try again').'.',$caller,$mailtoken);
return 1;
}
#
@@ -1064,14 +1082,14 @@ ENDERROR
}
if ($badpassword) {
# I can't figure out how to enter bad characters on my browser.
- my $errormessage = <<"ENDERROR";
-ERROR:
-The password you entered contained illegal characters.
-Valid characters are: space and
+ my $errormessage =''.
+ &mt('The password you entered contained illegal characters').'. '.
+ &mt('Valid characters are').(<<"ENDERROR");
+: space and
+
ENDERROR
&passwordchanger($r,$errormessage,$caller,$mailtoken);
return 1;
@@ -1082,15 +1100,11 @@ ENDERROR
($user,$domain,$currentpass,$newpass1,$homeserver,$caller);
# Inform the user the password has (not?) been changed
if ($result =~ /^ok$/) {
- $r->print(<<"ENDTEXT");
-
The password for $user was successfully changed
-ENDTEXT
+ $r->print("
".&mt('The password for [_1] was successfully changed',$user)."
");
} else {
# error error: run in circles, scream and shout
- $r->print(<The password for $user was not changed
-Please make sure your old password was entered correctly.
-ENDERROR
+ $r->print("
".&mt("The password for [_1] was not changed",$user)."
".
+ &mt('Please make sure your old password was entered correctly').'.');
return 1;
}
return;
@@ -1194,7 +1208,7 @@ END
$r->print(<<"END");
-
+
Note: $lt{'thde'}
@@ -1510,7 +1524,7 @@ sub handler {
}
push (@Options,({ action => 'changeicons',
- linktext => 'Change How Main Menu is Displayed',
+ linktext => 'Change How Menus are Displayed',
href => '/adm/preferences',
subroutine => \&iconchanger,
breadcrumb =>