OAuth: Diversify the description of actions

This commit is contained in:
Visman 2023-05-28 21:17:27 +07:00
parent 4d837f00c2
commit b7725afb23
3 changed files with 28 additions and 1 deletions

View file

@ -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)]),
];
}

View file

@ -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."

View file

@ -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."