[dia/fix-i18n] meson.build: set dialocaledir with a prefix



commit 8b34772a63b3f63e89394a9e2a23be2dbb4087a3
Author: Rafael Fontenelle <rffontenelle gmail com>
Date:   Sat Nov 30 07:01:57 2019 +0000

    meson.build: set dialocaledir with a prefix
    
    localedir's value is 'share/locale'. If a prefix is not given,
    Dia will search for the locale files in the build path instead
    of in the given prefix, resulting in an English interface as
    the locale files are not found.
    
    Fixes #427

 meson.build | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index b9dd8dc7..db6f58d3 100644
--- a/meson.build
+++ b/meson.build
@@ -43,13 +43,16 @@ dialibdir = join_paths(get_option('prefix'),
                        get_option('libdir'),
                        meson.project_name())
 
+dialocaledir = join_paths(get_option('prefix'),
+                          get_option('localedir'))
+
 # Specify a header configuration file
 conf.set_quoted('VERSION', '@VCS_TAG@')
 conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
 conf.set_quoted('PREFIX', get_option('prefix'))
 conf.set_quoted('PKGDATADIR', pkgdatadir)
 conf.set_quoted('DIALIBDIR',  dialibdir)
-conf.set_quoted('LOCALEDIR', get_option('localedir'))
+conf.set_quoted('LOCALEDIR', dialocaledir)
 conf.set('ENABLE_NLS', true)
 
 foreach h : ['stddef.h', 'fcntl.h', 'unistd.h', 'utime.h']


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]