Opened 15 years ago

Last modified 13 years ago

#12848 closed

language names should be kept native — at Initial Version

Reported by: Benny Daon Owned by: nobody
Component: Internationalization Version: dev
Severity: Keywords:
Cc: Jannis Leidel Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

the LANGUAGES settings array holds tuples of language code and language name. This array is used in templates for language selection. By default, language names are not translated. The docs show a sample of how to translate the names into the current locale:

gettext = lambda s: s

LANGUAGES = (
    ('de', gettext('German')),
    ('en', gettext('English')),
)

Which I think is wrong. If the locale is Chinese, I won't be able to choose between Hebrew and Russian.
The attached patch chages the i18n context process so it translats every language name to its native language. I couldn't think of a way to test it so I added a new view to the example site.

Change History (1)

by Benny Daon, 15 years ago

Attachment: native_languages_V1.diff added
Note: See TracTickets for help on using tickets.
Back to Top