We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 2906f97d authored by Siebrand Mazeland's avatar Siebrand Mazeland

Fix i18n for some very visible UI messages.

parent 173d20e1
...@@ -135,7 +135,8 @@ class OpenIDPlugin extends Plugin ...@@ -135,7 +135,8 @@ class OpenIDPlugin extends Plugin
common_redirect(common_local_url('openidsettings')); common_redirect(common_local_url('openidsettings'));
exit(0); exit(0);
} else if ($action == 'recoverpassword') { } else if ($action == 'recoverpassword') {
throw new ClientException('Unavailable action.'); // TRANS: Client exception thrown when an action is not available.
throw new ClientException(_m('Unavailable action.'));
} }
} }
} }
...@@ -478,18 +479,24 @@ class OpenIDPlugin extends Plugin ...@@ -478,18 +479,24 @@ class OpenIDPlugin extends Plugin
{ {
case 'register': case 'register':
if (common_logged_in()) { if (common_logged_in()) {
$instr = '(Have an [OpenID](http://openid.net/)? ' . // TRANS: Page notice for logged in users to try and get them to add an OpenID account to their StatusNet account.
'[Add an OpenID to your account](%%action.openidsettings%%)!'; // TRANS: This message contains Markdown links in the form (description)[link].
$instr = _m('(Have an [OpenID](http://openid.net/)? ' .
'[Add an OpenID to your account](%%action.openidsettings%%)!');
} else { } else {
$instr = '(Have an [OpenID](http://openid.net/)? ' . // TRANS: Page notice for anonymous users to try and get them to register with an OpenID account.
// TRANS: This message contains Markdown links in the form (description)[link].
$instr = _m('(Have an [OpenID](http://openid.net/)? ' .
'Try our [OpenID registration]'. 'Try our [OpenID registration]'.
'(%%action.openidlogin%%)!)'; '(%%action.openidlogin%%)!)');
} }
break; break;
case 'login': case 'login':
$instr = '(Have an [OpenID](http://openid.net/)? ' . // TRANS: Page notice on the login page to try and get them to log on with an OpenID account.
// TRANS: This message contains Markdown links in the form (description)[link].
$instr = _m('(Have an [OpenID](http://openid.net/)? ' .
'Try our [OpenID login]'. 'Try our [OpenID login]'.
'(%%action.openidlogin%%)!)'; '(%%action.openidlogin%%)!)');
break; break;
default: default:
return true; return true;
......
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