Commit 3a348b33 authored by Vladimir Zahradnik's avatar Vladimir Zahradnik Committed by Štěpán Henek

locale: add support for slovak lang

parent 30e075f8
......@@ -54,11 +54,14 @@ translations = {
languages=['de'], fallback=True),
'en': gettext.translation("messages", os.path.join(BASE_DIR, "locale"),
languages=['en'], fallback=True),
'sk': gettext.translation("messages", os.path.join(BASE_DIR, "locale"),
languages=['sk'], fallback=True),
}
translation_names = {
'cs': "Česky",
'de': "Deutsch",
'en': "English",
'sk': "Slovenský",
}
ugettext = lambda x: translations[bottle.request.app.lang].ugettext(x)
ungettext = lambda singular, plural, n: translations[bottle.request.app.lang].ungettext(singular, plural, n)
......
This diff is collapsed.
This diff is collapsed.
......@@ -21,6 +21,7 @@
<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>
| <a href="{{ url("change_lang", lang="sk", backlink=request.fullpath) }}">SVK</a>
</div>
<h1><img src="{{ static("img/logo-turris.svg") }}" alt="{{ trans("Project:Turris") }}" width="295"></h1>
......
......@@ -3,4 +3,5 @@
<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>
| <a href="{{ url("change_lang", lang="sk", backlink=request.fullpath) }}">SVK</a>
</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