summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-11-15 14:35:46 +0100
committerraveit65 <[email protected]>2018-11-15 15:56:54 +0100
commita014c7a4b3a1fe76e479755252c44c1624e0e302 (patch)
treeb0c28b1690672d3d82ef94add658df8c1b0f0a52
parentcdaf08f254981d920918fcfdb1aa356dfdf66306 (diff)
downloadmate-panel-a014c7a4b3a1fe76e479755252c44c1624e0e302.tar.bz2
mate-panel-a014c7a4b3a1fe76e479755252c44c1624e0e302.tar.xz
Use make functions for HELP_LINGUAS
-rw-r--r--help/mate-clock/Makefile.am6
-rw-r--r--help/mate-fish/Makefile.am6
2 files changed, 10 insertions, 2 deletions
diff --git a/help/mate-clock/Makefile.am b/help/mate-clock/Makefile.am
index 18b35d4c..7c652597 100644
--- a/help/mate-clock/Makefile.am
+++ b/help/mate-clock/Makefile.am
@@ -8,6 +8,10 @@ HELP_FILES = \
HELP_MEDIA = figures/clock_applet.png
-HELP_LINGUAS = ar ca cs da de el en_GB es eu fi fr it ja ko nl oc pa pt pt_BR ru sr sv th uk zh_CN zh_HK zh_TW
+# Add linguas to be ignored, e.g. IGNORE_HELP_LINGUAS = ca de es fr
+IGNORE_HELP_LINGUAS =
+HELP_LINGUAS = $(if $(IGNORE_HELP_LINGUAS), \
+ $(filter-out $(IGNORE_HELP_LINGUAS),$(subst /,,$(dir $(wildcard */*.po)))), \
+ $(subst /,,$(dir $(wildcard */*.po))) )
-include $(top_srcdir)/git.mk
diff --git a/help/mate-fish/Makefile.am b/help/mate-fish/Makefile.am
index 4264e9f2..fce56d14 100644
--- a/help/mate-fish/Makefile.am
+++ b/help/mate-fish/Makefile.am
@@ -8,6 +8,10 @@ HELP_FILES = \
HELP_MEDIA = figures/fish_applet.png
-HELP_LINGUAS = ca cs de el en_GB es eu fi fr it ja ko oc ru sv th uk zh_CN
+# Add linguas to be ignored, e.g. IGNORE_HELP_LINGUAS = ca de es fr
+IGNORE_HELP_LINGUAS =
+HELP_LINGUAS = $(if $(IGNORE_HELP_LINGUAS), \
+ $(filter-out $(IGNORE_HELP_LINGUAS),$(subst /,,$(dir $(wildcard */*.po)))), \
+ $(subst /,,$(dir $(wildcard */*.po))) )
-include $(top_srcdir)/git.mk