]> git.ipfire.org Git - pbs.git/commitdiff
Setup transifex configuration.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 18 Nov 2012 21:32:15 +0000 (22:32 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 18 Nov 2012 21:32:15 +0000 (22:32 +0100)
.tx/config [new file with mode: 0644]
Makefile

diff --git a/.tx/config b/.tx/config
new file mode 100644 (file)
index 0000000..8aedb40
--- /dev/null
@@ -0,0 +1,7 @@
+[main]
+host = https://www.transifex.net
+
+[ipfire.pbs]
+file_filter = data/translations/<lang>/LC_MESSAGES/pakfire.po
+source_file = data/translations/pakfire.pot
+source_lang = en
index b975ccd1721d68c7048b73c3d47ed2c87eb0c76d..c08821e2bc765943a4b802fa98eed6ba9424ea18 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,13 @@
 
 PO_PATH = data/translations
 POTFILE = $(PO_PATH)/pakfire.pot
-POFILES = $(wildcard $(PO_PATH)/*/LC_MESSAGES/*.po)
+POFILES = $(wildcard $(PO_PATH)/*/LC_MESSAGES/pakfire.po)
 
 ALL_FILES = $(shell find . /usr/lib*/python*/site-packages/tornado -name "*.py" -or -name "*.html")
 
+.PHONY: all
+all: po
+
 .PHONY: pot
 pot: $(POTFILE)
 
@@ -15,10 +18,14 @@ $(POTFILE): $(ALL_FILES)
 .PHONY: po
 po: $(POTFILE) $(patsubst %.po, %.mo, $(POFILES))
 
+# Merge the POTFILE.
 %.po: $(POTFILE)
-       # Merge the POTFILE.
        msgmerge $@ $(POTFILE) -o $@
 
+# Compile the translations.
 %.mo: %.po
-       # Compile the translations.
        msgfmt $< -o $@
+
+.PHONY: po-update
+po-update:
+       tx pull --all