id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux
13973,Get current language name filter in templates,Secator ,nobody,"Currently there's no way to retrieve current language name easily in templates. You can only use {% get_current_language ... %} filter to get the language code (eg. 'en-us' or 'de-de').
There should be a template filter in django.templatetags.i18n to get the ""English"" or ""German"" strings (verbose name of the language).
Example:
{{{
#settings.py:
LANGUAGES = (
('de', 'German'),
('en', 'English'),
)
#templates:
{% get_current_language as LANGUAGE_CODE %} # Existing filter. Returns en-us if language is english.
{% get_current_language_name as LANGUAGE_NAME %} # Proposed filter. Should return 'English' if LANGUAGE_CODE is 'en'. Basically should return the second element of settings.LANGUAGES touples.
}}}
",,closed,Translations,1.2,,duplicate,language name,,Unreviewed,0,0,0,0,,