[glom] IsoCodes::get_locale_name(): Don't hard code /usr/share/i18n/locales.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] IsoCodes::get_locale_name(): Don't hard code /usr/share/i18n/locales.
- Date: Thu, 29 Sep 2016 09:02:17 +0000 (UTC)
commit 7d880162fd6db1900408de1c0f93ba78caf55c5a
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Sep 29 10:59:01 2016 +0200
IsoCodes::get_locale_name(): Don't hard code /usr/share/i18n/locales.
We already have a test for this in test_iso_codes.cc.
Bug #770403 (m.rick.mac)
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 10f037c..ce9f1a8 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 = "/usr/share/i18n/locales/";
+ const std::string locales_path = GLOM_LOCALEDIR;
try
{
Glib::Dir dir(locales_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]