From 48fd725c40fd674fd11c4d869d997c5aa87d7fda Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Thu, 22 Mar 2007 07:55:59 +0200 Subject: [PATCH] report_scripting_error: Look up module names with gettext. --- src/scripting/scripting.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scripting/scripting.c b/src/scripting/scripting.c index 78ff5b9e6..e214cdccc 100644 --- a/src/scripting/scripting.c +++ b/src/scripting/scripting.c @@ -41,7 +41,8 @@ report_scripting_error(struct module *module, struct session *ses, if (!ses) { if (list_empty(terminals)) { - usrerror("[%s error] %s", module->name, msg); + usrerror(gettext("[%s error] %s"), + gettext(module->name), msg); sleep(3); return; } @@ -57,7 +58,7 @@ report_scripting_error(struct module *module, struct session *ses, add_format_to_string(&string, _("An error occurred while running a %s script", term), - module->name); + _(module->name, term)); add_format_to_string(&string, ":\n\n%s", msg);