From cc2150d212497195e2b8200973da32694ff9acff Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 20 Aug 2012 08:26:58 -0600 Subject: [PATCH] maint: prohibit translations in testsuite Nothing in the testsuite or examples directory should be translated, as it is not part of the normally installed binary. We already meet this rule, but enforcing it will make it easier to remember. Suggested by Daniel P. Berrange. * cfg.mk (sc_prohibit_useless_translation): Enhance rule. --- cfg.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cfg.mk b/cfg.mk index d2e54e374b..4cdfd1ba85 100644 --- a/cfg.mk +++ b/cfg.mk @@ -587,9 +587,14 @@ sc_prohibit_diagnostic_without_format: exit 1; } || : # The strings "" and "%s" should never be marked for translation. +# Files under tests/ and examples/ should not be translated. sc_prohibit_useless_translation: @prohibit='_\("(%s)?"\)' \ - halt='$(ME): found useless translation' \ + halt='found useless translation' \ + $(_sc_search_regexp) + @prohibit='\