[glom] Revert "IsoCodes::get_locale_name(): Don't hard code /usr/share/i18n/locales."



commit cd44eaa9c6349c0e37b3d1f9b203ac7ed7731731
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Sep 29 11:24:15 2016 +0200

    Revert "IsoCodes::get_locale_name(): Don't hard code /usr/share/i18n/locales."
    
    This reverts commit 7d880162fd6db1900408de1c0f93ba78caf55c5a.
    
    /usr/share/i18n/locales is not the same as /usr/share/locale/

 glom/mode_design/iso_codes.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glom/mode_design/iso_codes.cc b/glom/mode_design/iso_codes.cc
index ce9f1a8..10f037c 100644
--- a/glom/mode_design/iso_codes.cc
+++ b/glom/mode_design/iso_codes.cc
@@ -114,7 +114,7 @@ Glib::ustring get_locale_name(const Glib::ustring& locale_id)
     typedef std::list<std::string> type_list_ids;
     type_list_ids list_ids;
 
-    const std::string locales_path = GLOM_LOCALEDIR;
+    const std::string locales_path = "/usr/share/i18n/locales/";
     try
     {
       Glib::Dir dir(locales_path);


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