#27449: Make django.utils.translation.trans_real.get_supported_language_variant
public API
-------------------------------------+-------------------------------------
Reporter: Iacopo Spalletti | Owner: Iacopo
| Spalletti
Type: New feature | Status: assigned
Component: | Version: 1.10
Internationalization |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Iacopo Spalletti:
Old description:
> How about making
> django.utils.translation.trans_real.get_supported_language_variant part
> of the public API?
>
> A use case for this: Check if a given language is within the ones listed
> in LANGUAGES, including the sublanguages, as stated in
> https://docs.djangoproject.com/en/1.10/topics/i18n/translation/:
>
> This example restricts languages that are available for automatic
> selection to German and English (and any sublanguage, like de-ch or en-
> us).
>
> Example: https://github.com/django-parler/django-parler/issues/156
>
> Making this public will involve:
>
> * Adding documentation
> * Exposing it in ``django.utils.translation``
New description:
How about making
django.utils.translation.trans_real.get_supported_language_variant part of
the public API?
A use case for this: Check if a given language is within the ones listed
in LANGUAGES, including the sublanguages, as stated in
https://docs.djangoproject.com/en/1.10/topics/i18n/translation/:
This example restricts languages that are available for automatic
selection to German and English (and any sublanguage, like de-ch or en-
us).
Example: https://github.com/django-parler/django-parler/issues/156
Making this public will involve:
* Adding documentation
* Exposing it in `django.utils.translation`
--
--
Ticket URL: <https://code.djangoproject.com/ticket/27449#comment:4>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.e73496a64c75aba156a154c9bb1efb1a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.