Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Russian localization #751

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions rest_framework_simplejwt/locale/ru_RU/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,29 @@ msgstr "Пользователь неактивен"

#: authentication.py:142
msgid "The user's password has been changed."
msgstr ""
msgstr "Пароль пользователя был изменен"

#: backends.py:69
msgid "Unrecognized algorithm type '{}'"
msgstr "Нераспознанный тип алгоритма '{}'"

#: backends.py:75
msgid "You must have cryptography installed to use {}."
msgstr ""
msgstr "У вас должна быть установлена криптография чтобы использовать {}."
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Здесь идет речь о пакете cryptography, поэтому его название следует писать на английском языке, т.к. при написании на русском теряется смысл

Вот как это используется:
https://github.com/jazzband/djangorestframework-simplejwt/blob/v5.3.1/rest_framework_simplejwt/backends.py#L72-L77
https://github.com/jpadilla/pyjwt/blob/2.9.0/jwt/algorithms.py#L23-L70


#: backends.py:90
msgid ""
"Unrecognized type '{}', 'leeway' must be of type int, float or timedelta."
msgstr ""
"Не распознан тип '{}', 'leeway' должен иметь тип int, float или timedelta."

#: backends.py:104 backends.py:154 exceptions.py:47 tokens.py:58
msgid "Token is invalid or expired"
msgstr "Токен недействителен или просрочен"

#: backends.py:152
msgid "Invalid algorithm specified"
msgstr ""
msgstr "Указан неверный алгоритм"

#: serializers.py:35
msgid "No active account found with the given credentials"
Expand Down Expand Up @@ -94,7 +95,7 @@ msgstr "истекает"
msgid "Token Blacklist"
msgstr "Token Blacklist"

#: tokens.py:44
#: tokens.py:44:
msgid "Cannot create token with no type or lifetime"
msgstr "Невозможно создать токен без типа или времени жизни"

Expand Down