mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
build: Add helpers for transifex
This commit is contained in:
8
.tx/config
Normal file
8
.tx/config
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[main]
|
||||||
|
host = https://www.transifex.net
|
||||||
|
|
||||||
|
[fprintd.fprintd-po-fprintd-pot]
|
||||||
|
file_filter = po/<lang>.po
|
||||||
|
source_file = po/fprintd.pot
|
||||||
|
source_lang = en
|
||||||
|
|
||||||
@ -2,8 +2,13 @@ AUTOMAKE_OPTIONS = dist-bzip2
|
|||||||
SUBDIRS = src data tests pam doc po
|
SUBDIRS = src data tests pam doc po
|
||||||
EXTRA_DIST = TODO intltool-extract.in intltool-merge.in intltool-update.in
|
EXTRA_DIST = TODO intltool-extract.in intltool-merge.in intltool-update.in
|
||||||
|
|
||||||
|
all: check create-pot
|
||||||
|
|
||||||
check: check-translations
|
check: check-translations
|
||||||
|
|
||||||
|
create-pot:
|
||||||
|
$(MAKE) -C po fprintd.pot
|
||||||
|
|
||||||
check-translations:
|
check-translations:
|
||||||
@for i in $(top_srcdir)/po/*.po ; do \
|
@for i in $(top_srcdir)/po/*.po ; do \
|
||||||
if ! grep -q `basename $$i | sed 's,.po,,'` $(top_srcdir)/po/LINGUAS ; then \
|
if ! grep -q `basename $$i | sed 's,.po,,'` $(top_srcdir)/po/LINGUAS ; then \
|
||||||
@ -13,3 +18,7 @@ check-translations:
|
|||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
done;
|
done;
|
||||||
|
|
||||||
|
update-translations: create-pot check-translations
|
||||||
|
@tx pull --all --force --skip
|
||||||
|
@tx push --source
|
||||||
|
|||||||
Reference in New Issue
Block a user