[libvirt] [glib PATCH v2 03/15] po: add rules for integration with zanata

Daniel P. Berrangé berrange at redhat.com
Wed Feb 20 17:49:06 UTC 2019


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

Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 po/Makefile.am | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/po/Makefile.am b/po/Makefile.am
index f2818c7..d66aec7 100644
--- a/po/Makefile.am
+++ b/po/Makefile.am
@@ -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 $@-t $(XGETTEXT_ARGS) \
 	  --files-from=$(abs_srcdir)/POTFILES
-- 
2.20.1




More information about the libvir-list mailing list