Module: check_mk
Branch: master
Commit: fd93b11941ea98c3c898eb6a6367e9c3839349de
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fd93b11941ea98…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jul 2 15:01:20 2013 +0200
Better i18n of some texts
---
web/htdocs/valuespec.py | 2 +-
web/htdocs/wato.py | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 09b50bc..63974db 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -1233,7 +1233,7 @@ class ListChoice(ValueSpec):
def validate_value(self, value, varprefix):
if not self._allow_empty and not value:
- raise MKUserError(varprefix, _('You have not selected any connector. You
have to select at least one.'))
+ raise MKUserError(varprefix, _('You have to select at least one
element.'))
ValueSpec.custom_validate(self, value, varprefix)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index bf73fe4..f808789 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -10797,8 +10797,10 @@ def mode_edit_rule(phase, new = False):
else:
return "edit_ruleset"
- return ("edit_ruleset", _("%s rule in ruleset '%s' in
folder %s") %
- (new and _("Created new") or
_("Edited"), rulespec["title"], new_rule_folder["title"]))
+ return ("edit_ruleset",
+ (new and _("Created new rule in ruleset '%s' in folder %s")
+ or _("Editor rule in ruleset '%s' in folder %s")) %
+ (rulespec["title"], new_rule_folder["title"]))
if rulespec.get("help"):
html.write("<div class=info>" + rulespec["help"] +
"</div>")