TranslationCatalog always prepends the plural version rather than merge when the same
In django/utils/translation/trans_real.py line 108 compares the __code__ of a function to the top item in the catalog, which is always a function. This comparison always evaluates to False, even if both functions are the same.
Change History
(5)
| Summary: |
Bug in TranslationCatalog → TranslationCatalog always prepends the plural version rather than merge when the same
|
| Triage Stage: |
Unreviewed → Accepted
|
| Owner: |
set to Aryaz Eghbali
|
| Status: |
new → assigned
|
Refs #34221
Might want to add to the test
i18n.tests.TranslationTests.test_multiple_plurals_mergewith asserts tofrench._catalog._catalogs