[Libguestfs] [v2v PATCH 01/14] po: turn language list into LINGUAS file

Pino Toscano ptoscano at redhat.com
Thu Aug 13 12:10:42 UTC 2020


Use a LINGUAS file with the list of available translations instead of
defining them in a make variable. This way Weblate will be able to
update the list using an available addon.
---
 po/LINGUAS     | 22 ++++++++++++++++++++++
 po/Makefile.am |  3 ++-
 2 files changed, 24 insertions(+), 1 deletion(-)
 create mode 100644 po/LINGUAS

diff --git a/po/LINGUAS b/po/LINGUAS
new file mode 100644
index 00000000..69604489
--- /dev/null
+++ b/po/LINGUAS
@@ -0,0 +1,22 @@
+cs
+de
+en_GB
+es
+eu
+fr
+gu
+hi
+ja
+kn
+ml
+mr
+nl
+or
+pa
+pl
+ru
+ta
+te
+tg
+uk
+zh_CN
diff --git a/po/Makefile.am b/po/Makefile.am
index bfef889c..b4c2d3ff 100644
--- a/po/Makefile.am
+++ b/po/Makefile.am
@@ -23,13 +23,14 @@ MSGID_BUGS_ADDRESS = https://bugzilla.redhat.com/enter_bug.cgi?component=libgues
 
 # Languages.
 # Don't use LINGUAS (uppercase) as Gentoo defines it (RHBZ#804464).
-linguas     := cs de en_GB es eu fr gu hi ja kn ml mr nl or pa pl ru ta te tg uk zh_CN
+linguas     := $(shell cat $(srcdir)/LINGUAS)
 
 POTFILES_ML := $(shell $(SED) 's,^,$(top_srcdir)/,' $(srcdir)/POTFILES-ml)
 POFILES     := $(linguas:%=%.po)
 GMOFILES    := $(linguas:%=%.gmo)
 
 EXTRA_DIST = \
+	LINGUAS \
 	POTFILES-ml \
 	$(DOMAIN).pot \
 	$(POFILES) \
-- 
2.26.2




More information about the Libguestfs mailing list