From 45e04d336db7ebcdba02306b41eeede73ba2a748 Mon Sep 17 00:00:00 2001 From: Reis Radomil Date: Sun, 22 Apr 2018 04:15:57 +0000 Subject: [PATCH] I18N: Document the choice strings for translators Document that the choice string (which contains the characters for the choice) must match up with the translated string of the question. --- muttlib.c | 11 ++++++++--- ncrypt/smime.c | 18 ++++++++++++------ 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/muttlib.c b/muttlib.c index e4001a047..fe899b632 100644 --- a/muttlib.c +++ b/muttlib.c @@ -644,7 +644,10 @@ int mutt_check_overwrite(const char *attname, const char *path, char *fname, switch (mutt_multi_choice /* L10N: Means "The path you specified as the destination file is a directory." - See the msgid "Save to file: " (alias.c, recvattach.c) */ + See the msgid "Save to file: " (alias.c, recvattach.c) + + These three letters correspond to the choices in the string. + */ (_("File is a directory, save under it? [(y)es, (n)o, (a)ll]"), _("yna"))) { case 3: /* all */ @@ -678,8 +681,10 @@ int mutt_check_overwrite(const char *attname, const char *path, char *fname, if (*append == 0 && access(fname, F_OK) == 0) { - switch (mutt_multi_choice( - _("File exists, (o)verwrite, (a)ppend, or (c)ancel?"), _("oac"))) + switch ( + mutt_multi_choice(_("File exists, (o)verwrite, (a)ppend, or (c)ancel?"), + // L10N: Options for: File exists, (o)verwrite, (a)ppend, or (c)ancel? + _("oac"))) { case -1: /* abort */ return -1; diff --git a/ncrypt/smime.c b/ncrypt/smime.c index 3c3ce0785..71d25339e 100644 --- a/ncrypt/smime.c +++ b/ncrypt/smime.c @@ -2126,13 +2126,15 @@ int smime_send_menu(struct Header *msg) msg->security |= ENCRYPT; do { - switch (mutt_multi_choice(_("Choose algorithm family:" - " 1: DES, 2: RC2, 3: AES," - " or (c)lear? "), + switch (mutt_multi_choice(_("Choose algorithm family: 1: DES, 2: " + "RC2, 3: AES, or (c)lear? "), + // L10N: Options for: Choose algorithm family: 1: DES, 2: RC2, 3: AES, or (c)lear? _("123c"))) { case 1: - switch (choice = mutt_multi_choice(_("1: DES, 2: Triple-DES "), _("12"))) + switch (choice = mutt_multi_choice(_("1: DES, 2: Triple-DES "), + // L10N: Options for: 1: DES, 2: Triple-DES + _("12"))) { case 1: mutt_str_replace(&SmimeEncryptWith, "des"); @@ -2145,7 +2147,9 @@ int smime_send_menu(struct Header *msg) case 2: switch (choice = mutt_multi_choice( - _("1: RC2-40, 2: RC2-64, 3: RC2-128 "), _("123"))) + _("1: RC2-40, 2: RC2-64, 3: RC2-128 "), + // L10N: Options for: 1: RC2-40, 2: RC2-64, 3: RC2-128 + _("123"))) { case 1: mutt_str_replace(&SmimeEncryptWith, "rc2-40"); @@ -2161,7 +2165,9 @@ int smime_send_menu(struct Header *msg) case 3: switch (choice = mutt_multi_choice( - _("1: AES128, 2: AES192, 3: AES256 "), _("123"))) + _("1: AES128, 2: AES192, 3: AES256 "), + // L10N: Options for: 1: AES128, 2: AES192, 3: AES256 + _("123"))) { case 1: mutt_str_replace(&SmimeEncryptWith, "aes128"); -- 2.40.0