summaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-06-07 18:54:11 +0000
committerThierry Vignaud <tv@mandriva.org>2007-06-07 18:54:11 +0000
commit534f2f4437093bd78411126ef45de41fc6b93bf3 (patch)
tree1a9c1e259e6f2495ebcacf3cbd8cb7d3fdaaac2a /po/Makefile
parent92072c3be58f5c77ff0fecdaf6617fe6fa4120e1 (diff)
downloadbootloader-theme-534f2f4437093bd78411126ef45de41fc6b93bf3.tar
bootloader-theme-534f2f4437093bd78411126ef45de41fc6b93bf3.tar.gz
bootloader-theme-534f2f4437093bd78411126ef45de41fc6b93bf3.tar.bz2
bootloader-theme-534f2f4437093bd78411126ef45de41fc6b93bf3.tar.xz
bootloader-theme-534f2f4437093bd78411126ef45de41fc6b93bf3.zip
reimport my latest checkout
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/po/Makefile b/po/Makefile
new file mode 100644
index 0000000..d4a06ff
--- /dev/null
+++ b/po/Makefile
@@ -0,0 +1,22 @@
+POFILES = $(wildcard *.po)
+TEXTS = $(addsuffix .tr,$(basename $(wildcard *.po)))
+
+PRODUCT ?= "SUSE Linux 10.1"
+
+all: text.inc $(TEXTS)
+
+# the po2txt script requires that the po file has no fuzzy entries
+# and the same comments as the pot file; so we do a msgfmt/msgunfmt/msgmerge
+# to ensure that
+%.tr: %.po text.inc
+ msgfmt $< -o - | msgunfmt | \
+ msgmerge --no-fuzzy-matching - bootloader.pot > tmpfile.po && \
+ bin/po2txt --product=$(PRODUCT) tmpfile.po >$@
+ echo rm -f tmpfile.po
+
+# en.tr uses msgids from bootloader.pot
+en.tr text.inc: bootloader.pot
+ bin/po2txt --product=$(PRODUCT) $< >en.tr
+
+clean:
+ rm -f text.inc *.tr *~