#35476: The precedence of multiple translations for the same literal does not 
work
on Python3.11 & Python3.12
-------------------------------------+-------------------------------------
               Reporter:  Dmytro     |          Owner:  nobody
  Litvinov                           |
                   Type:  Bug        |         Status:  new
              Component:             |        Version:  4.2
  Uncategorized                      |
               Severity:  Normal     |       Keywords:  i18n, translation
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 According to documentation
 https://docs.djangoproject.com/en/4.2/topics/i18n/translation/#how-django-
 discovers-translations
 Django will look for translations in the following order:

 * LOCALE_PATHS directories
 * 3rd party apps
 * django/conf/locale

 ''I created example project with reproducing the issue at GitHub -
 https://github.com/DmytroLitvinov/django-i18n-issue''

 As for Python3.10 it works according to documentation, but if we start to
 use Python3.11 and higher (like Python3.12) - we will see that the order
 is not correct and it will take first from 3rd party app (like in my
 example from django-allauth library).

 To confirm that translation in LOCALE_PATHS are working correctly, we can
 comment out 'allauth' in INSTALLED_APPS settings and see that translation
 of word 'Continue' will be correctly taken from LOCALE_PATHS folders.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35476>
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/0107018fa4afc05f-b48d0b14-b1f3-4101-a2e7-aa883effe64d-000000%40eu-central-1.amazonses.com.

Reply via email to