From: Michael Tremer Date: Sun, 18 Nov 2012 21:32:15 +0000 (+0100) Subject: Setup transifex configuration. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc743d741f0eff283748cfadc995bdf859843445;p=pbs.git Setup transifex configuration. --- diff --git a/.tx/config b/.tx/config new file mode 100644 index 00000000..8aedb400 --- /dev/null +++ b/.tx/config @@ -0,0 +1,7 @@ +[main] +host = https://www.transifex.net + +[ipfire.pbs] +file_filter = data/translations//LC_MESSAGES/pakfire.po +source_file = data/translations/pakfire.pot +source_lang = en diff --git a/Makefile b/Makefile index b975ccd1..c08821e2 100644 --- 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