-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Fixed #30439 - Added support for different plurals for the same language. #12332
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
Conversation
|
@uri-rodberg Any chance to test this code? |
@claudep It seems that this PR fixes what is not working for Speedy Net in Django 2.2: Speedy Net with Django==2.2.9 I still have to check more, but it seems that everything in Speedy Net works with this PR. If this PR is accepted, will it be possible to apply it to Django 2.2 as well? |
carltongibson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Claude.
This looks good to me. I follow the discussion on the ticket so far, and then I have to admit to getting lost at the end. As I understood it though this seems to be the kernel of what's at stake.
Do you want me to harass for more testing? Or are we happy with Uri's feedback?
Do we need an update here: https://docs.djangoproject.com/en/2.2/topics/i18n/translation/#pluralization β in particular the last Note was mentioned on the ticket.
Thanks for your work!
|
Thanks for reviewing! As for more testing, I would much appreciate a review by @nijel, the initial reporter and an i18n expert. |
m-aciek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am adding comments about two fragments, one of them may be a bug.
|
I've finally got to testing this and I can confirm it works fine for Weblate. Looking at the code it also looks good. Thanks! Has this chance to land in 2.2? |
@claudep Do we need to test Speedy Net again? I see you changed this PR after my test. |
No, it was a minor thing, no need to re-test.
I'm afraid not. |
|
Any update for this PR? @carltongibson |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, let's get this in. π
Rebased and adjusted the release notes for backport to 3.0 and 2.2.
Thanks for the work all!
4f99236 to
e5b7b93
Compare
β¦age. Thanks to Michal ΔihaΕ for review.
|
Thank you for accepting this PR and applying it to Django 2.2 and 3.0 too. |
It now works correctly since django/django#12332. Fixes #3552
|
Hi, I just want to say that I upgraded Django to 2.2.12 in Speedy Net and then upgraded again to 3.0.5, and everything works as expected. I didn't change anything in our translation files and they are still using the old plural forms formula like before ( |
|
Thanks for the feedback! |
ticket-30439