Module: check_mk
Branch: master
Commit: 362cb6a8fd3faf954d89f4b0f048d0ec25efdb0f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=362cb6a8fd3faf…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Oct 23 11:24:49 2014 +0200
Titles/Topics of visuals in sidebar snapin are now localizable
---
web/plugins/sidebar/shipped.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index 19871e9..f469044 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -70,7 +70,7 @@ sidebar_snapins["about"] = {
def visuals_by_topic(permitted_visuals,
default_order = [ _("Overview"), _("Hosts"),
_("Hostgroups"), _("Services"), _("Servicegroups"),
_("Business Intelligence"), _("Problems"),
_("Addons") ]):
- s = [ (visual.get("topic") or _("Other"),
visual.get("title"), name, 'painters' in visual)
+ s = [ (_u(visual.get("topic") or _("Other")),
_u(visual.get("title")), name, 'painters' in visual)
for name, visual
in permitted_visuals
if not visual["hidden"] and not visual.get("mobile")]