aboutsummaryrefslogtreecommitdiff
path: root/src/exec.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-02-23 10:03:37 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-02-23 10:03:37 +0200
commit337a06f32fb530e0e0884fef2f5f630cca9911a1 (patch)
treed0687ccd3e9ff527d9c5613fd052cbe0f79bb40a /src/exec.c
parent7543ff5973d1afe75b0f4226a3a02cc8d375ad3e (diff)
downloadwydawca-337a06f32fb530e0e0884fef2f5f630cca9911a1.tar.gz
wydawca-337a06f32fb530e0e0884fef2f5f630cca9911a1.tar.bz2
Add missing i18n markers
Diffstat (limited to 'src/exec.c')
-rw-r--r--src/exec.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/exec.c b/src/exec.c
index 4f4902d..eb4c8c4 100644
--- a/src/exec.c
+++ b/src/exec.c
@@ -48,11 +48,11 @@ start_prog (int argc, const char **argv, pid_t *ppid)
close (i);
execvp (argv[0], (char**) argv);
- logmsg (LOG_CRIT, "cannot run %s: %s", argv[0], strerror (errno));
+ logmsg (LOG_CRIT, _("cannot run %s: %s"), argv[0], strerror (errno));
exit (1);
case -1:
- logmsg (LOG_CRIT, "cannot run `%s': fork failed: %s",
+ logmsg (LOG_CRIT, _("cannot run `%s': fork failed: %s"),
argv[0], strerror (errno));
return NULL;
@@ -61,7 +61,7 @@ start_prog (int argc, const char **argv, pid_t *ppid)
close (p[1]);
fp = fdopen (p[0], "r");
if (!fp)
- logmsg (LOG_ERR, "cannot fdopen: %s", strerror (errno));
+ logmsg (LOG_ERR, _("cannot fdopen: %s"), strerror (errno));
*ppid = pid;
}
return fp;
@@ -75,10 +75,10 @@ log_output (int prio, const char *prog, FILE *fp)
size_t size = 0;
char *buf = NULL;
- logmsg (prio, "%s output follows:", prog);
+ logmsg (prio, _("%s output follows:"), prog);
while (getline (&buf, &size, fp) > 0)
logmsg (prio, "%s", buf);
- logmsg (prio, "end of %s output", prog);
+ logmsg (prio, _("end of %s output"), prog);
free (buf);
}
@@ -95,7 +95,7 @@ wydawca_exec (int argc, const char **argv, int *retcode)
fp = start_prog (5, argv, &pid);
if (!fp)
{
- logmsg (LOG_CRIT, "cannot start %s", argv[0]);
+ logmsg (LOG_CRIT, _("cannot start %s"), argv[0]);
return exec_error;
}
@@ -105,15 +105,15 @@ wydawca_exec (int argc, const char **argv, int *retcode)
switch (npid)
{
case -1:
- logmsg (LOG_CRIT, "cannot execute %s: waitpid failed: %s",
+ logmsg (LOG_CRIT, _("cannot execute %s: waitpid failed: %s"),
argv[0], strerror (errno));
fclose (fp);
return exec_error;
case 0:
logmsg (LOG_CRIT,
- "cannot execute %s: the process did not respond "
- "within 5 seconds: %s",
+ _("cannot execute %s: the process did not respond "
+ "within 5 seconds: %s"),
argv[0], strerror (errno));
kill (pid, SIGKILL);
fclose (fp);
@@ -129,7 +129,7 @@ wydawca_exec (int argc, const char **argv, int *retcode)
if (rc)
{
res = exec_fail;
- logmsg (LOG_ERR, "command %s returned %d", argv[0], rc);
+ logmsg (LOG_ERR, _("command %s returned %d"), argv[0], rc);
log_output (LOG_ERR, argv[0], fp);
}
else
@@ -145,13 +145,13 @@ wydawca_exec (int argc, const char **argv, int *retcode)
{
res = exec_error;
if (WIFSIGNALED (status))
- logmsg (LOG_ERR, "%s terminated on signal %d",
+ logmsg (LOG_ERR, _("%s terminated on signal %d"),
argv[0], WTERMSIG (status));
else if (WIFSTOPPED (status))
- logmsg (LOG_ERR, "%s stopped on signal %d",
+ logmsg (LOG_ERR, _("%s stopped on signal %d"),
argv[0], WTERMSIG (status));
else
- logmsg (LOG_ERR, "%s terminated with unrecognized status",
+ logmsg (LOG_ERR, _("%s terminated with unrecognized status"),
argv[0]);
}
fclose (fp);

Return to:

Send suggestions and report system problems to the System administrator.