Commit a717729d authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix untranslatable strings (bugs 3054, 3055)

parent c216d157
......@@ -73,5 +73,6 @@ $string['xmlrpccouldnotlogyouindetail'] = 'Sorry, we could not log you into Maha
$string['requiredfields'] = 'Required profile fields';
$string['requiredfieldsset'] = 'Required profile fields set';
$string['noauthpluginconfigoptions'] = 'There are no configuration options associated with this plugin';
?>
......@@ -272,4 +272,6 @@ $string['rolechanged'] = 'Role changed';
$string['removefromgroup'] = 'Remove from group';
$string['userremoved'] = 'User removed';
$string['About'] = 'About';
$string['Joined'] = 'Joined';
?>
......@@ -61,6 +61,7 @@ function pieform_element_authlist(Pieform $form, $element) {
$smarty->assign('cannotremove', json_encode(get_string('cannotremove', 'auth')));
$smarty->assign('cannotremoveinuse', json_encode(get_string('cannotremoveinuse', 'auth')));
$smarty->assign('saveinstitutiondetailsfirst', json_encode(get_string('saveinstitutiondetailsfirst', 'auth')));
$smarty->assign('noauthpluginconfigoptions', json_encode(get_string('noauthpluginconfigoptions', 'auth')));
return $smarty->fetch('form/authlist.tpl');
}
......
......@@ -143,7 +143,7 @@
if (requiresConfig(plugin)) {
window.open('addauthority.php?id='+id+'&edit=1&i={{$institution}}&p=' + plugin, 'editinstance', 'height=520,width=550,screenx=250,screenY=200,scrollbars=1');
} else {
alert('There are no configuration options associated with this plugin');
alert({{$noauthpluginconfigoptions}});
}
}
......
......@@ -10,7 +10,7 @@
{$results.roles[$r.role]->display}{if $caneditroles && $r.canchangerole} (<a href="{$WWWROOT}group/changerole.php?group={$group}&amp;user={$r.id}">{str tag=changerole section=group}</a>){/if}
{$r.removeform}
</div>
<p><strong>Joined:</strong> {$r.jointime}</p>
<p><strong>{str tag="Joined" section="group"}:</strong> {$r.jointime}</p>
<p>{$r.introduction|str_shorten:80:true}</p>
{elseif $membershiptype == 'request'}
<p>{str tag=hasrequestedmembership section=group}.{if $r.reason} {str tag=reason}:<br> {$r.reason|format_whitespace}{/if}</p>
......
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