Opened 8 years ago

Last modified 8 years ago

#16764 closed Bug

LANGUAGES and LANGUAGE_CODE settings doesn't work correctly — at Version 1

Reported by: anonymous Owned by: nobody
Component: Internationalization Version: 1.3
Severity: Normal Keywords: language settings
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Aymeric Augustin)

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?

Change History (1)

comment:1 Changed 8 years ago by Aymeric Augustin

Description: modified (diff)

Fixed formatting.

Note: See TracTickets for help on using tickets.
Back to Top