#32373: Broken translations since the introduction of TranslationCatalog
-------------------------------------+-------------------------------------
     Reporter:  Hristo Gatsinski     |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:                       |                  Version:  master
  Internationalization               |               Resolution:
     Severity:  Normal               |  worksforme
     Keywords:  translations         |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 Hi Hristo

 Thanks for the report. Can I ask you to dig a bit more since I can't
 reproduce as described.

 Here's a full transcript showing, creation of a project with Django 3.0.4,
 with the expected result, but the same output for 3.0.5 and 3.1.5:

 {{{
 ~ $ mktmpenv
 created virtual environment CPython3.8.3.final.0-64 in 865ms
 ...
 This is a temporary environment. It will be deleted when you run
 'deactivate'.
 (tmp-1330abac7a589b8) ~/ve/tmp-1330abac7a589b8 $ pip install Django==3.0.4
 Collecting Django==3.0.4
   Using cached Django-3.0.4-py3-none-any.whl (7.5 MB)
 Collecting asgiref~=3.2
   Using cached asgiref-3.3.1-py3-none-any.whl (19 kB)
 Collecting pytz
   Using cached pytz-2020.5-py2.py3-none-any.whl (510 kB)
 Collecting sqlparse>=0.2.2
   Using cached sqlparse-0.4.1-py3-none-any.whl (42 kB)
 Installing collected packages: sqlparse, pytz, asgiref, Django
 Successfully installed Django-3.0.4 asgiref-3.3.1 pytz-2020.5
 sqlparse-0.4.1
 (tmp-1330abac7a589b8) ~/ve/tmp-1330abac7a589b8 $ django-admin startproject
 issue32373
 (tmp-1330abac7a589b8) ~/ve/tmp-1330abac7a589b8 $ cd issue32373/
 (tmp-1330abac7a589b8) ~/ve/tmp-1330abac7a589b8/issue32373 $ ./manage.py
 shell
 Python 3.8.3 (default, Jul 13 2020, 16:58:09)
 [Clang 10.0.1 (clang-1001.0.46.4)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 (InteractiveConsole)
 >>> from django.utils import translation
 >>> translation.activate('bg')
 >>> translation.gettext('All')
 'Всички'
 >>>
 now exiting InteractiveConsole...
 (tmp-1330abac7a589b8) ~/ve/tmp-1330abac7a589b8/issue32373 $ pip install
 Django==3.0.5
 Collecting Django==3.0.5
   Using cached Django-3.0.5-py3-none-any.whl (7.5 MB)
 Requirement already satisfied: pytz in /Users/carlton/ve/tmp-
 1330abac7a589b8/lib/python3.8/site-packages (from Django==3.0.5) (2020.5)
 Requirement already satisfied: asgiref~=3.2 in /Users/carlton/ve/tmp-
 1330abac7a589b8/lib/python3.8/site-packages (from Django==3.0.5) (3.3.1)
 Requirement already satisfied: sqlparse>=0.2.2 in /Users/carlton/ve/tmp-
 1330abac7a589b8/lib/python3.8/site-packages (from Django==3.0.5) (0.4.1)
 Installing collected packages: Django
   Attempting uninstall: Django
     Found existing installation: Django 3.0.4
     Uninstalling Django-3.0.4:
       Successfully uninstalled Django-3.0.4
 Successfully installed Django-3.0.5
 (tmp-1330abac7a589b8) ~/ve/tmp-1330abac7a589b8/issue32373 $ ./manage.py
 shell
 Python 3.8.3 (default, Jul 13 2020, 16:58:09)
 [Clang 10.0.1 (clang-1001.0.46.4)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 (InteractiveConsole)
 >>> from django.utils import translation
 >>> translation.activate('bg')
 >>> translation.gettext('All')
 'Всички'
 >>> import django
 >>> django.VERSION
 (3, 0, 5, 'final', 0)
 >>>
 now exiting InteractiveConsole...
 (tmp-1330abac7a589b8) ~/ve/tmp-1330abac7a589b8/issue32373 $ pip install -U
 Django
 Requirement already satisfied: Django in /Users/carlton/ve/tmp-
 1330abac7a589b8/lib/python3.8/site-packages (3.0.5)
 Collecting Django
   Using cached Django-3.1.5-py3-none-any.whl (7.8 MB)
 Requirement already satisfied: pytz in /Users/carlton/ve/tmp-
 1330abac7a589b8/lib/python3.8/site-packages (from Django) (2020.5)
 Requirement already satisfied: asgiref<4,>=3.2.10 in /Users/carlton/ve
 /tmp-1330abac7a589b8/lib/python3.8/site-packages (from Django) (3.3.1)
 Requirement already satisfied: sqlparse>=0.2.2 in /Users/carlton/ve/tmp-
 1330abac7a589b8/lib/python3.8/site-packages (from Django) (0.4.1)
 Installing collected packages: Django
   Attempting uninstall: Django
     Found existing installation: Django 3.0.5
     Uninstalling Django-3.0.5:
       Successfully uninstalled Django-3.0.5
 Successfully installed Django-3.1.5
 (tmp-1330abac7a589b8) ~/ve/tmp-1330abac7a589b8/issue32373 $ ./manage.py
 shell
 Python 3.8.3 (default, Jul 13 2020, 16:58:09)
 [Clang 10.0.1 (clang-1001.0.46.4)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 (InteractiveConsole)
 >>> from django.utils import translation
 >>> translation.activate('bg')
 >>> translation.gettext('All')
 'Всички'
 >>>
 }}}

 Really very happy to look into the issue here (no problem with the new
 ticket! :) but what have I done wrong to not reproduce it?
 Thanks!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32373#comment:3>
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/067.e0230a2bb54842f12ca8b4473cb77675%40djangoproject.com.

Reply via email to