summaryrefslogtreecommitdiff
path: root/lib/TaskMan.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/TaskMan.cc')
-rw-r--r--lib/TaskMan.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/TaskMan.cc b/lib/TaskMan.cc
index 5709d02..3968f6b 100644
--- a/lib/TaskMan.cc
+++ b/lib/TaskMan.cc
@@ -55,7 +55,7 @@ int TaskMan::GotChild(pid_t pid, int status) {
void TaskMan::Init() throw (GeneralException) {
if (inited) {
- throw GeneralException("Task Manager already initialised.");
+ throw GeneralException(_("Task Manager already initialised."));
}
signal(SIGCHLD, taskman_sigchild);
@@ -142,7 +142,7 @@ void TaskMan::MainLoop() throw (GeneralException) {
while (1) {
if (number == 0) {
- throw GeneralException("TaskMan: No more task to manage.");
+ throw GeneralException(_("TaskMan: No more task to manage."));
}
if (stopped) return;
@@ -236,7 +236,7 @@ void TaskMan::MainLoop() throw (GeneralException) {
if (errno == EINTR) {
// child
} else {
- throw GeneralException(String("Error during poll: ") + strerror(errno));
+ throw GeneralException(String(_("Error during poll: ")) + strerror(errno));
}
} else if (r == 0) {
// timeout...
@@ -247,15 +247,15 @@ void TaskMan::MainLoop() throw (GeneralException) {
int i;
for (q = ufsd, i = 0; i < nfds; i++, q++) {
if (q->revents & POLLNVAL) {
- throw GeneralException(String("Error with poll, handle ") + q->fd + " invalid.");
+ throw GeneralException(String(_("Error with poll, handle ")) + q->fd + _(" invalid."));
}
if (q->revents & POLLERR) {
- cerr << "Error condition whith poll, handle " << q->fd << endl;
+ cerr << _("Error condition with poll, handle ") << q->fd << endl;
}
if (q->revents & POLLHUP) {
- cerr << "Handle " << q->fd << " hung up.\n";
+ cerr << _("Handle ") << q->fd << _(" hung up.\n");
// What should I do now?
}
@@ -326,7 +326,7 @@ void TaskMan::MainLoop() throw (GeneralException) {
if (o->GetState() == TASK_DONE) {
TaskList_t::iterator f = FindTask(o);
if (!f) {
- throw GeneralException("TaskMan: internal error (task not found)");
+ throw GeneralException(_("TaskMan: internal error (task not found)"));
}
TaskList.erase(f);
number--;