Django language selection in local and native languages

I have a django site. I add translations using the language selector, which lists the available languages ​​in the user's language. I would like the dropdown menu to also include its own spelling.

Currently it looks like this:
English
Dutch
Simplified Chinese

When I switch to Chinese, it looks like this:
英语
荷兰语
简体 中文

I try to do it like this:
English / English
Dutch / Nederlands
Simplified Chinese / 简体 中文

settings.py includes:

ugettext = lambda s: s  
LANGUAGES = (
    ('en', ugettext('English')),
    ('nl', ugettext('Dutch')),
    ('zh-cn', ugettext('Simplified Chinese')),
)

base.html:

    {% load i18n %}
    {% get_available_languages as LANGUAGES %}
    <form action="/i18n/setlang/" method="post">{% csrf_token %}
      <input name="next" type="hidden" value="/" />
        {% csrf_token %}
        <select name="language">
          {% for lang in LANGUAGES %}
            <option value="{{ lang.0 }}">{{ lang.1 }}</option>
          {% endfor %}
        </select>
      <input type="submit" value="Go" />
    </form>

My thought was to add another element to LANGUAGES, which is the native language, for example:

LANGUAGES = (
    ('en', ugettext('English'), 'English'),
    ('nl', ugettext('Dutch'), 'Nederlands'),
    ('zh-ch', ugettext('Simplified Chinese'), '简体中文'),)

Django, , 2 LANGUAGES. ?

EDIT : , , :

        <form action="/i18n/setlang/" method="post">{% csrf_token %}
        <input name="next" type="hidden" value="/" />
        <select name="language">
            <option value="en">English</option>
            <option value="nl">Dutch\Nederlands</option>
            <option value="ru">Russian\</option>
            <option value="zh-cn">Simplified Chinese-简体中文</option>
        </select>
        <input type="submit" value="Go" />
    </form>  

- \???????, -????

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> html, ( ) .

+5
2

:

LANGUAGES = (
    ('en',    '{}/{}'.format(ugettext('English'), 'English')),
    ('nl',    '{}/{}'.format(ugettext('Dutch'), 'Nederlands')),
    ('zh-cn', '{}/{}'.format(ugettext('Simplified Chinese'), '简体中文')),
)

:

{% for lang in LANGUAGES %}
    <option value="{{ lang.0 }}">{{ lang.1 }}</option>
{% endfor %}
+5

, . <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> "head", , ???? .

2 , , - / , .

, .

+1

All Articles