Commit ac58fb19 authored by Jan Čermák's avatar Jan Čermák

Add German translation to language pickers

parent 6d784986
......@@ -48,11 +48,14 @@ DEFAULT_LANGUAGE = 'cs'
translations = {
'cs': gettext.translation("messages", os.path.join(BASE_DIR, "locale"),
languages=['cs'], fallback=True),
'de': gettext.translation("messages", os.path.join(BASE_DIR, "locale"),
languages=['de'], fallback=True),
'en': gettext.translation("messages", os.path.join(BASE_DIR, "locale"),
languages=['en'], fallback=True)
languages=['en'], fallback=True),
}
translation_names = {
'cs': "Česky",
'de': "Deutsch",
'en': "English",
}
ugettext = lambda x: translations[bottle.request.app.lang].ugettext(x)
......
......@@ -19,6 +19,7 @@
<div class="language-switch">
{{ trans("Language") }}:
<a href="{{ url("change_lang", lang="cs", backlink=request.fullpath) }}">CZE</a>
| <a href="{{ url("change_lang", lang="de", backlink=request.fullpath) }}">DEU</a>
| <a href="{{ url("change_lang", lang="en", backlink=request.fullpath) }}">ENG</a>
</div>
......
<div id="wizard-language-switch">
{{ trans("Language") }}:
<a href="{{ url("change_lang", lang="cs", backlink=request.fullpath) }}">CZE</a>
| <a href="{{ url("change_lang", lang="de", backlink=request.fullpath) }}">DEU</a>
| <a href="{{ url("change_lang", lang="en", backlink=request.fullpath) }}">ENG</a>
</div>
\ No newline at end of file
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment