mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
meson: Ensure clapper uses local translations within the devenv
This patch modifies the initialization routines of clapper to check for CLAPPER_GTK_OVERRIDE_LOCALEDIR and CLAPPER_APP_OVERRIDE_LOCALEDIR and uses that instead of the LOCALEDIR specified in the config.h. It also fixes the bug where libclapper-gtk loads the translations for the clapper application and the clapper application loads the translations for the libclapper-gtk. (It took me shockingly long to figure out why the translations weren't working 🙃) Co-authored-by: Rafał Dzięgiel <rafostar.github@gmail.com> Signed-off-by: Florian "sp1rit" <sp1rit@disroot.org>
This commit is contained in:
@@ -42,7 +42,7 @@ clapperapp_conf_inc = [
|
||||
]
|
||||
|
||||
config_h = configuration_data()
|
||||
config_h.set_quoted('GETTEXT_PACKAGE', meson.project_name() + '-gtk')
|
||||
config_h.set_quoted('GETTEXT_PACKAGE', meson.project_name() + '-app')
|
||||
config_h.set_quoted('LOCALEDIR', join_paths (prefix, localedir))
|
||||
config_h.set_quoted('CLAPPER_APP_NAME', 'Clapper')
|
||||
config_h.set_quoted('CLAPPER_APP_ID', app_id)
|
||||
|
Reference in New Issue
Block a user