]> granicus.if.org Git - neomutt/commitdiff
ncrypt/crypt_gpgme.c: Fix plural message "%s, %lu bit %s\n"
authorReis Radomil <reisradomil@fake-box.com>
Tue, 22 May 2018 14:16:12 +0000 (14:16 +0000)
committerRichard Russon <rich@flatcap.org>
Tue, 29 May 2018 03:03:35 +0000 (04:03 +0100)
Give translators to opportunity to inflect "bit" according to the bit
size of the key.

ncrypt/crypt_gpgme.c

index 3a93199ace870c4e5ea0602211bc88407d9ebf2f..7dedb16201c7e66f540b411b801f1a269b624b54 100644 (file)
@@ -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 = "";