OAuth: Diversify the description of actions
This commit is contained in:
parent
4d837f00c2
commit
b7725afb23
3 changed files with 28 additions and 1 deletions
|
@ -26,12 +26,27 @@ trait RegLogTrait
|
|||
|
||||
$this->c->Lang->load('admin_providers');
|
||||
|
||||
switch ($type) {
|
||||
case 'reg':
|
||||
$message = 'Sign up with %s';
|
||||
|
||||
break;
|
||||
case 'add':
|
||||
$message = 'From %s';
|
||||
|
||||
break;
|
||||
default:
|
||||
$message = 'Sign in with %s';
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
$btns = [];
|
||||
|
||||
foreach ($list as $name) {
|
||||
$btns[$name] = [
|
||||
'type' => 'submit',
|
||||
'value' => __(['Sign in with %s', __($name)]),
|
||||
'value' => __([$message, __($name)]),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -66,6 +66,12 @@ msgstr "Enable this checkbox if you want to change the data"
|
|||
msgid "Sign in with %s"
|
||||
msgstr "Sign in with %s"
|
||||
|
||||
msgid "Sign up with %s"
|
||||
msgstr "Sign up with %s"
|
||||
|
||||
msgid "From %s"
|
||||
msgstr "%s"
|
||||
|
||||
msgid "Provider response error: %s"
|
||||
msgstr "Failed.<br>Provider response: %s."
|
||||
|
||||
|
|
|
@ -66,6 +66,12 @@ msgstr "Установите флажок, если хотите изменит
|
|||
msgid "Sign in with %s"
|
||||
msgstr "Войти с помощью %s"
|
||||
|
||||
msgid "Sign up with %s"
|
||||
msgstr "Регистрация через %s"
|
||||
|
||||
msgid "From %s"
|
||||
msgstr "%s"
|
||||
|
||||
msgid "Provider response error: %s"
|
||||
msgstr "Ошибка.<br>Ответ провайдера: %s."
|
||||
|
||||
|
|
Loading…
Reference in a new issue