[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preparation for wider testing

From: Yavor Doganov
Subject: Re: Preparation for wider testing
Date: Tue, 04 Mar 2008 18:24:51 +0200

On вт, 2008-02-12 at 23:35 +0200, Yavor Doganov wrote:
> b) "Report" target.  It is essential to know the pending tasks.  A
> team should figure out what articles need updating with only one
> command and no extra effort.

Here is a simple and dirty solution.  We *must* extend it (e.g. to print
the number of all translations, or all statistics) and improve it with
time, but as a beginning it looks OK to me.

.PHONY: report
ifndef TEAM
$(error Please specify a language code, for example TEAM=fr)
ifneq ($(TEAM),$(findstring $(TEAM),$(sort $(GENERIC_LINGUAS))))
$(error There are no translations for language "$(TEAM)")
        @cd $(rootdir) ; find -name '*.$(TEAM).po' -printf "%p: " \
          -exec msgfmt --statistics -o /dev/null '{}' \; 2>&1 | sort \
          | egrep '(fuzzy|untranslated)' \
          || echo "All translations seem to be up-to-date."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]