diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-01-05 15:17:34 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-01-05 15:17:34 +0200 |
commit | f937fa90807400e87aa64cd03f2c8470093129d7 (patch) | |
tree | c94d0061b273b487a27d93de59a06314f78e2aad /src/ctl.c | |
parent | 32a337f3b35c51ceb1d9320c7ff67fa1d5726c2a (diff) | |
download | pies-f937fa90807400e87aa64cd03f2c8470093129d7.tar.gz pies-f937fa90807400e87aa64cd03f2c8470093129d7.tar.bz2 |
Insert missing _() markers
Diffstat (limited to 'src/ctl.c')
-rw-r--r-- | src/ctl.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -740,7 +740,7 @@ do_auth (struct ctlio *io, char const *name, char const *pass) | |||
740 | pies_identity_provider_t provider = ep->data; | 740 | pies_identity_provider_t provider = ep->data; |
741 | char const *pname = pies_identity_provider_name (provider); | 741 | char const *pname = pies_identity_provider_name (provider); |
742 | 742 | ||
743 | debug(1, ("trying %s...", pname)); | 743 | debug(1, (_("trying identity provider %s..."), pname)); |
744 | if (pies_authenticate (provider, id, pass) == 0) | 744 | if (pies_authenticate (provider, id, pass) == 0) |
745 | { | 745 | { |
746 | if (control.adm_acl | 746 | if (control.adm_acl |
@@ -749,7 +749,7 @@ do_auth (struct ctlio *io, char const *name, char const *pass) | |||
749 | id) == 0) | 749 | id) == 0) |
750 | { | 750 | { |
751 | new_state = CTL_ADMIN_STATE; | 751 | new_state = CTL_ADMIN_STATE; |
752 | logmsg (LOG_AUTH, "%s granted admin access via %s", | 752 | logmsg (LOG_AUTH, _("%s granted admin access via %s"), |
753 | name, pname); | 753 | name, pname); |
754 | } | 754 | } |
755 | else if (control.usr_acl | 755 | else if (control.usr_acl |
@@ -758,7 +758,7 @@ do_auth (struct ctlio *io, char const *name, char const *pass) | |||
758 | id) == 0) | 758 | id) == 0) |
759 | { | 759 | { |
760 | new_state = CTL_USER_STATE; | 760 | new_state = CTL_USER_STATE; |
761 | logmsg (LOG_AUTH, "%s authenticated via %s", | 761 | logmsg (LOG_AUTH, _("%s authenticated via %s"), |
762 | name, pname); | 762 | name, pname); |
763 | } | 763 | } |
764 | else | 764 | else |
@@ -768,12 +768,12 @@ do_auth (struct ctlio *io, char const *name, char const *pass) | |||
768 | if (ad.comp) | 768 | if (ad.comp) |
769 | { | 769 | { |
770 | new_state = CTL_USER_STATE; | 770 | new_state = CTL_USER_STATE; |
771 | logmsg (LOG_AUTH, "%s authenticated via %s, component %s", | 771 | logmsg (LOG_AUTH, _("%s authenticated via %s, component %s"), |
772 | name, pname, ad.comp->tag); | 772 | name, pname, ad.comp->tag); |
773 | } | 773 | } |
774 | else | 774 | else |
775 | { | 775 | { |
776 | logmsg (LOG_AUTH, "%s authenticated via %s, but failed ACL check", | 776 | logmsg (LOG_AUTH, _("%s authenticated via %s, but failed ACL check"), |
777 | name, pname); | 777 | name, pname); |
778 | } | 778 | } |
779 | } | 779 | } |
@@ -1109,7 +1109,7 @@ ctlrd (int fd, void *data) | |||
1109 | else | 1109 | else |
1110 | { | 1110 | { |
1111 | if (n == -1) | 1111 | if (n == -1) |
1112 | logmsg (LOG_ERR, "error reading from control socket: %s", | 1112 | logmsg (LOG_ERR, _("error reading from control socket: %s"), |
1113 | strerror (errno)); | 1113 | strerror (errno)); |
1114 | return ctlio_end (fd, io); | 1114 | return ctlio_end (fd, io); |
1115 | } | 1115 | } |
@@ -1129,9 +1129,9 @@ ctlwr (int fd, void *data) | |||
1129 | if (rc != 1) | 1129 | if (rc != 1) |
1130 | { | 1130 | { |
1131 | if (rc == 0) | 1131 | if (rc == 0) |
1132 | logmsg (LOG_ERR, "error writing to control socket"); | 1132 | logmsg (LOG_ERR, _("error writing to control socket")); |
1133 | else | 1133 | else |
1134 | logmsg (LOG_ERR, "error writing to control socket: %s", | 1134 | logmsg (LOG_ERR, _("error writing to control socket: %s"), |
1135 | strerror (errno)); | 1135 | strerror (errno)); |
1136 | return ctlio_end (fd, io); | 1136 | return ctlio_end (fd, io); |
1137 | } | 1137 | } |
@@ -1170,7 +1170,7 @@ ctl_accept (int socket, void *data) | |||
1170 | if (debug_level >= 1) | 1170 | if (debug_level >= 1) |
1171 | { | 1171 | { |
1172 | char *s = sockaddr_to_astr ((struct sockaddr *)&addr, addrlen); | 1172 | char *s = sockaddr_to_astr ((struct sockaddr *)&addr, addrlen); |
1173 | logmsg (LOG_DEBUG, _("%s wants %s"), s, "control socket"); | 1173 | logmsg (LOG_DEBUG, _("%s wants %s"), s, _("control socket")); |
1174 | free (s); | 1174 | free (s); |
1175 | } | 1175 | } |
1176 | 1176 | ||
@@ -1222,7 +1222,7 @@ ctl_open () | |||
1222 | 1222 | ||
1223 | if (listen (fd, 8)) | 1223 | if (listen (fd, 8)) |
1224 | { | 1224 | { |
1225 | logmsg (LOG_CRIT, "can't listen on control socket %s: %s", | 1225 | logmsg (LOG_CRIT, _("can't listen on control socket %s: %s"), |
1226 | control.url->string, strerror (errno)); | 1226 | control.url->string, strerror (errno)); |
1227 | exit (EX_UNAVAILABLE); | 1227 | exit (EX_UNAVAILABLE); |
1228 | } | 1228 | } |