Commit 6c05b981 authored by Clare Lenihan's avatar Clare Lenihan
Browse files

fix for bug #706

made a string translatable
parent 905c4ba3
......@@ -290,9 +290,7 @@ function profileform_submit(Pieform $form, $values) {
}
$smarty = smarty(array(), array(), array(
'mahara' => array('cantremovedefaultemail'),
));
$smarty = smarty();
$smarty->assign('profileform', $profileform);
......
......@@ -160,7 +160,8 @@ $string['usernamehelp'] = 'The username you have been given to access this syste
$string['yournewpassword'] = 'Your new password';
$string['yournewpasswordagain'] = 'Your new password again';
$string['invalidsesskey'] = 'Invalid session key';
$string['cantremovedefaultemail'] = 'You cannot remove your primary email address';
$string['cannotremovedefaultemail'] = 'You cannot remove your primary email address';
$string['emailtoolong'] = 'E-mail addresses cannot be longer that 255 characters';
$string['mustspecifyoldpassword'] = 'You must specify your current password';
$string['captchatitle'] = 'CAPTCHA Image';
$string['captchadescription'] = 'Enter the characters you see in the picture to the right. Letters are not case sensitive';
......
......@@ -26,7 +26,7 @@
var newEmail = {{$name}}_newrefinput.value;
if (typeof(newEmail) == 'string' && newEmail.length > 0) {
if (newEmail.length > 255) {
alert('E-mail addresses cannot be longer that 255 characters');
alert('{{str tag="emailtoolong"}}');
}
else {
appendChildNodes('{{$name}}_list', DIV({'class': 'unvalidated'},
......@@ -69,7 +69,7 @@
);
if (radio[0] && radio[0].checked) {
alert(get_string('cantremovedefaultemail'));
alert('{{str tag="cannotremovedefaultemail"}}');
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment