#32737: get_language_info replaces requested language code with the one found in
django.conf.locale.LANG_INFO
-------------------------------------+-------------------------------------
Reporter: ruffni | Owner: nobody
Type: Bug | Status: closed
Component: | Version: 3.1
Internationalization |
Severity: Normal | Resolution: invalid
Keywords: i18n, | Triage Stage:
get_language_info, language code, | Unreviewed
LANG_INFO, documentation |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by ruffni):
aha! i see what i missed to say before:
Replying to [comment:1 Claude Paroz]:
> If you really want it, you could add any "new" language by following
https://docs.djangoproject.com/en/stable/topics/i18n/translation
/#localization-how-to-create-language-files
this is exactly what i did!
i added the locale directory, made the messages (for language codes 'de-
ch' and 'fr-ch' respectively), compiled them (it all works great). but
still: comparing LANGUAGE_CODE to get_language_info('de-ch') **always
fails**, see above.
nota bene: i'm not talking about some generic translations or anything
alike, i'm talking about translations for languages we provide explicitly
> I'm closing the ticket, but this does not mean we cannot continue the
discussion, if needed.
i have some doubt about this being intended behavior.
--
Ticket URL: <https://code.djangoproject.com/ticket/32737#comment:2>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.82722f566352b007f330068a8ca1b766%40djangoproject.com.