]> pere.pagekite.me Git - text-relativity-of-wrong-asimov.git/blobdiff - Makefile
Translated a bit more, from Transifex.
[text-relativity-of-wrong-asimov.git] / Makefile
index 736ae5f75efb4c7ff838e6c40ce08edd7e2440dc..79aef300d6a84893fea1e0b701351568a0dc1aa7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,15 @@
 all: The_Relativity_of_Wrong.nb.txt
 
 The_Relativity_of_Wrong.pot: The_Relativity_of_Wrong.txt
 all: The_Relativity_of_Wrong.nb.txt
 
 The_Relativity_of_Wrong.pot: The_Relativity_of_Wrong.txt
-       po4a-gettextize -f text -m The_Relativity_of_Wrong.txt > $@.new && mv $@.new $@
+       po4a-gettextize -f text -m The_Relativity_of_Wrong.txt \
+       -M UTF-8 -L UTF-8 --package-name "Relativitiy of Wrong" \
+       | sed 's/CHARSET/UTF-8/' > $@.new && mv $@.new $@
 
 
-The_Relativity_of_Wrong.nb.txt: The_Relativity_of_Wrong.nb.po
+The_Relativity_of_Wrong.nb.po: The_Relativity_of_Wrong.pot
+       po4a --no-translations --msgmerge-opt --no-location po4a.cfg
+
+The_Relativity_of_Wrong.nb.txt: The_Relativity_of_Wrong.nb.po The_Relativity_of_Wrong.txt
        po4a --translate-only The_Relativity_of_Wrong.nb.txt po4a.cfg 
        po4a --translate-only The_Relativity_of_Wrong.nb.txt po4a.cfg 
+
+stats:
+       for f in *.po; do printf "$$f "; msgfmt --output /dev/null --statistics $$f; done