#33565: makemessages command skips the nl-nl-x-informal folder
-------------------------------------+-------------------------------------
               Reporter:  Ronnie     |          Owner:  nobody
  van den Crommenacker               |
                   Type:  Bug        |         Status:  new
              Component:             |        Version:  3.2
  Internationalization               |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 There is a mismatch on the DjangoTranslation folder and the makemessages
 command for the value `nl-nl-x-informal`

 DjangoTranslation uses the `to_locale` method to determine the language
 folder to read the `django.po`. `to_locale` translates `nl-nl-x-informal`
 correctly to the `nl_NL-x-informal` folder.

 However makemessages skips the `nl_NL-x-informal` folder and displays the
 following message
 **invalid locale nl_NL-x-informal, did you mean nl_NL_x_informal?**

 # This makemessages behaviour is introduced in commit
 
https://github.com/django/django/commit/f63f3cdf0969c23fd0c05de0f4a2a1df0cd5112e

 The check for `-` in the locale should only be for the first section
 a.k.a. `nl_NL`

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33565>
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/0107017f6558dce2-822a3fb2-a7c2-4fa3-a0f9-3d933460d430-000000%40eu-central-1.amazonses.com.

Reply via email to