Skip to content

Commit

Permalink
Upd: users CRUD localization
Browse files Browse the repository at this point in the history
  • Loading branch information
Pythonusus committed Dec 12, 2024
1 parent fb142c6 commit 7832269
Show file tree
Hide file tree
Showing 5 changed files with 246 additions and 10 deletions.
Binary file modified task_manager/locale/en/LC_MESSAGES/django.mo
Binary file not shown.
108 changes: 103 additions & 5 deletions task_manager/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-12-04 23:14+0300\n"
"POT-Creation-Date: 2024-12-12 11:51+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -26,26 +26,124 @@ msgstr "Task Manager"
msgid "Logo"
msgstr "Logo"

#: task_manager/texts.py:7
#: task_manager/texts.py:7 task_manager/texts.py:41
msgid "Users"
msgstr "Users"

#: task_manager/texts.py:8
msgid "Login"
msgstr "Login"

#: task_manager/texts.py:9 task_manager/texts.py:16
#: task_manager/texts.py:9 task_manager/texts.py:20
msgid "Register"
msgstr "Register"

#: task_manager/texts.py:10
#, fuzzy
#| msgid "Logo"
msgid "Logout"
msgstr "Logout"

#: task_manager/texts.py:11
msgid "Statuses"
msgstr "Statuses"

#: task_manager/texts.py:12
msgid "Labels"
msgstr "Labels"

#: task_manager/texts.py:13
msgid "Tasks"
msgstr "Tasks"

#: task_manager/texts.py:14
msgid "Author"
msgstr "Author"

#: task_manager/texts.py:15
#: task_manager/texts.py:19
msgid "Registration"
msgstr "Registration"

#: task_manager/texts.py:17
#: task_manager/texts.py:21
msgid "User registered successfully"
msgstr "User registered successfully"

#: task_manager/texts.py:26
msgid "Edit user"
msgstr "Edit user"

#: task_manager/texts.py:27
msgid "Update"
msgstr "Update"

#: task_manager/texts.py:28
msgid "User updated successfully"
msgstr "User updated successfully"

#: task_manager/texts.py:32
msgid "Delete user"
msgstr "Delete user"

#: task_manager/texts.py:33
msgid "Are you sure you want to delete this user?"
msgstr "Are you sure you want to delete"

#: task_manager/texts.py:34
msgid "Delete anyway"
msgstr "Delete anyway"

#: task_manager/texts.py:35
msgid "Permission required"
msgstr "You don't have permission to change another user."

#: task_manager/texts.py:36
msgid "Authentication required"
msgstr "You are not authenticated! Please, log in."

#: task_manager/texts.py:37
msgid "User deleted successfully"
msgstr "User deleted successfully"

#: task_manager/texts.py:42
msgid "ID"
msgstr "ID"

#: task_manager/texts.py:43
msgid "Username"
msgstr "Username"

#: task_manager/texts.py:44
msgid "Full name"
msgstr "Full name"

#: task_manager/texts.py:45
msgid "Created at"
msgstr "Created at"

#: task_manager/texts.py:46
msgid "Edit"
msgstr "Edit"

#: task_manager/texts.py:47
msgid "Delete"
msgstr "Delete"

#: task_manager/texts.py:51
msgid "Log in"
msgstr "Log in"

#: task_manager/texts.py:52
msgid "You are logged in"
msgstr "You are logged in"

#: task_manager/texts.py:56
msgid "You are logged out"
msgstr "You are logged out"

#: task_manager/users/models.py:8
msgid "first name"
msgstr "First name"

#: task_manager/users/models.py:9
msgid "last name"
msgstr "Last name"
Binary file modified task_manager/locale/ru/LC_MESSAGES/django.mo
Binary file not shown.
106 changes: 101 additions & 5 deletions task_manager/locale/ru/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-12-04 23:14+0300\n"
"POT-Creation-Date: 2024-12-12 11:51+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -28,26 +28,122 @@ msgstr "Менеджер задач"
msgid "Logo"
msgstr "Логотип"

#: task_manager/texts.py:7
#: task_manager/texts.py:7 task_manager/texts.py:41
msgid "Users"
msgstr "Пользователи"

#: task_manager/texts.py:8
msgid "Login"
msgstr "Вход"

#: task_manager/texts.py:9 task_manager/texts.py:16
#: task_manager/texts.py:9 task_manager/texts.py:20
msgid "Register"
msgstr "Зарегистрировать"

#: task_manager/texts.py:10
msgid "Logout"
msgstr "Выход"

#: task_manager/texts.py:11
msgid "Statuses"
msgstr "Статусы"

#: task_manager/texts.py:12
msgid "Labels"
msgstr "Метки"

#: task_manager/texts.py:13
msgid "Tasks"
msgstr "Задачи"

#: task_manager/texts.py:14
msgid "Author"
msgstr "Автор"

#: task_manager/texts.py:15
#: task_manager/texts.py:19
msgid "Registration"
msgstr "Регистрация"

#: task_manager/texts.py:17
#: task_manager/texts.py:21
msgid "User registered successfully"
msgstr "Пользователь успешно зарегистрирован"

#: task_manager/texts.py:26
msgid "Edit user"
msgstr "Изменение пользователя"

#: task_manager/texts.py:27
msgid "Update"
msgstr "Изменить"

#: task_manager/texts.py:28
msgid "User updated successfully"
msgstr "Пользователь успешно изменен"

#: task_manager/texts.py:32
msgid "Delete user"
msgstr "Удаление пользователя"

#: task_manager/texts.py:33
msgid "Are you sure you want to delete this user?"
msgstr "Вы уверены, что хотите удалить"

#: task_manager/texts.py:34
msgid "Delete anyway"
msgstr "Да, удалить"

#: task_manager/texts.py:35
msgid "Permission required"
msgstr "У вас нет прав для изменения другого пользователя."

#: task_manager/texts.py:36
msgid "Authentication required"
msgstr "Вы не авторизованы! Пожалуйста, выполните вход."

#: task_manager/texts.py:37
msgid "User deleted successfully"
msgstr "Пользователь успешно удален"

#: task_manager/texts.py:42
msgid "ID"
msgstr "ID"

#: task_manager/texts.py:43
msgid "Username"
msgstr "Имя пользователя"

#: task_manager/texts.py:44
msgid "Full name"
msgstr "Полное имя"

#: task_manager/texts.py:45
msgid "Created at"
msgstr "Дата создания"

#: task_manager/texts.py:46
msgid "Edit"
msgstr "Изменить"

#: task_manager/texts.py:47
msgid "Delete"
msgstr "Удалить"

#: task_manager/texts.py:51
msgid "Log in"
msgstr "Войти"

#: task_manager/texts.py:52
msgid "You are logged in"
msgstr "Вы залогинены"

#: task_manager/texts.py:56
msgid "You are logged out"
msgstr "Вы разлогинены"

#: task_manager/users/models.py:8
msgid "first name"
msgstr "Имя"

#: task_manager/users/models.py:9
msgid "last name"
msgstr "Фамилия"
42 changes: 42 additions & 0 deletions task_manager/texts.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
'users': _('Users'),
'login': _('Login'),
'register': _('Register'),
'logout': _('Logout'),
'statuses': _('Statuses'),
'labels': _('Labels'),
'tasks': _('Tasks'),
'author': _('Author'),
}

Expand All @@ -16,3 +20,41 @@
'register': _('Register'),
'register_success': _('User registered successfully'),
}


update_user = {
'edit_user': _('Edit user'),
'update': _('Update'),
'update_success': _('User updated successfully'),
}

delete_user = {
'delete_user': _('Delete user'),
'delete_confirm': _('Are you sure you want to delete this user?'),
'delete_anyway': _('Delete anyway'),
'delete_success': _('User deleted successfully'),
}

auth = {
'permission_required': _('Permission required'),
'auth_required': _('Authentication required'),
}

users_index = {
'users': _('Users'),
'id': _('ID'),
'username': _('Username'),
'full_name': _('Full name'),
'created_at': _('Created at'),
'edit': _('Edit'),
'delete': _('Delete'),
}

login = {
'login_button': _('Log in'),
'login_success': _('You are logged in'),
}

logout = {
'logout_info': _('You are logged out'),
}

0 comments on commit 7832269

Please sign in to comment.