From 7ed302c19bd83376d7586755b2900eaed3fc7b88 Mon Sep 17 00:00:00 2001 From: Reis Radomil Date: Tue, 22 May 2018 14:16:12 +0000 Subject: [PATCH] ncrypt/crypt_gpgme.c: Fix plural message "%s, %lu bit %s\n" Give translators to opportunity to inflect "bit" according to the bit size of the key. --- ncrypt/crypt_gpgme.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ncrypt/crypt_gpgme.c b/ncrypt/crypt_gpgme.c index 3a93199ac..7dedb1620 100644 --- a/ncrypt/crypt_gpgme.c +++ b/ncrypt/crypt_gpgme.c @@ -3667,7 +3667,7 @@ static void print_key_info(gpgme_key_t key, FILE *fp) fprintf(fp, "%*s", KeyInfoPadding[KIP_KEY_TYPE], _(KeyInfoPrompts[KIP_KEY_TYPE])); /* L10N: This is printed after "Key Type: " and looks like this: * PGP, 2048 bit RSA */ - fprintf(fp, _("%s, %lu bit %s\n"), s2, aval, s); + fprintf(fp, ngettext("%s, %lu bit %s\n", "%s, %lu bit %s\n", aval), s2, aval, s); fprintf(fp, "%*s", KeyInfoPadding[KIP_KEY_USAGE], _(KeyInfoPrompts[KIP_KEY_USAGE])); delim = ""; @@ -3805,7 +3805,9 @@ static void print_key_info(gpgme_key_t key, FILE *fp) aval = subkey->length; fprintf(fp, "%*s", KeyInfoPadding[KIP_KEY_TYPE], _(KeyInfoPrompts[KIP_KEY_TYPE])); - fprintf(fp, _("%s, %lu bit %s\n"), "PGP", aval, s); + /* L10N: This is printed after "Key Type: " and looks like this: + * PGP, 2048 bit RSA */ + fprintf(fp, ngettext("%s, %lu bit %s\n", "%s, %lu bit %s\n", aval), "PGP", aval, s); fprintf(fp, "%*s", KeyInfoPadding[KIP_KEY_USAGE], _(KeyInfoPrompts[KIP_KEY_USAGE])); delim = ""; -- 2.40.0