From: Reis Radomil Date: Sun, 22 Apr 2018 04:15:57 +0000 (+0000) Subject: I18N: ncrypt/smime.c: Translate strings and document them X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=191449f5c00bd5cc1878b33f67d788f1ecc7a095;p=neomutt I18N: ncrypt/smime.c: Translate strings and document them Add a comment for translators that the strings must be padded with spaces. Also do actually translate the strings (using '_()') and not only mark them for translation with 'N_()'. --- diff --git a/ncrypt/smime.c b/ncrypt/smime.c index b98501435..0df2137bf 100644 --- a/ncrypt/smime.c +++ b/ncrypt/smime.c @@ -368,25 +368,74 @@ static void smime_entry(char *buf, size_t buflen, struct Menu *menu, int num) switch (this->trust) { case 'e': - truststate = N_("Expired "); + /* L10N: Describes the trust state of a S/MIME key. + This translation must be padded with spaces to the right such that it + has the same length as the other translations. + + The translation strings which need to be padded are: + Expired, Invalid, Revoked, Trusted, Unverified, Verified, and Unknown. + */ + truststate = _("Expired "); break; case 'i': - truststate = N_("Invalid "); + /* L10N: Describes the trust state of a S/MIME key. + This translation must be padded with spaces to the right such that it + has the same length as the other translations. + + The translation strings which need to be padded are: + Expired, Invalid, Revoked, Trusted, Unverified, Verified, and Unknown. + */ + truststate = _("Invalid "); break; case 'r': - truststate = N_("Revoked "); + /* L10N: Describes the trust state of a S/MIME key. + This translation must be padded with spaces to the right such that it + has the same length as the other translations. + + The translation strings which need to be padded are: + Expired, Invalid, Revoked, Trusted, Unverified, Verified, and Unknown. + */ + truststate = _("Revoked "); break; case 't': - truststate = N_("Trusted "); + /* L10N: Describes the trust state of a S/MIME key. + This translation must be padded with spaces to the right such that it + has the same length as the other translations. + + The translation strings which need to be padded are: + Expired, Invalid, Revoked, Trusted, Unverified, Verified, and Unknown. + */ + truststate = _("Trusted "); break; case 'u': - truststate = N_("Unverified"); + /* L10N: Describes the trust state of a S/MIME key. + This translation must be padded with spaces to the right such that it + has the same length as the other translations. + + The translation strings which need to be padded are: + Expired, Invalid, Revoked, Trusted, Unverified, Verified, and Unknown. + */ + truststate = _("Unverified"); break; case 'v': - truststate = N_("Verified "); + /* L10N: Describes the trust state of a S/MIME key. + This translation must be padded with spaces to the right such that it + has the same length as the other translations. + + The translation strings which need to be padded are: + Expired, Invalid, Revoked, Trusted, Unverified, Verified, and Unknown. + */ + truststate = _("Verified "); break; default: - truststate = N_("Unknown "); + /* L10N: Describes the trust state of a S/MIME key. + This translation must be padded with spaces to the right such that it + has the same length as the other translations. + + The translation strings which need to be padded are: + Expired, Invalid, Revoked, Trusted, Unverified, Verified, and Unknown. + */ + truststate = _("Unknown "); } snprintf(buf, buflen, " 0x%s %s %s %-35.35s %s", this->hash, smime_key_flags(this->flags), truststate, this->email, this->label);