1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-13 05:43:37 -04:00

report_scripting_error: Look up module names with gettext.

This commit is contained in:
Kalle Olavi Niemitalo 2007-03-22 07:55:59 +02:00 committed by Kalle Olavi Niemitalo
parent 2558688456
commit 48fd725c40

View File

@ -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);