Module: check_mk
Branch: master
Commit: fa01ba48073ebf29b4959b1a5eb9614325845cc5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fa01ba48073ebf…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Apr 13 08:38:54 2017 +0200
Fixed invalid localization calls
Change-Id: I17434d8237023b339251923d57885de561492d8b
---
web/htdocs/wato.py | 2 +-
web/plugins/sidebar/shipped.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index eaa6ad2..77f980b 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -5432,7 +5432,7 @@ class ModeActivateChanges(WatoMode, ActivateChanges):
# Livestatus
table.cell(_("Status"), css="narrow nobr")
- html.status_label(content=_(status), status=status, help=_("This site is
%s") % status)
+ html.status_label(content=status, status=status, help=_("This site is
%s") % status)
# Livestatus-/Check_MK-Version
table.cell(_("Version"),
site_status.get("livestatus_version", ""), css="narrow
nobr")
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index c38b560..c1e3ebd 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -511,7 +511,7 @@ def render_sitestatus():
html.write(text)
html.close_td()
html.open_td(class_="state")
- html.status_label_button(content=_(state["state"]),
status=state["state"],
+ html.status_label_button(content=state["state"],
status=state["state"],
help=_("%s this site") % (state["state"] ==
"disabled" and _("enable") or _("disable")),
onclick="switch_site('_site_switch=%s:%s')" %
(sitename, switch))
html.close_tr()