From f9b97a698936a5c0d745f92a5b0e2bba1a1dbdbd Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Thu, 15 Jul 2021 15:51:32 +0200 Subject: Install translated manuals With at least one manual now fully translated, we need to install it to the right place in both the Makefile and meson.build. For the former use a similar loop as is in use for the MO files. For the latter we sadly need to place the manual manually using install_data() because meson only supports localized manuals natively starting at 0.58.0, a version that is only about two months old. --- meson.build | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 4bae2de..9284ba8 100644 --- a/meson.build +++ b/meson.build @@ -20,6 +20,11 @@ executable('weltschmerz', sources, dependencies: dependencies, install: true) install_man('weltschmerz.1') +# install_man supports locale only on meson >= 0.58.0, so let's wait a bit +# until we rely on that +install_data('weltschmerz.de.1', + install_dir: join_paths(get_option('mandir'), 'de', 'man1'), rename: 'weltschmerz.1') + i18n.merge_file( input: 'weltschmerz.desktop.in', output: 'weltschmerz.desktop', -- cgit v1.2.3-2-gb3c3