From 45e7a4180d7a2b5ccf9adc3c1db012a15d212b9c Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Wed, 2 Sep 2015 14:43:05 -0700 Subject: [PATCH] Flag translator comments using L10N. Add comment to devel-notes.txt documentation. --- alias.c | 2 +- curs_main.c | 2 +- doc/devel-notes.txt | 4 ++++ po/Makefile.in.in | 4 ++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/alias.c b/alias.c index a8fa61f75..986f44765 100644 --- a/alias.c +++ b/alias.c @@ -256,7 +256,7 @@ void mutt_create_alias (ENVELOPE *cur, ADDRESS *iadr) 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 --git a/curs_main.c b/curs_main.c index 855310245..d20028efa 100644 --- a/curs_main.c +++ b/curs_main.c @@ -903,7 +903,7 @@ int mutt_index_menu (void) 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 --git a/doc/devel-notes.txt b/doc/devel-notes.txt index 82b1e0b18..4eede0fe5 100644 --- a/doc/devel-notes.txt +++ b/doc/devel-notes.txt @@ -196,6 +196,10 @@ Style Guide 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 --git a/po/Makefile.in.in b/po/Makefile.in.in index c1b0b2c7a..4b6727c0a 100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in @@ -91,11 +91,11 @@ $(top_builddir)/keymap_alldefs.h: $(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 \ -- 2.50.1