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

16660 - Use ngettext for strings with count #16742

Conversation

Julio-Oliveira-Encora
Copy link
Contributor

Fixes: #16660

Added ngettext for strings with count, positions, and rows.

Please, feel free to indicate more places to add the ngettext.

@arthanson
Copy link
Collaborator

Closing this as this doesn't address the issue in BulkDisconnectView:

                messages.success(request, _(ngettext(
                    "Disconnected 1 {type}",
                    "Disconnected {count} {type_plural}",
                    count,
                )).format(
                    count=count,
                    type=self.queryset.model._meta.verbose_name,
                    type_plural=self.queryset.model._meta.verbose_name_plural
                ))

see frank's comment on the bug report. I don't think it is viable to create a line for each type, so this will have to be researched further.

@arthanson arthanson closed this Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use ngettext for strings with count
2 participants