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

 * has_patch:  0 => 1


Comment:

 [https://github.com/django/django/pull/12990 PR]

 I've spent far too long on this and still didn't get 100% to the bottom of
 it, particularly with the fallbacks here.
 I did learn some things though... 😅

 The key is that once we have the app with only the subset of all the
 supported languages, `_add_installed_apps_translations()` ends up getting
 a translation
 
[https://github.com/python/cpython/blob/a63c61168588937c482435d0432c753de4844c46/Lib/gettext.py#L590-L598
 who's `_catalog` is the exact same dictionary as has been previously
 used]. This is what Shai said already. The suggested `copy()` resolves
 that issue.

 Thanks for the report Shai, and the reproduce: it's quite particular. :)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31570#comment:17>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.8a147693334e32fb9cde0c4bfd562e6e%40djangoproject.com.

Reply via email to