[po] move transifex scripts to Makefile, add "validate" Makefile target
This commit is contained in:
+14
-2
@@ -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)'; \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
tx pull -a -f
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
tx push -s
|
||||
Reference in New Issue
Block a user