#12592 closed (wontfix)
language code for brazilian portuguese should be case insensitive.
Reported by: | italomaia | Owned by: | nobody |
---|---|---|---|
Component: | Internationalization | Version: | dev |
Severity: | Keywords: | pycamp2010 | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In i18nguy, as advised in settings.py it says one should use pt-BR, but django-settings only understand pt-br. Maybe i18nguy should update, or
django settings should advise another website.
Change History (6)
comment:1 by , 15 years ago
milestone: | → 1.2 |
---|---|
Triage Stage: | Unreviewed → Accepted |
Version: | 1.1 → SVN |
comment:2 by , 15 years ago
Component: | Uncategorized → Internationalization |
---|---|
Summary: | i18nguy language code for brazilian portuguese is wrong → language code for brazilian portuguese should be case insensitive. |
The recommendation of pt-BR is correct. Standards for language identifiers recommend lowercase for language, uppercase for region or country code as prefered, but the identifier should be case-insensitive.
tex texin (i18nguy.com)
comment:3 by , 15 years ago
I tried:
LANGUAGE_CODE = 'pt-BR'
in my settings.py file and when browsing the admin site all in written in Portuguese.
comment:4 by , 15 years ago
I ran all the tests with a settings file having
LANGUAGE_CODE = 'es-AR'
And all ran ok.
I also ran them with
LANGUAGE_CODE = 'es-AR' USE_I18N = True
And all ran ok too.
comment:5 by , 15 years ago
Keywords: | pycamp2010 added |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
To clarify, this is about the global_settings.py having a comment linking to http://www.i18nguy.com/unicode/language-identifiers.html.