Skip to content

Commit

Permalink
Use make functions for HELP_LINGUAS
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuj authored and raveit65 committed Oct 6, 2018
1 parent eeccbf6 commit 0c174e7
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
8 changes: 6 additions & 2 deletions baobab/help/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
HELP_ID = mate-disk-usage-analyzer
HELP_FILES = index.docbook legal.xml

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

HELP_MEDIA = \
figures/baobab_fullscan.png \
figures/baobab_prefs.png \
Expand All @@ -13,3 +11,9 @@ HELP_MEDIA = \
figures/baobab_ringschart2.png \
figures/baobab_treemaps.png \
figures/baobab_window.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))) )
8 changes: 6 additions & 2 deletions gsearchtool/help/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
HELP_ID = mate-search-tool
HELP_FILES = index.docbook legal.xml

HELP_LINGUAS = ca cs de el en_GB es eu fi fr it ko oc ru sv uk zh_CN

HELP_MEDIA = figures/mate-search-tool_window.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))) )
6 changes: 5 additions & 1 deletion logview/help/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ HELP_FILES = index.docbook legal.xml
HELP_MEDIA = \
figures/syslog_window.png

HELP_LINGUAS = ca cs de el en_GB es eu fi fr it ko oc ru sv 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))) )
8 changes: 6 additions & 2 deletions mate-dictionary/help/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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))) )

0 comments on commit 0c174e7

Please sign in to comment.