Commit 3cb0cb11 authored by Franco Fichtner's avatar Franco Fichtner

services: fix twisted gettext() invokes

parent 136bf48b
......@@ -124,7 +124,7 @@ function service_control_start($name, $extras) {
configd_run("ids start");
break;
default:
log_error(gettext("Could not start unknown service `%s'", $name));
log_error(sprintf(gettext("Could not start unknown service `%s'"), $name));
break;
}
return sprintf(gettext("%s has been started."),htmlspecialchars($name));
......@@ -199,7 +199,7 @@ function service_control_stop($name, $extras) {
configd_run("ids stop");
break;
default:
log_error(gettext("Could not stop unknown service `%s'", $name));
log_error(sprintf(gettext("Could not stop unknown service `%s'"), $name));
break;
}
return sprintf(gettext("%s has been stopped."), htmlspecialchars($name));
......@@ -271,7 +271,7 @@ function service_control_restart($name, $extras) {
configd_run("ids restart");
break;
default:
log_error(gettext("Could not restart unknown service `%s'", $name));
log_error(sprintf(gettext("Could not restart unknown service `%s'"), $name));
break;
}
return sprintf(gettext("%s has been restarted."),htmlspecialchars($name));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment