summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2018-10-06 18:12:10 +0200
committerraveit65 <[email protected]>2018-10-08 10:16:17 +0200
commit05fd8e60d18bc44ae55cf11a1ce8de4a720ecd55 (patch)
treedae6625b9c899b664b4c0f7f7c5353f46b2e1a55
parent0fc282c3013162720547fede4537b72c56502494 (diff)
downloadmate-system-monitor-05fd8e60d18bc44ae55cf11a1ce8de4a720ecd55.tar.bz2
mate-system-monitor-05fd8e60d18bc44ae55cf11a1ce8de4a720ecd55.tar.xz
Use make functions for HELP_LINGUAS
-rw-r--r--help/Makefile.am7
1 files changed, 5 insertions, 2 deletions
diff --git a/help/Makefile.am b/help/Makefile.am
index 49c975b..a15b04f 100644
--- a/help/Makefile.am
+++ b/help/Makefile.am
@@ -16,5 +16,8 @@ HELP_MEDIA = figures/addColumn.png \
figures/systemMonitor.png \
figures/viewMenu.png
-HELP_LINGUAS = ar bg ca cs da de el es fr oc pa sv 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))) )