From 7131d5dd34875f57384c7c7a49469825f9fa69f2 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 13 Aug 2010 12:39:37 +0200 Subject: [PATCH] Fixes #733: tooltips with language names --- wolnelektury/settings.py | 17 +++++++++-------- wolnelektury/templates/base.html | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/wolnelektury/settings.py b/wolnelektury/settings.py index 8a82221b9..b3be7095d 100644 --- a/wolnelektury/settings.py +++ b/wolnelektury/settings.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # Django settings for wolnelektury project. from os import path @@ -34,14 +35,14 @@ LANGUAGE_CODE = 'pl' gettext = lambda s: s LANGUAGES = tuple(sorted([ - ('pl', gettext('Polish')), - ('de', gettext('German')), - ('en', gettext('English')), - ('lt', gettext('Lithuanian')), - ('fr', gettext('French')), - ('ru', gettext('Russian')), - ('es', gettext('Spanish')), - ('uk', gettext('Ukrainian')), + ('pl', u'Polski'), + ('de', u'Deutsch'), + ('en', u'English'), + ('lt', u'Lietuvių'), + ('fr', u'Français'), + ('ru', u'Русский'), + ('es', u'Español'), + ('uk', u'Українська'), ], key=lambda x: x[0])) diff --git a/wolnelektury/templates/base.html b/wolnelektury/templates/base.html index da5ab63a7..393eec52d 100644 --- a/wolnelektury/templates/base.html +++ b/wolnelektury/templates/base.html @@ -51,7 +51,7 @@
{% spaceless %} {% for lang in LANGUAGES %} - {% endfor %} -- 2.20.1