#33070: Error using select2 translation files
---------------------------------+--------------------------------------
     Reporter:  Cleiton de Lima  |                    Owner:  sarath ak
         Type:  Bug              |                   Status:  closed
    Component:  contrib.admin    |                  Version:  3.2
     Severity:  Normal           |               Resolution:  invalid
     Keywords:  select2          |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  1                |                    UI/UX:  0
---------------------------------+--------------------------------------

Comment (by Cleiton de Lima):

 Replying to [comment:3 Mariusz Felisiak]:
 > `LANGUAGE_CODE` should be lowercased, so `pt-br` instead of `pt-BR`, see
 [https://docs.djangoproject.com/en/3.2/topics/i18n/#definitions
 "Definitions"], [https://docs.djangoproject.com/en/3.2/ref/settings
 /#language-code LANGUAGE_CODE docs], and the list of
 
[https://github.com/django/django/blob/3219dd3388c437b4bd869b76ddd43c9cdad05090/django/conf/global_settings.py#L124
 LANGUAGES].

 The translation of select2 only accepts pt-BR that way.
 
https://github.com/django/django/blob/main/django/contrib/admin/static/admin/js/vendor/select2/i18n
 /pt-BR.js

 https://github.com/django/django/blob/main/django/contrib/admin/widgets.py#L453

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33070#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/071.dce2a4507def5a3f62a05a4f55939f81%40djangoproject.com.

Reply via email to