#27449: Make django.utils.translation.trans_real.get_supported_language_variant
public API
------------------------------------------------+------------------------
               Reporter:  Iacopo Spalletti      |          Owner:  nobody
                   Type:  Uncategorized         |         Status:  new
              Component:  Internationalization  |        Version:  1.10
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 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>
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/048.52e045a6521ed7058912b852909ffa59%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to