Module: check_mk
Branch: master
Commit: 6f0bc23545a7575f75d28822559df7331623c76e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6f0bc23545a757…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Jun 4 08:17:51 2012 +0200
I18n'ed two error messages
---
web/htdocs/views.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 3d537b3..e9fe53e 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -254,14 +254,14 @@ def load_views():
sourcecode = f.read()
t += 1
if t > 10:
- raise MKGeneralException("Cannot load views from %s/view.mk:
file empty or not flushed" % dirpath)
+ raise MKGeneralException(_("Cannot load views from
%s/view.mk: file empty or not flushed") % dirpath)
views = eval(sourcecode)
for name, view in views.items():
view["owner"] = user
view["name"] = name
html.multisite_views[(user, name)] = view
except SyntaxError, e:
- raise MKGeneralException("Cannot load views from %s/views.mk: %s" %
(dirpath, e))
+ raise MKGeneralException(_("Cannot load views from %s/views.mk:
%s") % (dirpath, e))
html.available_views = available_views()