From: Reis Radomil Date: Tue, 22 May 2018 14:16:12 +0000 (+0000) Subject: ncrypt/crypt_gpgme.c: Fix plural message "%s, %lu bit %s\n" X-Git-Tag: neomutt-20180622~38^2~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ed302c19bd83376d7586755b2900eaed3fc7b88;p=neomutt 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. --- 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 = "";