refactor(locale): update Russian locale translations for accuracy

Updated translations to fix pluralization mistakes in administrative actions. Improved clarity and correctness in user-facing messages.
This commit is contained in:
Egor Pavlovich Gorbunov 2026-01-26 17:06:52 +03:00
parent b5e303e7a5
commit c0c1697003
5 changed files with 9 additions and 5 deletions

View file

@ -15,7 +15,7 @@ class PostType(DjangoObjectType):
interfaces = (relay.Node,) interfaces = (relay.Node,)
def resolve_content(self: Post, _info: HttpRequest) -> str: def resolve_content(self: Post, _info: HttpRequest) -> str:
return self.content.html.replace("\n", "<br/>") return self.content or ""
class PostTagType(DjangoObjectType): class PostTagType(DjangoObjectType):

View file

@ -19,4 +19,4 @@ class PostSerializer(ModelSerializer):
fields = "__all__" fields = "__all__"
def get_content(self, obj: Post) -> str: def get_content(self, obj: Post) -> str:
return obj.content.html.replace("\n", "<br/>") return obj.content or ""

View file

@ -454,6 +454,10 @@ class ProductAdmin(
): ):
# noinspection PyClassVar # noinspection PyClassVar
model = Product model = Product
actions = ActivationActionsMixin.actions + [
"export_to_marketplaces",
"ban_from_marketplaces",
]
list_display = ( list_display = (
"sku", "sku",
"name", "name",
@ -463,7 +467,6 @@ class ProductAdmin(
"category", "category",
"brand", "brand",
"price", "price",
"rating",
"modified", "modified",
) )
list_filter = ( list_filter = (
@ -511,6 +514,7 @@ class ProductAdmin(
"name", "name",
"partnumber", "partnumber",
"is_digital", "is_digital",
"export_to_marketplaces",
] ]
relation_fields = [ relation_fields = [
"category", "category",

View file

@ -78,7 +78,7 @@ msgstr "Временные метки"
#: engine/core/admin.py:158 #: engine/core/admin.py:158
#, python-format #, python-format
msgid "Activate selected %(verbose_name_plural)s" msgid "Activate selected %(verbose_name_plural)s"
msgstr "Активировать выбранный %(verbose_name_plural)s" msgstr "Активировать выбранные %(verbose_name_plural)s"
#: engine/core/admin.py:166 #: engine/core/admin.py:166
msgid "selected items have been activated." msgid "selected items have been activated."
@ -87,7 +87,7 @@ msgstr "Выбранные сущности активированы!"
#: engine/core/admin.py:174 #: engine/core/admin.py:174
#, python-format #, python-format
msgid "Deactivate selected %(verbose_name_plural)s" msgid "Deactivate selected %(verbose_name_plural)s"
msgstr "Деактивировать выбранный %(verbose_name_plural)s" msgstr "Деактивировать выбранные %(verbose_name_plural)s"
#: engine/core/admin.py:184 #: engine/core/admin.py:184
msgid "selected items have been deactivated." msgid "selected items have been deactivated."