From 77beea2dfe7f0ae503f7e625da1d3bc98583a249 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 21 Feb 2020 09:45:47 +0000 Subject: [PATCH] build: Fix definition of PACKAGE_LOCALE_DIR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was causing translations to be looked for in the wrong place. Also hard-code `GETTEXT_PACKAGE` since it’s basically API now. Signed-off-by: Philip Withnall --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 7aa9e3b..b4a6298 100644 --- a/meson.build +++ b/meson.build @@ -47,8 +47,8 @@ libglib_testing_dep = dependency( ) config_h = configuration_data() -config_h.set_quoted('GETTEXT_PACKAGE', meson.project_name()) -config_h.set_quoted('PACKAGE_LOCALE_DIR', join_paths(get_option('localedir'), meson.project_name())) +config_h.set_quoted('GETTEXT_PACKAGE', 'malcontent') +config_h.set_quoted('PACKAGE_LOCALE_DIR', join_paths(get_option('prefix'), get_option('localedir'))) configure_file( output: 'config.h', configuration: config_h,