[po] move transifex scripts to Makefile, add "validate" Makefile target

This commit is contained in:
Fabio Erculiani
2012-04-03 16:03:06 +02:00
parent 2459f6ea1c
commit cd299d0495
4 changed files with 16 additions and 8 deletions
+14 -2
View File
@@ -22,8 +22,20 @@ POTFILES.in:
$(NLSPACKAGE).pot: $(POTFILES) POTFILES.in
intltool-update --gettext-package=$(NLSPACKAGE) --pot
update-po: Makefile $(NLSPACKAGE).pot
./transifex_pull.sh
transifex-pull:
tx pull -a -f
transifex-push:
tx push -s
validate:
catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
lang=`basename $$cat .po`; \
msgfmt -c $$lang.po -o /dev/null || exit 1; \
done
update-po: Makefile $(NLSPACKAGE).pot transifex-pull
refresh-po: Makefile POTFILES.in
catalogs='$(CATALOGS)'; \
+2 -2
View File
@@ -9,10 +9,10 @@ UPLOAD
and pushed using:
$ sh transifex_push.sh # requires transifex-client
$ sh transifex-push # requires transifex-client
DOWNLOAD
========
.po files are downloaded via:
$ sh transifex_pull.sh # requires transifex-client
$ sh transifex-pull # requires transifex-client
-2
View File
@@ -1,2 +0,0 @@
#!/bin/sh
tx pull -a -f
-2
View File
@@ -1,2 +0,0 @@
#!/bin/sh
tx push -s