Added missing translation in admin_ug_auth (#254)

* Added missing translation in admin_ug_auth

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-09-23 14:38:49 +07:00 committed by GitHub
parent e46960ec7d
commit 8348db6d65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 3 deletions

View File

@ -6,6 +6,7 @@
**Merged pull requests:** **Merged pull requests:**
- Release v2.1.5-2023.09 🎉 - Release v2.1.5-2023.09 🎉
- Added missing translation in admin_ug_auth [\#254](https://github.com/torrentpier/torrentpier-lts/pull/254) ([belomaxorka](https://github.com/belomaxorka))
- Support for IDN domains [\#252](https://github.com/torrentpier/torrentpier-lts/pull/252) ([belomaxorka](https://github.com/belomaxorka)) - Support for IDN domains [\#252](https://github.com/torrentpier/torrentpier-lts/pull/252) ([belomaxorka](https://github.com/belomaxorka))
- Fixed cache directory auto-creating with SQLite [\#247](https://github.com/torrentpier/torrentpier-lts/pull/247) ([belomaxorka](https://github.com/belomaxorka)) - Fixed cache directory auto-creating with SQLite [\#247](https://github.com/torrentpier/torrentpier-lts/pull/247) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#245](https://github.com/torrentpier/torrentpier-lts/pull/245), [\#246](https://github.com/torrentpier/torrentpier-lts/pull/246), [\#248](https://github.com/torrentpier/torrentpier-lts/pull/248), [\#249](https://github.com/torrentpier/torrentpier-lts/pull/249), [\#250](https://github.com/torrentpier/torrentpier-lts/pull/250), [\#251](https://github.com/torrentpier/torrentpier-lts/pull/251), [\#253](https://github.com/torrentpier/torrentpier-lts/pull/253) ([belomaxorka](https://github.com/belomaxorka)) - Minor improvements [\#245](https://github.com/torrentpier/torrentpier-lts/pull/245), [\#246](https://github.com/torrentpier/torrentpier-lts/pull/246), [\#248](https://github.com/torrentpier/torrentpier-lts/pull/248), [\#249](https://github.com/torrentpier/torrentpier-lts/pull/249), [\#250](https://github.com/torrentpier/torrentpier-lts/pull/250), [\#251](https://github.com/torrentpier/torrentpier-lts/pull/251), [\#253](https://github.com/torrentpier/torrentpier-lts/pull/253) ([belomaxorka](https://github.com/belomaxorka))

View File

@ -75,7 +75,7 @@ if ($submit && $mode == 'user')
{ {
if ($userdata['user_id'] == $user_id || $user_id == GUEST_UID || $user_id == BOT_UID) if ($userdata['user_id'] == $user_id || $user_id == GUEST_UID || $user_id == BOT_UID)
{ {
bb_die("Could not update admin status"); bb_die($lang['AUTH_GENERAL_ERROR']);
} }
DB()->query("UPDATE ". BB_USERS ." SET user_level = ". ADMIN ." WHERE user_id = $user_id LIMIT 1"); DB()->query("UPDATE ". BB_USERS ." SET user_level = ". ADMIN ." WHERE user_id = $user_id LIMIT 1");
@ -95,7 +95,7 @@ if ($submit && $mode == 'user')
// ignore if you're trying to change yourself from an admin to user! // ignore if you're trying to change yourself from an admin to user!
if ($userdata['user_id'] == $user_id) if ($userdata['user_id'] == $user_id)
{ {
bb_die("Could not update admin status<br /><br />Could not change yourself from an admin to user"); bb_die($lang['AUTH_SELF_ERROR']);
} }
// Update users level, reset to USER // Update users level, reset to USER
DB()->query("UPDATE ". BB_USERS ." SET user_level = ". USER ." WHERE user_id = $user_id LIMIT 1"); DB()->query("UPDATE ". BB_USERS ." SET user_level = ". USER ." WHERE user_id = $user_id LIMIT 1");

View File

@ -1711,6 +1711,8 @@ $lang['USER_AUTH_UPDATED'] = 'User permissions have been updated';
$lang['GROUP_AUTH_UPDATED'] = 'Group permissions have been updated'; $lang['GROUP_AUTH_UPDATED'] = 'Group permissions have been updated';
$lang['AUTH_UPDATED'] = 'Permissions have been updated'; $lang['AUTH_UPDATED'] = 'Permissions have been updated';
$lang['AUTH_GENERAL_ERROR'] = 'Could not update admin status';
$lang['AUTH_SELF_ERROR'] = 'Could not change yourself from an admin to user';
$lang['CLICK_RETURN_USERAUTH'] = 'Click %sHere%s to return to User Permissions'; $lang['CLICK_RETURN_USERAUTH'] = 'Click %sHere%s to return to User Permissions';
$lang['CLICK_RETURN_GROUPAUTH'] = 'Click %sHere%s to return to Group Permissions'; $lang['CLICK_RETURN_GROUPAUTH'] = 'Click %sHere%s to return to Group Permissions';
$lang['CLICK_RETURN_FORUMAUTH'] = 'Click %sHere%s to return to Forum Permissions'; $lang['CLICK_RETURN_FORUMAUTH'] = 'Click %sHere%s to return to Forum Permissions';

View File

@ -1711,6 +1711,8 @@ $lang['USER_AUTH_UPDATED'] = 'Права пользователя изменен
$lang['GROUP_AUTH_UPDATED'] = 'Права группы изменены'; $lang['GROUP_AUTH_UPDATED'] = 'Права группы изменены';
$lang['AUTH_UPDATED'] = 'Права доступа изменены'; $lang['AUTH_UPDATED'] = 'Права доступа изменены';
$lang['AUTH_GENERAL_ERROR'] = 'Не удалось обновить статус администратора';
$lang['AUTH_SELF_ERROR'] = 'Не удалось изменить себя с администратора на пользователя';
$lang['CLICK_RETURN_USERAUTH'] = '%sВернуться к управлению правами пользователей%s'; $lang['CLICK_RETURN_USERAUTH'] = '%sВернуться к управлению правами пользователей%s';
$lang['CLICK_RETURN_GROUPAUTH'] = '%sВернуться к управлению правами групп%s'; $lang['CLICK_RETURN_GROUPAUTH'] = '%sВернуться к управлению правами групп%s';
$lang['CLICK_RETURN_FORUMAUTH'] = '%sВернуться к управлению доступом к форумам%s'; $lang['CLICK_RETURN_FORUMAUTH'] = '%sВернуться к управлению доступом к форумам%s';

View File

@ -1711,6 +1711,8 @@ $lang['USER_AUTH_UPDATED'] = 'Права користувача змінено';
$lang['GROUP_AUTH_UPDATED'] = 'Права групи змінено'; $lang['GROUP_AUTH_UPDATED'] = 'Права групи змінено';
$lang['AUTH_UPDATED'] = 'Права доступу змінено'; $lang['AUTH_UPDATED'] = 'Права доступу змінено';
$lang['AUTH_GENERAL_ERROR'] = 'Не вдалося оновити статус адміністратора';
$lang['AUTH_SELF_ERROR'] = 'Не вдалося змінити себе з адміністратора на користувача';
$lang['CLICK_RETURN_USERAUTH'] = '%sВернуться до управління правами користувачів%s'; $lang['CLICK_RETURN_USERAUTH'] = '%sВернуться до управління правами користувачів%s';
$lang['CLICK_RETURN_GROUPAUTH'] = '%sВернуться до управління правами груп%s'; $lang['CLICK_RETURN_GROUPAUTH'] = '%sВернуться до управління правами груп%s';
$lang['CLICK_RETURN_FORUMAUTH'] = '%sВернуться до управління доступом до форумів%s'; $lang['CLICK_RETURN_FORUMAUTH'] = '%sВернуться до управління доступом до форумів%s';