[gnome-boxes/wip/inigomartinez/meson: 13/13] meson: Use localedir option



commit 846782159e6e2f489a77ef374d06cd662f8e8633
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Sun Dec 10 14:02:19 2017 +0100

    meson: Use localedir option
    
    The default location for localedir is used, which is usually under
    datadir directory. However, the user might choose another location
    by using the available options.
    
    This patch uses the localedir option instead of using the default
    location.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=791421

 meson.build |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meson.build b/meson.build
index 197febb..b3aad35 100644
--- a/meson.build
+++ b/meson.build
@@ -53,7 +53,7 @@ libgd_dep = libgd.get_variable('libgd_dep')
 
 po_dir = join_paths (meson.source_root (), 'po')
 data_dir = join_paths (get_option ('prefix'), get_option ('datadir'))
-locale_dir = join_paths (data_dir, '/locale')
+locale_dir = join_paths (get_option ('prefix'), get_option ('localedir'))
 
 conf = configuration_data ()
 conf.set_quoted ('DISTRIBUTOR_NAME', get_option ('distributor_name'))


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