From: Radek Czajka Date: Fri, 18 Jun 2010 13:33:00 +0000 (+0200) Subject: Merge branch 'master' of git+ssh://github.com/fnp/wolnelektury X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/d9ab661458b603e0093bb9bdceac5bc2fa73ac72?hp=22c91a91ae96e211002d15dea82d76f7fc9fd481 Merge branch 'master' of git+ssh://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 %}