#31570: Translations of one language in different territories can override each
other
-------------------------------------+-------------------------------------
     Reporter:  Shai Berger          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:                       |                  Version:  2.2
  Internationalization               |
     Severity:  Release blocker      |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Shai Berger):

 The whole {{{TranslationCatalog}}} class is new in the fix for #30439.

 The issue is not about mis-comparing plural forms at all. The issue is
 incorrect handling, in that code, of the "base language" ({{{en}}})
 catalog. All the {{{en}}} variants have the same plural forms, of course,
 and they do compare equal. But the code fails to account for the fact that
 the {{{en}}} catalog is loaded for {{{en-NZ}}}. When the stars align
 "correctly", it is loaded in such a way that {{{cat}}} in {{{cat.update}}}
 in line 96 is the {{{en}}} catalog, and it is updated with the {{{NZ}}}
 translations when those are loaded, and then with the {{{ZA}}}
 translations when those are loaded. It is the same ({{{is}}}) dict that is
 then used for all three languages.

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.a57c0a89da577c0c3fbca07c50d35221%40djangoproject.com.

Reply via email to