[Libguestfs] [PATCH 2/9] po: remove rules for pot/po update

Pino Toscano ptoscano at redhat.com
Wed Aug 12 13:50:58 UTC 2020


Weblate will handle the update of the po files from the translation
catalog, so avoid stomping on its feet by doing the same.

The translation catalog will be regenerated manually periodically.
---
 po/Makefile.am | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/po/Makefile.am b/po/Makefile.am
index 8c1d6dd60..2c7eeb5da 100644
--- a/po/Makefile.am
+++ b/po/Makefile.am
@@ -40,17 +40,6 @@ EXTRA_DIST = \
 
 if HAVE_GNU_GETTEXT
 
-dist-hook:
-	$(MAKE) update-po
-	cp *.po *.gmo $(distdir)/
-
-update-po:
-	$(MAKE) $(DOMAIN).pot
-	$(MAKE) $(POFILES)
-	$(MAKE) update-gmo
-
-update-gmo: Makefile $(GMOFILES)
-
 XGETTEXT_ARGS = \
 	--default-domain=$(DOMAIN) \
 	--from-code=utf-8 \
@@ -87,9 +76,6 @@ endif
 	  --files-from=$(abs_srcdir)/POTFILES-pl
 	mv $@-t $@
 
-%.po: $(DOMAIN).pot
-	cd $(srcdir) && $(MSGMERGE) -N --update $@ $(DOMAIN).pot
-
 .po.gmo:
 	rm -f $@ $@-t
 	$(MSGFMT) -c -o $@-t $(srcdir)/$<
@@ -109,9 +95,4 @@ install-data-hook: $(GMOFILES)
 
 .PRECIOUS: $(DOMAIN).pot $(POFILES)
 
-else
-
-# If no GNU gettext, 'make update-po' is a dummy rule.
-update-po:
-
 endif
-- 
2.26.2




More information about the Libguestfs mailing list