[epiphany] Use ISO_CODES_PREFIX to find localedir of iso-codes



commit c1db7fb6e3d9d2fb3d117074634ae66d6f8f6796
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Tue Nov 15 18:48:04 2016 +0800

    Use ISO_CODES_PREFIX to find localedir of iso-codes
    
    This commit makes it possible to find translation data of iso-codes when
    epiphany and iso-codes are installed in different prefixes, which is
    common in JHBuild environments.
    
    We hardcode share/locale here because iso-codes.pc doesn't have the path
    of localedir written in it and most users and distributions don't modify
    the path of localedir.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774464

 lib/ephy-langs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/ephy-langs.c b/lib/ephy-langs.c
index 0bd7b00..5d15711 100644
--- a/lib/ephy-langs.c
+++ b/lib/ephy-langs.c
@@ -143,10 +143,10 @@ ephy_langs_bind_iso_domains (void)
   static gboolean bound = FALSE;
 
   if (bound == FALSE) {
-    bindtextdomain (ISO_639_DOMAIN, LOCALEDIR);
+    bindtextdomain (ISO_639_DOMAIN, ISO_CODES_PREFIX "/share/locale");
     bind_textdomain_codeset (ISO_639_DOMAIN, "UTF-8");
 
-    bindtextdomain (ISO_3166_DOMAIN, LOCALEDIR);
+    bindtextdomain (ISO_3166_DOMAIN, ISO_CODES_PREFIX "/share/locale");
     bind_textdomain_codeset (ISO_3166_DOMAIN, "UTF-8");
 
     bound = TRUE;


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