]> pere.pagekite.me Git - text-relativity-of-wrong-asimov.git/commitdiff
Make sure POT file is flagged as UTF-8.
authorPetter Reinholdtsen <pere@hungry.com>
Thu, 28 Jul 2016 08:13:00 +0000 (10:13 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Thu, 28 Jul 2016 08:13:00 +0000 (10:13 +0200)
Makefile

index 5fcc20f7b27878f57e46d11dd3611ffcd50ce1b4..79aef300d6a84893fea1e0b701351568a0dc1aa7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
 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.po: The_Relativity_of_Wrong.pot
        po4a --no-translations --msgmerge-opt --no-location po4a.cfg
 
 The_Relativity_of_Wrong.nb.po: The_Relativity_of_Wrong.pot
        po4a --no-translations --msgmerge-opt --no-location po4a.cfg