Skip to content

Commit 8c38ae6

Browse files
rbujraveit65
authored and
raveit65
committed
Use make functions for HELP_LINGUAS
1 parent 53735a4 commit 8c38ae6

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

baobab/help/Makefile.am

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
HELP_ID = mate-disk-usage-analyzer
44
HELP_FILES = index.docbook legal.xml
55

6-
HELP_LINGUAS = ca cs da de el en_GB es eu fi fr it oc pl ru sv uk zh_CN zh_HK zh_TW
7-
86
HELP_MEDIA = \
97
figures/baobab_fullscan.png \
108
figures/baobab_prefs.png \
@@ -13,3 +11,9 @@ HELP_MEDIA = \
1311
figures/baobab_ringschart2.png \
1412
figures/baobab_treemaps.png \
1513
figures/baobab_window.png
14+
15+
# Add linguas to be ignored, e.g. IGNORE_HELP_LINGUAS = ca de es fr
16+
IGNORE_HELP_LINGUAS =
17+
HELP_LINGUAS = $(if $(IGNORE_HELP_LINGUAS), \
18+
$(filter-out $(IGNORE_HELP_LINGUAS),$(subst /,,$(dir $(wildcard */*.po)))), \
19+
$(subst /,,$(dir $(wildcard */*.po))) )

gsearchtool/help/Makefile.am

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
HELP_ID = mate-search-tool
44
HELP_FILES = index.docbook legal.xml
55

6-
HELP_LINGUAS = ca cs de el en_GB es eu fi fr it ko oc ru sv uk zh_CN
7-
86
HELP_MEDIA = figures/mate-search-tool_window.png
7+
8+
# Add linguas to be ignored, e.g. IGNORE_HELP_LINGUAS = ca de es fr
9+
IGNORE_HELP_LINGUAS =
10+
HELP_LINGUAS = $(if $(IGNORE_HELP_LINGUAS), \
11+
$(filter-out $(IGNORE_HELP_LINGUAS),$(subst /,,$(dir $(wildcard */*.po)))), \
12+
$(subst /,,$(dir $(wildcard */*.po))) )

logview/help/Makefile.am

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ HELP_FILES = index.docbook legal.xml
55
HELP_MEDIA = \
66
figures/syslog_window.png
77

8-
HELP_LINGUAS = ca cs de el en_GB es eu fi fr it ko oc ru sv uk zh_CN
8+
# Add linguas to be ignored, e.g. IGNORE_HELP_LINGUAS = ca de es fr
9+
IGNORE_HELP_LINGUAS =
10+
HELP_LINGUAS = $(if $(IGNORE_HELP_LINGUAS), \
11+
$(filter-out $(IGNORE_HELP_LINGUAS),$(subst /,,$(dir $(wildcard */*.po)))), \
12+
$(subst /,,$(dir $(wildcard */*.po))) )

mate-dictionary/help/Makefile.am

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
HELP_ID = mate-dictionary
44
HELP_FILES = index.docbook legal.xml
55

6-
HELP_LINGUAS = ca cs da de el en_GB es eu fi fr it oc ru sv uk zh_CN
7-
86
HELP_MEDIA = \
97
figures/mate-dictionary-add-source.png \
108
figures/mate-dictionary-applet.png \
@@ -14,3 +12,9 @@ HELP_MEDIA = \
1412
figures/mate-dictionary-lookup.png \
1513
figures/mate-dictionary-preferences-print.png \
1614
figures/mate-dictionary-preferences-source.png
15+
16+
# Add linguas to be ignored, e.g. IGNORE_HELP_LINGUAS = ca de es fr
17+
IGNORE_HELP_LINGUAS =
18+
HELP_LINGUAS = $(if $(IGNORE_HELP_LINGUAS), \
19+
$(filter-out $(IGNORE_HELP_LINGUAS),$(subst /,,$(dir $(wildcard */*.po)))), \
20+
$(subst /,,$(dir $(wildcard */*.po))) )

0 commit comments

Comments
 (0)