From 81c65ee0b2961a96a7a3b2d072f6cb0ec6933a27 Mon Sep 17 00:00:00 2001 From: John Dennis Date: Mon, 16 Apr 2012 15:51:42 -0400 Subject: validate i18n strings when running "make lint" * Add bootstrap-autogen depdenency to lint target to force generated files to be created. * Add validate-src-strings to lint rules * Add validate-src-strings as dependency to lint targett * Remove obsolete test_lang frm test target * Add diagnostic message to validation command in i18n.py that outputs how many objects were scanned. Formerly it only output a message if there were errors. This made it impossible to distinguish an empty file from one with no errors. * While adding the validation counts it was discovered plurals had been omitted for some of the validation checks. Added the missing checks for plural forms. * Also distinguished between errors and warnings. Permit warnings to be emitted but do not fail the validatition unless actual errors were also detected. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index af50558c1..102559115 100644 --- a/Makefile +++ b/Makefile @@ -88,11 +88,12 @@ client-dirs: echo "Without those directories ipa-client-install will fail" ; \ fi -lint: +lint: bootstrap-autogen ./make-lint $(LINT_OPTIONS) + $(MAKE) -C install/po validate-src-strings + test: - $(MAKE) -C install/po test_lang ./make-testcert ./make-test -- cgit