summaryrefslogtreecommitdiff
path: root/mate-dictionary
diff options
context:
space:
mode:
Diffstat (limited to 'mate-dictionary')
-rw-r--r--mate-dictionary/help/Makefile.am8
1 files changed, 6 insertions, 2 deletions
diff --git a/mate-dictionary/help/Makefile.am b/mate-dictionary/help/Makefile.am
index 323a1b45..aa440193 100644
--- a/mate-dictionary/help/Makefile.am
+++ b/mate-dictionary/help/Makefile.am
@@ -3,8 +3,6 @@
HELP_ID = mate-dictionary
HELP_FILES = index.docbook legal.xml
-HELP_LINGUAS = ca cs da de el en_GB es eu fi fr it oc ru sv uk zh_CN
-
HELP_MEDIA = \
figures/mate-dictionary-add-source.png \
figures/mate-dictionary-applet.png \
@@ -14,3 +12,9 @@ HELP_MEDIA = \
figures/mate-dictionary-lookup.png \
figures/mate-dictionary-preferences-print.png \
figures/mate-dictionary-preferences-source.png
+
+# 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))) )