[Django] #33486: Admin's delete selected confirmation messages should allow translations variants based on objects count

26 views
Skip to first unread message

Django

unread,
Feb 1, 2022, 5:54:38 PM2/1/22
to django-...@googlegroups.com
#33486: Admin's delete selected confirmation messages should allow translations
variants based on objects count
-------------------------------------+-------------------------------------
Reporter: Maciej | Owner: Maciej Olko
Olko |
Type: | Status: assigned
Cleanup/optimization |
Component: | Version: dev
contrib.admin | Keywords: i18n, gettext,
Severity: Normal | ngettext
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 1 |
-------------------------------------+-------------------------------------
Admin's delete selected confirmation messages can contain singular and
plural form of a model name as `objects_name` inside the message.

Despite the fact that for English those messages are the same for singular
and plural count, in Polish (and potentially other languages) we inflect
adjectives and pronoun basing on the count.

Bringing the pluralization to those three messages will allow to simplify
the translations, which now for Polish list all alternative endings (to be
done on Transifex).

--
Ticket URL: <https://code.djangoproject.com/ticket/33486>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 1, 2022, 6:16:16 PM2/1/22
to django-...@googlegroups.com
#33486: Admin's delete selected confirmation messages should allow translations
variants based on objects count
-------------------------------------+-------------------------------------
Reporter: Maciej Olko | Owner: Maciej
Type: | Olko
Cleanup/optimization | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: i18n, gettext, | Triage Stage:
ngettext | Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------

Comment (by Maciej Olko):

As an example one of those three messages:

> Deleting the selected %(objects_name)s would require deleting the
following protected related objects:

Current Polish translation:

> Usunięcie wybranych(-nego)(-nej) %(objects_name)s wymaga skasowania
następujących chronionych obiektów, które są z nim(i)/nią powiązane:

After having it divided into two messages, for count=1 it would be:

> Usunięcie **wybranej(-nego)** %(objects_name)s wymaga skasowania
następujących chronionych obiektów, które są z **nią/nim** powiązane:

And for many:

> Usunięcie **wybranych** %(objects_name)s wymaga skasowania następujących
chronionych obiektów, które są z **nimi** powiązane:

--
Ticket URL: <https://code.djangoproject.com/ticket/33486#comment:1>

Django

unread,
Feb 1, 2022, 6:17:31 PM2/1/22
to django-...@googlegroups.com
#33486: Allow translations' variants based on objects count for admin's delete
selected confirmation messages

-------------------------------------+-------------------------------------
Reporter: Maciej Olko | Owner: Maciej
Type: | Olko
Cleanup/optimization | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: i18n, gettext, | Triage Stage:
ngettext | Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------

--
Ticket URL: <https://code.djangoproject.com/ticket/33486#comment:2>

Django

unread,
Feb 2, 2022, 1:41:31 AM2/2/22
to django-...@googlegroups.com
#33486: Allow translations' variants based on objects count for admin's delete
selected confirmation messages

-------------------------------------+-------------------------------------
Reporter: Maciej Olko | Owner: Maciej
Type: | Olko
Cleanup/optimization | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: wontfix

Keywords: i18n, gettext, | Triage Stage:
ngettext | Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* cc: Carlton Gibson (added)
* status: assigned => closed
* resolution: => wontfix


Comment:

As far as I'm aware:
> ''"Usunięcie **wybranych** %(objects_name)s wymaga skasowania
następujących chronionych obiektów, które są z nimi powiązane:"''
sounds good with both single and multiple objects. It is also
linguistically acceptable. I see no reason to complicate it unnecessarily.

--
Ticket URL: <https://code.djangoproject.com/ticket/33486#comment:3>

Django

unread,
Feb 2, 2022, 4:54:27 AM2/2/22
to django-...@googlegroups.com
#33486: Allow translations' variants based on objects count for admin's delete
selected confirmation messages

-------------------------------------+-------------------------------------
Reporter: Maciej Olko | Owner: Maciej
Type: | Olko
Cleanup/optimization | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: wontfix
Keywords: i18n, gettext, | Triage Stage:
ngettext | Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------

Comment (by Maciej Olko):

Hi Mariusz, thank you for your response.

Please note that %(objects_name)s will be replaced by model name in plural
or singular form, that is e.g. "użytkownik" and "użytkownicy" depending of
the count (in English it's "user" and "users"). (Either way also
inflection of the noun here is in a wrong grammatical case, but I'm not
trying to improve that here.)

The alternative endings of words are compatible with the answer by Adam
Wolański in PWN language counseling [1].

[1] [https://sjp.pwn.pl/poradnia/haslo/Alternatywne-formy-
meskie-i-zenskie;17609.html]

--
Ticket URL: <https://code.djangoproject.com/ticket/33486#comment:4>

Django

unread,
Feb 2, 2022, 6:19:16 AM2/2/22
to django-...@googlegroups.com
#33486: Allow translations' variants based on objects count for admin's delete
selected confirmation messages

-------------------------------------+-------------------------------------
Reporter: Maciej Olko | Owner: Maciej
Type: | Olko
Cleanup/optimization | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: wontfix
Keywords: i18n, gettext, | Triage Stage:
ngettext | Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak):

Replying to [comment:4 Maciej Olko]:


> Hi Mariusz, thank you for your response.
>
> Please note that %(objects_name)s will be replaced by model name in
plural or singular form, that is e.g. "użytkownik" and "użytkownicy"
depending of the count (in English it's "user" and "users"). (Either way
also inflection of the noun here is in a wrong grammatical case, but I'm
not trying to improve that here.)
>
> The alternative endings of words are compatible with the answer by Adam
Wolański in PWN language counseling [1].
>
> [1] [https://sjp.pwn.pl/poradnia/haslo/Alternatywne-formy-
meskie-i-zenskie;17609.html]

Yes, but adding new variants would not help a lot if we consider
`objects_name`, we'd get:

> ''"Usunięcie **wybranej(-nego) użytkownik** wymaga skasowania
następujących chronionych obiektów, które są z nią/nim powiązane:"''
> ''"Usunięcie **wybranych użytkownicy** wymaga skasowania następujących


chronionych obiektów, które są z nimi powiązane:"''

--
Ticket URL: <https://code.djangoproject.com/ticket/33486#comment:5>

Reply all
Reply to author
Forward
0 new messages