Module: check_mk
Branch: master
Commit: 0511208ed9dd46ec5083b1b29b2effc7f67aafa0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0511208ed9dd46…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Mar 10 16:40:37 2015 +0100
Fix i18n problem
---
web/plugins/metrics/check_mk.py | 4 ++--
web/plugins/wato/check_parameters.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/web/plugins/metrics/check_mk.py b/web/plugins/metrics/check_mk.py
index a8e6e99..376527e 100644
--- a/web/plugins/metrics/check_mk.py
+++ b/web/plugins/metrics/check_mk.py
@@ -83,8 +83,8 @@ unit_info["bytes"] = {
unit_info["c"] = {
"title" : _("Degree Celsius"),
- "symbol" : _(u"°C"),
- "render" : lambda v: "%s %s" % (drop_dotzero(v),
_(u"°C")),
+ "symbol" : u"°C",
+ "render" : lambda v: "%s %s" % (drop_dotzero(v),
u"°C"),
}
unit_info["a"] = {
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 18598bf..97f2a52 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -6186,7 +6186,7 @@ register_check_parameters(
Integer(
title = _("Critical System Temperature"),
help = _("The critical temperature of the
System"),
- unit = _("C"),
+ unit = u"°C",
default_value = 55,
),
Integer(