Remove gettext_noop from language list

Language names in LANGUAGES list are marked as translatable,
but it is unnecessary, so this change removes gettext_noop.

Change-Id: I8f8dd9d16daebf8fec6ecb3f9191ece05c3ceead
Closes-Bug: #1254488
This commit is contained in:
Peter Belanyi 2014-03-04 17:31:40 +01:00
parent 9f8a5eb349
commit 9726f596f3

View File

@ -176,19 +176,18 @@ SESSION_COOKIE_MAX_SIZE = 4093
# TODO(mrunge): remove after Icehouse # TODO(mrunge): remove after Icehouse
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer' SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
gettext_noop = lambda s: s
LANGUAGES = ( LANGUAGES = (
('en', gettext_noop('English')), ('en', 'English'),
('en-au', gettext_noop('Australian English')), ('en-au', 'Australian English'),
('en-gb', gettext_noop('British English')), ('en-gb', 'British English'),
('es', gettext_noop('Spanish')), ('es', 'Spanish'),
('fr', gettext_noop('French')), ('fr', 'French'),
('ja', gettext_noop('Japanese')), ('ja', 'Japanese'),
('ko', gettext_noop('Korean (Korea)')), ('ko', 'Korean (Korea)'),
('nl', gettext_noop('Dutch (Netherlands)')), ('nl', 'Dutch (Netherlands)'),
('pl', gettext_noop('Polish')), ('pl', 'Polish'),
('pt-br', gettext_noop('Portuguese (Brazil)')), ('pt-br', 'Portuguese (Brazil)'),
('zh-cn', gettext_noop('Simplified Chinese')), ('zh-cn', 'Simplified Chinese'),
) )
LANGUAGE_CODE = 'en' LANGUAGE_CODE = 'en'
LANGUAGE_COOKIE_NAME = 'horizon_language' LANGUAGE_COOKIE_NAME = 'horizon_language'