changeset: 6496:f7859d96006c user: Kevin McCarthy <ke...@8t8.us> date: Wed Sep 02 14:43:05 2015 -0700 link: http://dev.mutt.org/hg/mutt/rev/f7859d96006c
Flag translator comments using L10N. Add comment to devel-notes.txt documentation. changeset: 6497:8bbcfa2af7b6 user: Kevin McCarthy <ke...@8t8.us> date: Wed Sep 02 15:02:03 2015 -0700 link: http://dev.mutt.org/hg/mutt/rev/8bbcfa2af7b6 Add L10N messages for the pgp/smime send menus. This documents the 'f' "forget it" choice for translators. Thanks to Benno Schulenberg for pointing this out and for the original patch. diffs (97 lines): diff -r 2f0d516fc638 -r 8bbcfa2af7b6 alias.c --- a/alias.c Sun Aug 30 10:27:09 2015 -0700 +++ b/alias.c Wed Sep 02 15:02:03 2015 -0700 @@ -256,7 +256,7 @@ mutt_check_alias_name (tmp, buf, sizeof (buf)); retry_name: - /* add a new alias */ + /* L10N: prompt to add a new alias */ if (mutt_get_field (_("Alias as: "), buf, sizeof (buf), 0) != 0 || !buf[0]) return; diff -r 2f0d516fc638 -r 8bbcfa2af7b6 crypt-gpgme.c --- a/crypt-gpgme.c Sun Aug 30 10:27:09 2015 -0700 +++ b/crypt-gpgme.c Wed Sep 02 15:02:03 2015 -0700 @@ -4676,6 +4676,10 @@ if (is_smime) { prompt = _("S/MIME (s)ign, sign (a)s, (p)gp, (c)lear, or (o)ppenc mode off? "); + /* L10N: The 'f' is from "forget it", an old undocumented synonym of + * 'clear'. Please use a corresponding letter in your language. + * Alternatively, you may duplicate the letter 'c' is translated to. + * This comment also applies to the five following letter sequences. */ letters = _("sapfco"); choices = "SapFCo"; } diff -r 2f0d516fc638 -r 8bbcfa2af7b6 curs_main.c --- a/curs_main.c Sun Aug 30 10:27:09 2015 -0700 +++ b/curs_main.c Wed Sep 02 15:02:03 2015 -0700 @@ -903,7 +903,7 @@ else { char buf[STRING]; - /* i18n: ask for a limit to apply */ + /* L10N: ask for a limit to apply */ snprintf (buf, sizeof(buf), _("Limit: %s"),Context->pattern); mutt_message ("%s", buf); } diff -r 2f0d516fc638 -r 8bbcfa2af7b6 doc/devel-notes.txt --- a/doc/devel-notes.txt Sun Aug 30 10:27:09 2015 -0700 +++ b/doc/devel-notes.txt Wed Sep 02 15:02:03 2015 -0700 @@ -196,6 +196,10 @@ from the times when this was an iso-8859-1 source code tree, please feel free to fix them. +- prefix translator comments with L10N: + /* L10N: this is a translator comment */ + puts(_("String to translate)); + Documentation ------------- diff -r 2f0d516fc638 -r 8bbcfa2af7b6 pgp.c --- a/pgp.c Sun Aug 30 10:27:09 2015 -0700 +++ b/pgp.c Wed Sep 02 15:02:03 2015 -0700 @@ -1682,6 +1682,10 @@ _("PGP (s)ign, sign (a)s, %s format, (c)lear, or (o)ppenc mode off? "), (msg->security & INLINE) ? _("PGP/M(i)ME") : _("(i)nline")); prompt = promptbuf; + /* L10N: The 'f' is from "forget it", an old undocumented synonym of + * 'clear'. Please use a corresponding letter in your language. + * Alternatively, you may duplicate the letter 'c' is translated to. + * This comment also applies to the five following letter sequences. */ letters = _("safcoi"); choices = "SaFCoi"; } diff -r 2f0d516fc638 -r 8bbcfa2af7b6 po/Makefile.in.in --- a/po/Makefile.in.in Sun Aug 30 10:27:09 2015 -0700 +++ b/po/Makefile.in.in Wed Sep 02 15:02:03 2015 -0700 @@ -91,11 +91,11 @@ $(PACKAGE).pot: $(POTFILES) $(BUILT_POTFILES) $(srcdir)/POTFILES.in rm -f $(PACKAGE).pot $(PACKAGE).po $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \ - --add-comments --keyword=_ --keyword=N_ \ + --add-comments=L10N --keyword=_ --keyword=N_ \ --files-from=$(srcdir)/POTFILES.in \ && \ $(XGETTEXT) --default-domain=$(PACKAGE) \ - --add-comments --keyword=_ --keyword=N_ \ + --add-comments=L10N --keyword=_ --keyword=N_ \ --join $(BUILT_POTFILES) \ && test ! -f $(PACKAGE).po \ || ( rm -f $(PACKAGE).pot \ diff -r 2f0d516fc638 -r 8bbcfa2af7b6 smime.c --- a/smime.c Sun Aug 30 10:27:09 2015 -0700 +++ b/smime.c Wed Sep 02 15:02:03 2015 -0700 @@ -2052,6 +2052,10 @@ if (option (OPTCRYPTOPPORTUNISTICENCRYPT) && (msg->security & OPPENCRYPT)) { prompt = _("S/MIME (s)ign, encrypt (w)ith, sign (a)s, (c)lear, or (o)ppenc mode off? "); + /* L10N: The 'f' is from "forget it", an old undocumented synonym of + * 'clear'. Please use a corresponding letter in your language. + * Alternatively, you may duplicate the letter 'c' is translated to. + * This comment also applies to the two following letter sequences. */ letters = _("swafco"); choices = "SwaFCo"; }