From 3602356622b867d5b523aae1e4a24df6d6798c4a Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 30 Mar 2011 16:33:19 +0100 Subject: [PATCH] build: Add helpers for transifex --- .tx/config | 8 ++++++++ Makefile.am | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 .tx/config diff --git a/.tx/config b/.tx/config new file mode 100644 index 0000000..cd9de20 --- /dev/null +++ b/.tx/config @@ -0,0 +1,8 @@ +[main] +host = https://www.transifex.net + +[fprintd.fprintd-po-fprintd-pot] +file_filter = po/.po +source_file = po/fprintd.pot +source_lang = en + diff --git a/Makefile.am b/Makefile.am index 2f76d2f..ea1d248 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,8 +2,13 @@ AUTOMAKE_OPTIONS = dist-bzip2 SUBDIRS = src data tests pam doc po EXTRA_DIST = TODO intltool-extract.in intltool-merge.in intltool-update.in +all: check create-pot + check: check-translations +create-pot: + $(MAKE) -C po fprintd.pot + check-translations: @for i in $(top_srcdir)/po/*.po ; do \ if ! grep -q `basename $$i | sed 's,.po,,'` $(top_srcdir)/po/LINGUAS ; then \ @@ -13,3 +18,7 @@ check-translations: exit 1; \ fi; \ done; + +update-translations: create-pot check-translations + @tx pull --all --force --skip + @tx push --source