po: add rules for integration with zanata

Add rules to handle pushing libvirt.pot to zanata, and refreshing .po
files with new content from zanata.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2018-04-04 16:41:08 +01:00
parent bdfdec31bc
commit 4aaf5964dc

View File

@ -60,6 +60,14 @@ update-po: $(POFILES)
update-gmo: $(GMOFILES)
push-pot: $(POTFILE)
zanata push --push-type=source
pull-po: $(POTFILE)
zanata pull --create-skeletons
$(MAKE) update-po
$(MAKE) update-gmo
$(POTFILE): POTFILES $(POTFILE_DEPS)
$(XGETTEXT) -o $(srcdir)/$@-t $(XGETTEXT_ARGS) \
--files-from=$(abs_srcdir)/POTFILES