From: TAKAHASHI Tamotsu Date: Sun, 18 Nov 2018 18:05:30 +0000 (-0800) Subject: Add L10N comments to several unclear messages. X-Git-Tag: mutt-1-11-rel~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a919856600e372da1dac25a1acfbcc8b3066e7b;p=mutt Add L10N comments to several unclear messages. Updating Japanese translation, I found that some of the updated messages were a little hard to understand without reading the code. Add comments to some messages I nearly translated in a wrong way. --- diff --git a/account.c b/account.c index 9e7f9154..0cfea974 100644 --- a/account.c +++ b/account.c @@ -276,6 +276,11 @@ char* mutt_account_getoauthbearer (ACCOUNT* account) if (cmd == NULL) { + /* L10N: You will see this error message if (1) you have "oauthbearer" in + one of your $*_authenticators and (2) you do not have the corresponding + $*_oauth_refresh_command defined. So the message does not mean "None of + your $*_oauth_refresh_command's are defined." + */ mutt_error (_("mutt_account_getoauthbearer: No OAUTH refresh command defined")); return NULL; } diff --git a/crypt-gpgme.c b/crypt-gpgme.c index f2af8986..47be23bb 100644 --- a/crypt-gpgme.c +++ b/crypt-gpgme.c @@ -1383,6 +1383,9 @@ static void print_smime_keyinfo (const char* msg, gpgme_signature_t sig, else { if (sig->fpr == NULL) + /* L10N: You will see this message in place of "KeyID " + if the S/MIME key has no ID. This is quite an error. + */ state_puts (_("no signature fingerprint available"), s); else { state_puts (_("KeyID "), s); diff --git a/pgp.c b/pgp.c index 776af84e..be182735 100644 --- a/pgp.c +++ b/pgp.c @@ -662,6 +662,10 @@ int pgp_application_pgp_handler (BODY *m, STATE *s) if (could_not_decrypt || (decrypt_okay_rc <= -3)) mutt_error _("Could not decrypt PGP message"); else if (decrypt_okay_rc < 0) + /* L10N: You will see this error message if (1) you are decrypting + (not encrypting) something and (2) it is a plaintext. So the + message does not mean "You failed to encrypt the message." + */ mutt_error _("PGP message was not encrypted."); else mutt_message _("PGP message successfully decrypted."); diff --git a/recvcmd.c b/recvcmd.c index 32060f4b..74dbf6c3 100644 --- a/recvcmd.c +++ b/recvcmd.c @@ -714,6 +714,9 @@ void mutt_attach_mail_sender (FILE *fp, HEADER *hdr, ATTACH_CONTEXT *actx, if (check_all_msg (actx, cur, 0) == -1) { + /* L10N: You will see this error message if you invoke + when you are on a normal attachment. + */ mutt_error _("You may only compose to sender with message/rfc822 parts."); return; }