#16764: LANGUAGES and LANGUAGE_CODE settings doesn't work correctly
-------------------------------------+-------------------------------------
               Reporter:  anonymous  |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Milestone:             |      Component:
                Version:  1.3        |  Internationalization
             Resolution:             |       Severity:  Normal
           Triage Stage:             |       Keywords:  language settings
  Unreviewed                         |      Has patch:  0
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
Changes (by aaugustin):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Old description:

> LANGUAGE_CODE = 'mn'
>
> gettext = lambda s: s
> LANGUAGES = (
>     ('mn', gettext('Mongolia')),
>     ('en-us', gettext('English')),
> )
>
> when above settings configured default language code is "mn", but
>
> LANGUAGE_CODE = 'mn'
>
> gettext = lambda s: s
> LANGUAGES = (
>     ('mn', gettext('Mongolia')),
>     ('en', gettext('English')),
> )
>
> in this situation default language code is "en".
>
> I added locale middleware to MIDDLEWARES.
>
> It is BUG? or something?

New description:

 {{{
 LANGUAGE_CODE = 'mn'

 gettext = lambda s: s
 LANGUAGES = (
     ('mn', gettext('Mongolia')),
     ('en-us', gettext('English')),
 )
 }}}

 when above settings configured default language code is "mn", but

 {{{
 LANGUAGE_CODE = 'mn'

 gettext = lambda s: s
 LANGUAGES = (
     ('mn', gettext('Mongolia')),
     ('en', gettext('English')),
 )
 }}}

 in this situation default language code is "en".

 I added locale middleware to MIDDLEWARES.

 It is BUG? or something?

--

Comment:

 Fixed formatting.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16764#comment:1>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to