Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#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 Jannis Leidel, 15 years ago

milestone: 1.2
Triage Stage: UnreviewedAccepted
Version: 1.1SVN

To clarify, this is about the global_settings.py having a comment linking to http://www.i18nguy.com/unicode/language-identifiers.html.

comment:2 by i18nguy, 15 years ago

Component: UncategorizedInternationalization
Summary: i18nguy language code for brazilian portuguese is wronglanguage 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 jjconti, 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 jjconti, 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 jjconti, 15 years ago

Keywords: pycamp2010 added
Resolution: wontfix
Status: newclosed

comment:6 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

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