mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Added missing translation in admin_ug_auth (#254)
* Added missing translation in admin_ug_auth * Update CHANGELOG.md
This commit is contained in:
parent
e46960ec7d
commit
8348db6d65
@ -6,6 +6,7 @@
|
||||
**Merged pull requests:**
|
||||
|
||||
- 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))
|
||||
- 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))
|
||||
|
@ -75,7 +75,7 @@ if ($submit && $mode == 'user')
|
||||
{
|
||||
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");
|
||||
@ -95,7 +95,7 @@ if ($submit && $mode == 'user')
|
||||
// ignore if you're trying to change yourself from an admin to user!
|
||||
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
|
||||
DB()->query("UPDATE ". BB_USERS ." SET user_level = ". USER ." WHERE user_id = $user_id LIMIT 1");
|
||||
@ -471,4 +471,4 @@ $template->assign_vars(array(
|
||||
'U_ALL_FORUMS' => !empty($base_url) ? "$base_url&c=all" : '',
|
||||
));
|
||||
|
||||
print_page('admin_ug_auth.tpl', 'admin');
|
||||
print_page('admin_ug_auth.tpl', 'admin');
|
||||
|
@ -1711,6 +1711,8 @@ $lang['USER_AUTH_UPDATED'] = 'User permissions have been updated';
|
||||
$lang['GROUP_AUTH_UPDATED'] = 'Group 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_GROUPAUTH'] = 'Click %sHere%s to return to Group Permissions';
|
||||
$lang['CLICK_RETURN_FORUMAUTH'] = 'Click %sHere%s to return to Forum Permissions';
|
||||
|
@ -1711,6 +1711,8 @@ $lang['USER_AUTH_UPDATED'] = 'Права пользователя изменен
|
||||
$lang['GROUP_AUTH_UPDATED'] = 'Права группы изменены';
|
||||
|
||||
$lang['AUTH_UPDATED'] = 'Права доступа изменены';
|
||||
$lang['AUTH_GENERAL_ERROR'] = 'Не удалось обновить статус администратора';
|
||||
$lang['AUTH_SELF_ERROR'] = 'Не удалось изменить себя с администратора на пользователя';
|
||||
$lang['CLICK_RETURN_USERAUTH'] = '%sВернуться к управлению правами пользователей%s';
|
||||
$lang['CLICK_RETURN_GROUPAUTH'] = '%sВернуться к управлению правами групп%s';
|
||||
$lang['CLICK_RETURN_FORUMAUTH'] = '%sВернуться к управлению доступом к форумам%s';
|
||||
|
@ -1711,6 +1711,8 @@ $lang['USER_AUTH_UPDATED'] = 'Права користувача змінено';
|
||||
$lang['GROUP_AUTH_UPDATED'] = 'Права групи змінено';
|
||||
|
||||
$lang['AUTH_UPDATED'] = 'Права доступу змінено';
|
||||
$lang['AUTH_GENERAL_ERROR'] = 'Не вдалося оновити статус адміністратора';
|
||||
$lang['AUTH_SELF_ERROR'] = 'Не вдалося змінити себе з адміністратора на користувача';
|
||||
$lang['CLICK_RETURN_USERAUTH'] = '%sВернуться до управління правами користувачів%s';
|
||||
$lang['CLICK_RETURN_GROUPAUTH'] = '%sВернуться до управління правами груп%s';
|
||||
$lang['CLICK_RETURN_FORUMAUTH'] = '%sВернуться до управління доступом до форумів%s';
|
||||
|
Loading…
Reference in New Issue
Block a user