On Fri, Jun 20, 2014 at 1:47 PM, Vernon D. Cole <[email protected]> wrote:
> (*cough*)
> Excuse me, everyone, but many of the locale names mentioned in this
> discussion have been invalid.
>
> https://docs.djangoproject.com/en/1.6/topics/i18n/#term-locale-name says:
>>
>> locale nameA locale name, either a language specification of the form ll
>> or a combined language and country specification of the form ll_CC.
>> Examples: it, de_AT, es, pt_BR. The language part is always in lower case
>> and the country part in upper case. The separator is an underscore.
>
>
> so 'en-gb' should not be recognized.
> 'en_GB' ought to be.
>
What is and what is not a locale name has little bearing on what is
accepted and returned by django.utils.translation.{set,get}_language,
which is self-evidently a language name.
Language names map to locales.
Cheers
Tom
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAFHbX1K5Ow%3D25wKEBsYrot_JqmFbbccrDJjiGv5-9GSt4ceccg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.