summaryrefslogtreecommitdiffabout
path: root/src/ctl.c
authorSergey Poznyakoff <gray@gnu.org.ua>2016-01-05 13:17:34 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2016-01-05 13:17:34 (GMT)
commitf937fa90807400e87aa64cd03f2c8470093129d7 (patch) (side-by-side diff)
treec94d0061b273b487a27d93de59a06314f78e2aad /src/ctl.c
parent32a337f3b35c51ceb1d9320c7ff67fa1d5726c2a (diff)
downloadpies-f937fa90807400e87aa64cd03f2c8470093129d7.tar.gz
pies-f937fa90807400e87aa64cd03f2c8470093129d7.tar.bz2
Insert missing _() markers
Diffstat (limited to 'src/ctl.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/ctl.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ctl.c b/src/ctl.c
index e1c5530..6145d39 100644
--- a/src/ctl.c
+++ b/src/ctl.c
@@ -740,7 +740,7 @@ do_auth (struct ctlio *io, char const *name, char const *pass)
pies_identity_provider_t provider = ep->data;
char const *pname = pies_identity_provider_name (provider);
- debug(1, ("trying %s...", pname));
+ debug(1, (_("trying identity provider %s..."), pname));
if (pies_authenticate (provider, id, pass) == 0)
{
if (control.adm_acl
@@ -749,7 +749,7 @@ do_auth (struct ctlio *io, char const *name, char const *pass)
id) == 0)
{
new_state = CTL_ADMIN_STATE;
- logmsg (LOG_AUTH, "%s granted admin access via %s",
+ logmsg (LOG_AUTH, _("%s granted admin access via %s"),
name, pname);
}
else if (control.usr_acl
@@ -758,7 +758,7 @@ do_auth (struct ctlio *io, char const *name, char const *pass)
id) == 0)
{
new_state = CTL_USER_STATE;
- logmsg (LOG_AUTH, "%s authenticated via %s",
+ logmsg (LOG_AUTH, _("%s authenticated via %s"),
name, pname);
}
else
@@ -768,12 +768,12 @@ do_auth (struct ctlio *io, char const *name, char const *pass)
if (ad.comp)
{
new_state = CTL_USER_STATE;
- logmsg (LOG_AUTH, "%s authenticated via %s, component %s",
+ logmsg (LOG_AUTH, _("%s authenticated via %s, component %s"),
name, pname, ad.comp->tag);
}
else
{
- logmsg (LOG_AUTH, "%s authenticated via %s, but failed ACL check",
+ logmsg (LOG_AUTH, _("%s authenticated via %s, but failed ACL check"),
name, pname);
}
}
@@ -1109,7 +1109,7 @@ ctlrd (int fd, void *data)
else
{
if (n == -1)
- logmsg (LOG_ERR, "error reading from control socket: %s",
+ logmsg (LOG_ERR, _("error reading from control socket: %s"),
strerror (errno));
return ctlio_end (fd, io);
}
@@ -1129,9 +1129,9 @@ ctlwr (int fd, void *data)
if (rc != 1)
{
if (rc == 0)
- logmsg (LOG_ERR, "error writing to control socket");
+ logmsg (LOG_ERR, _("error writing to control socket"));
else
- logmsg (LOG_ERR, "error writing to control socket: %s",
+ logmsg (LOG_ERR, _("error writing to control socket: %s"),
strerror (errno));
return ctlio_end (fd, io);
}
@@ -1170,7 +1170,7 @@ ctl_accept (int socket, void *data)
if (debug_level >= 1)
{
char *s = sockaddr_to_astr ((struct sockaddr *)&addr, addrlen);
- logmsg (LOG_DEBUG, _("%s wants %s"), s, "control socket");
+ logmsg (LOG_DEBUG, _("%s wants %s"), s, _("control socket"));
free (s);
}
@@ -1222,7 +1222,7 @@ ctl_open ()
if (listen (fd, 8))
{
- logmsg (LOG_CRIT, "can't listen on control socket %s: %s",
+ logmsg (LOG_CRIT, _("can't listen on control socket %s: %s"),
control.url->string, strerror (errno));
exit (EX_UNAVAILABLE);
}

Return to:

Send suggestions and report system problems to the System administrator.