[libvirt] [PATCH 3/5] po: add rules for integration with zanata

Daniel P. Berrangé posted 5 patches 7 years, 1 month ago
Only 4 patches received!
[libvirt] [PATCH 3/5] po: add rules for integration with zanata
Posted by Daniel P. Berrangé 7 years, 1 month ago
Add rules to handle pushing libvirt.pot to zanata, and refreshing .po
files with new content from zanata.

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

diff --git a/po/Makefile.am b/po/Makefile.am
index 95e5ab72bf..973ecb42e5 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 $(srcdir)/$@-t $(XGETTEXT_ARGS) \
 	  --files-from=$(abs_srcdir)/POTFILES
-- 
2.14.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 3/5] po: add rules for integration with zanata
Posted by Ján Tomko 7 years ago
On Thu, Apr 12, 2018 at 02:28:20PM +0100, Daniel P. Berrangé wrote:
>Add rules to handle pushing libvirt.pot to zanata, and refreshing .po
>files with new content from zanata.
>
>Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
>---
> po/Makefile.am | 8 ++++++++
> 1 file changed, 8 insertions(+)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list