[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
www/server/gnun GNUmakefile
From: |
Yavor Doganov |
Subject: |
www/server/gnun GNUmakefile |
Date: |
Tue, 23 Sep 2008 18:32:51 +0000 |
CVSROOT: /web/www
Module name: www
Changes by: Yavor Doganov <yavor> 08/09/23 18:32:50
Modified files:
server/gnun : GNUmakefile
Log message:
($(subst /po/,/,$(1).html)): Update the PO file with
`msgmerge' unconditionally to handle the scenario when a
translator commits a translation based on an old POT.
CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/server/gnun/GNUmakefile?cvsroot=www&r1=1.8&r2=1.9
Patches:
Index: GNUmakefile
===================================================================
RCS file: /web/www/www/server/gnun/GNUmakefile,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- GNUmakefile 22 Aug 2008 18:31:36 -0000 1.8
+++ GNUmakefile 23 Sep 2008 18:32:48 -0000 1.9
@@ -485,6 +485,13 @@
endif
$$(addfile)
PO=$(1).po ; $(check-po) || (touch $$$$PO ; exit 1)
+# If a translator commits a PO file based on an old version of the
+# POT, it is not msgmerge'd as `make' considers the corresponding
+# `$(1).po' target up-to-date. As a result, the generated HTML
+# translation has English strings (but no fuzzy strings in the PO)
+# since there's no match between msgid/msgstr. Invoke msgmerge
+# unconditionally to cope with that (valid) scenario.
+ $(MSGMERGE) --update $(1).po $(basename $(1)).pot
# This is needed for only a few articles, but as it is harmless there
# is no real need to determine them and run the command conditionally.
$$(fixperm)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- www/server/gnun GNUmakefile,
Yavor Doganov <=