summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipa-join.c
diff options
context:
space:
mode:
authorJohn Dennis <jdennis@redhat.com>2012-03-29 21:34:19 -0400
committerRob Crittenden <rcritten@redhat.com>2012-04-10 18:07:10 -0400
commitb8f1292e869c3c0d2301809054eb21a72f02b180 (patch)
tree967421e0b801406c5a79ac6fba65b45cd8f0320a /ipa-client/ipa-join.c
parent717bbcd2bf624ad68ea1cdf08216ab4f06e8bc4d (diff)
downloadfreeipa-b8f1292e869c3c0d2301809054eb21a72f02b180.tar.gz
freeipa-b8f1292e869c3c0d2301809054eb21a72f02b180.tar.xz
freeipa-b8f1292e869c3c0d2301809054eb21a72f02b180.zip
Use indexed format specifiers in i18n strings
Translators need to reorder messages to suit the needs of the target language. The conventional positional format specifiers (e.g. %s %d) do not permit reordering because their order is tied to the ordering of the arguments to the printf function. The fix is to use indexed format specifiers. https://fedorahosted.org/freeipa/ticket/2596
Diffstat (limited to 'ipa-client/ipa-join.c')
-rw-r--r--ipa-client/ipa-join.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipa-client/ipa-join.c b/ipa-client/ipa-join.c
index bc46e9387..4c3711319 100644
--- a/ipa-client/ipa-join.c
+++ b/ipa-client/ipa-join.c
@@ -108,7 +108,7 @@ static int check_perms(const char *keytab)
break;
default:
fprintf(stderr,
- _("access() on %s failed: errno = %d\n"),
+ _("access() on %1$s failed: errno = %2$d\n"),
keytab, errno);
break;
}
@@ -334,7 +334,7 @@ get_root_dn(const char *ipaserver, char **ldap_base)
NULL, NULL, NULL, 0, &res);
if (ret != LDAP_SUCCESS) {
- fprintf(stderr, _("Search for %s on rootdse failed with error %d"),
+ fprintf(stderr, _("Search for %1$s on rootdse failed with error %2$d\n"),
root_attrs[0], ret);
rval = 14;
goto done;
@@ -801,7 +801,7 @@ unenroll_host(const char *server, const char *hostname, const char *ktname, int
krberr = krb5_parse_name(krbctx, principal, &princ);
if (krberr != 0) {
if (!quiet)
- fprintf(stderr, _("Error parsing \"%s\": %s.\n"),
+ fprintf(stderr, _("Error parsing \"%1$s\": %2$s.\n"),
principal, error_message(krberr));
return krberr;
}