--- /dev/null
+[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
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)
.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