From 33b95ee0afed91f941fccd71252c8b2e72ae4544 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 4 Jun 2011 19:56:58 +0200 Subject: [PATCH] maint.mk: sc_unmarked_diagnostics: don't hard-code "error" * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the function name, "error". (_gl_translatable_diag_func_re): New configurable variable. --- ChangeLog | 7 +++++++ top/maint.mk | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b38b724ce..cdc4f06ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-06-04 Jim Meyering + + maint.mk: sc_unmarked_diagnostics: don't hard-code "error" + * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the + function name, "error". + (_gl_translatable_diag_func_re): New configurable variable. + 2011-06-04 Bruno Haible getopt: Avoid gcc warning. diff --git a/top/maint.mk b/top/maint.mk index c55571cb4..6f6b8be39 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -684,11 +684,16 @@ sc_two_space_separator_in_usage: halt='help2man requires at least two spaces between an option and its description'\ $(_sc_search_regexp) +# A regexp matching function names like "error" that may be used +# to emit translatable messages. +_gl_translatable_diag_func_re ?= error + # Look for diagnostics that aren't marked for translation. # This won't find any for which error's format string is on a separate line. sc_unmarked_diagnostics: @grep -nE \ - '\&2; \ exit 1; } || : -- 2.11.0