build: Fix definition of PACKAGE_LOCALE_DIR
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 <withnall@endlessm.com>
This commit is contained in:
parent
69bb421d18
commit
77beea2dfe
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue