From: Ɓukasz Rekucki Date: Fri, 18 Jun 2010 10:41:32 +0000 (+0200) Subject: Merge branch 'master' of github.com:fnp/wolnelektury X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/c4b4a64757ba65018dc24334cb44a12ad2a4316a?hp=22ef9c792241080690626d5316c942cd87b76157 Merge branch 'master' of github.com:fnp/wolnelektury --- diff --git a/lib/librarian b/lib/librarian index d43d87400..5938bc78f 160000 --- a/lib/librarian +++ b/lib/librarian @@ -1 +1 @@ -Subproject commit d43d87400dcc19851442a42ff20af9fc0b549087 +Subproject commit 5938bc78f11ebad067eae86f51b4f5243003f946 diff --git a/wolnelektury/settings.py b/wolnelektury/settings.py index 2ece0b1ac..8a82221b9 100644 --- a/wolnelektury/settings.py +++ b/wolnelektury/settings.py @@ -33,7 +33,7 @@ LANGUAGE_CODE = 'pl' gettext = lambda s: s -LANGUAGES = ( +LANGUAGES = tuple(sorted([ ('pl', gettext('Polish')), ('de', gettext('German')), ('en', gettext('English')), @@ -42,7 +42,7 @@ LANGUAGES = ( ('ru', gettext('Russian')), ('es', gettext('Spanish')), ('uk', gettext('Ukrainian')), -) +], key=lambda x: x[0])) SITE_ID = 1 diff --git a/wolnelektury/static/css/master.css b/wolnelektury/static/css/master.css index 669aeb12a..645466cb8 100644 --- a/wolnelektury/static/css/master.css +++ b/wolnelektury/static/css/master.css @@ -88,6 +88,36 @@ em { color: #777; } +.lang-menu { + margin-right: 0.7em; + line-height: 24px; +} + +.lang-menu button { + color: blue; + border: none; + border-right: 1px solid gray; + -moz-border-radius: 2px; + background: inherit; + cursor: pointer; + padding: 0.2em 0.5em; + font-size: 10px; +} + +.lang-menu button:hover { + color: blue; + text-decoration: underline; +} + +.lang-menu button.active { + color: black; + text-decoration: none; +} + +.lang-menu button.last { + border-right: none; +} + /* ======================== */ /* = Footer with sponsors = */ /* ======================== */ diff --git a/wolnelektury/templates/base.html b/wolnelektury/templates/base.html index ca417677d..da5ab63a7 100644 --- a/wolnelektury/templates/base.html +++ b/wolnelektury/templates/base.html @@ -1,14 +1,13 @@ -{% load i18n %} -{% load chunks compressed catalogue_tags sponsor_tags %} + {% load i18n chunks compressed catalogue_tags sponsor_tags %} {% block title %}WolneLektury.pl{% endblock %} {% compressed_css "all" %} - + {% compressed_js "jquery" %} {% compressed_js "all" %} {% block extrahead %} @@ -49,13 +48,14 @@ WolneLektury @ Nasza-Klasa
-
- {% trans "Choose your interface language: " %} - + + {% spaceless %} + {% for lang in LANGUAGES %} + + {% endfor %} + {% endspaceless %}