r3897 - packages/trunk/hex-a-hop/debian/i18n

Jens Seidel jseidel-guest at alioth.debian.org
Mon Aug 27 23:09:53 UTC 2007


Author: jseidel-guest
Date: 2007-08-27 23:09:53 +0000 (Mon, 27 Aug 2007)
New Revision: 3897

Modified:
   packages/trunk/hex-a-hop/debian/i18n/Makefile
Log:
Avoid using po4a warnings on plural forms, see bug #439842 for details


Modified: packages/trunk/hex-a-hop/debian/i18n/Makefile
===================================================================
--- packages/trunk/hex-a-hop/debian/i18n/Makefile	2007-08-27 22:35:29 UTC (rev 3896)
+++ packages/trunk/hex-a-hop/debian/i18n/Makefile	2007-08-27 23:09:53 UTC (rev 3897)
@@ -57,8 +57,12 @@
 		echo Building \"$$i\" translation; \
 		msgfmt $$i.po -o $$i.mo; \
 		addendum=""; test -r ../hex-a-hop.$$i.add && addendum="-a ../hex-a-hop.$$i.add"; \
-		po4a-translate -f man -m ../hex-a-hop.6 -p $$i.po $$addendum -l ../hex-a-hop.$$i.6; \
+    sed -n '/^msgid_plural / !p' $$i.po | \
+		sed -n '/^msgstr\[[1-9]\] / !p' | \
+		sed 's/^msgstr\[0\] /msgstr /' > plural_forms_stripped.po; \
+		po4a-translate -f man -m ../hex-a-hop.6 -p plural_forms_stripped.po $$addendum -l ../hex-a-hop.$$i.6; \
 	done
+	rm -f plural_forms_stripped.po # see bug #439842
 	touch build-stamp
 
 clean:




More information about the Pkg-games-commits mailing list