Ensure translated manual pages are installed under Meson.
This commit is contained in:
parent
e8e7139629
commit
f3e2dac20f
1 changed files with 14 additions and 0 deletions
|
|
@ -13,6 +13,20 @@ geary_help_pages = [
|
|||
'write.page',
|
||||
]
|
||||
|
||||
# Meson 0.44 added support for automatically reading LINGUAS, until we
|
||||
# can depend on that, read it in outselves. Note this means if you
|
||||
# change LINGUAS, you will need remove your build directory and re-run
|
||||
# meson for it to be picked up.
|
||||
linguas = run_command(['cat', 'LINGUAS']).stdout().strip()
|
||||
langs = []
|
||||
foreach line : linguas.split('\n')
|
||||
line = line.strip()
|
||||
if not line.startswith('#')
|
||||
langs += line
|
||||
endif
|
||||
endforeach
|
||||
|
||||
gnome.yelp(meson.project_name(),
|
||||
languages: langs,
|
||||
sources: geary_help_pages,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue