summaryrefslogtreecommitdiff
path: root/help
diff options
context:
space:
mode:
authorrbuj <[email protected]>2018-10-04 18:08:14 +0200
committerraveit65 <[email protected]>2018-10-07 09:09:10 +0200
commit4dfae40e238b0946a40bec1a55b654e44f86f26b (patch)
tree2d7c2e407513eb41620eeb758e7cceb8e55a3ba3 /help
parent975f1456c52e40d28ceb14c81cedff15c63f986f (diff)
downloadmate-power-manager-4dfae40e238b0946a40bec1a55b654e44f86f26b.tar.bz2
mate-power-manager-4dfae40e238b0946a40bec1a55b654e44f86f26b.tar.xz
Use make functions for HELP_LINGUAS
Diffstat (limited to 'help')
-rw-r--r--help/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/help/Makefile.am b/help/Makefile.am
index 863f554..abba156 100644
--- a/help/Makefile.am
+++ b/help/Makefile.am
@@ -17,4 +17,8 @@ HELP_MEDIA = \
figures/gpm-unplugged.png \
figures/gs-prefs.png
-HELP_LINGUAS = ca de el en_GB es eu fi fr hu it oc pa ru 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))) )