Package: adduser
Version: 3.67.1
Severity: normal
Tags: patch l10n

Hi,

The translations in adduser are currently out of date:
$ msgfmt --statistics fr.po 
80 translated messages.
$ msgfmt --statistics adduser.pot
0 translated messages, 93 untranslated messages.

It is due to the following situation:
day 0: a translator start a new translation based on the current .pot
       file
day 1: .pot file is updated
day 2: translation of the previous .pot is included, but seems to be
       newer than the updated .pot file (based on timestamps). With the
       current makefile, the po file is not merged with the new .pot.

The attached patch for po/Makefile do the following things:
* Fix this problem
* Use a wildcard for the LANG variable to be sure to include every
  language (for example, eu.po has been forgotten)
* remove "rm adduser.pot" from the clean rule. Even if this file is
  automatically generated, it is very useful for the l10n infrastructure
  to have it included in the source package (most of l10n scripts parse
  the content of the source package and extract the .pot files to know
  what must be translated).

If you want more explanation about what this diff does, do not hesitate
to ask me.

Regards,

-- 
Thomas Huriaux
--- Makefile.orig       2005-10-02 19:47:06.000000000 +0200
+++ Makefile    2005-10-03 10:23:23.000000000 +0200
@@ -9,15 +9,16 @@
 %.mo: %.po
        $(MSGFMT) -o $@ $<
 
-%.pox: %.po adduser.pot
-       $(MSGMERGE) -o $@ $^
-
-LANG = ca cs da de es fr ja ko nb nl pl pt_BR ru uk zh_CN
+PO = $(wildcard *.po)
+LANG = $(basename $(PO))
 MO = $(addsuffix .mo,$(LANG))
-POX = $(addsuffix .pox,$(LANG))
 
-all: $(MO)
-update: $(POX)
+all: update $(MO)
+update: adduser.pot
+       [EMAIL PROTECTED] po in $(PO); do \
+       echo -n "Updating $$po"; \
+       $(MSGMERGE) -U $$po adduser.pot; \
+       done;
 
 adduser.pot: ../adduser ../deluser ../AdduserCommon.pm
        $(XGETTEXT) -L Perl -k_ -o $@ $?
@@ -30,4 +31,6 @@
        done
 
 clean:
-       $(RM) $(MO) *~ adduser.pot *.pox
+       $(RM) $(MO) *~
+
+.PHONY: update

Attachment: signature.asc
Description: Digital signature

Reply via email to