[folks] folks-inspect, folks-import: initialize localization from the environment



commit 0f8247ac2fe9f87207a0c4de2023b5ca74478de6
Author: Simon McVittie <simon mcvittie collabora co uk>
Date:   Wed Mar 20 11:27:21 2013 +0000

    folks-inspect, folks-import: initialize localization from the environment
    
    Otherwise, $LANG etc. are ignored and we stay in the C locale.
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=696179
    Signed-off-by: Simon McVittie <simon mcvittie collabora co uk>
    Reviewed-by: Philip Withnall <philip tecnocode co uk>

 tools/import.vala          |    1 +
 tools/inspect/inspect.vala |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tools/import.vala b/tools/import.vala
index 336aa39..e8872f8 100644
--- a/tools/import.vala
+++ b/tools/import.vala
@@ -50,6 +50,7 @@ public class Folks.ImportTool : Object
 
   public static int main (string[] args)
     {
+      Intl.setlocale (LocaleCategory.ALL, "");
       Intl.bindtextdomain (BuildConf.GETTEXT_PACKAGE, BuildConf.LOCALE_DIR);
       Intl.textdomain (BuildConf.GETTEXT_PACKAGE);
 
diff --git a/tools/inspect/inspect.vala b/tools/inspect/inspect.vala
index bd0794b..6b5896f 100644
--- a/tools/inspect/inspect.vala
+++ b/tools/inspect/inspect.vala
@@ -51,6 +51,7 @@ public class Folks.Inspect.Client : Object
 
   public static int main (string[] args)
     {
+      Intl.setlocale (LocaleCategory.ALL, "");
       Intl.bindtextdomain (BuildConf.GETTEXT_PACKAGE, BuildConf.LOCALE_DIR);
       Intl.textdomain (BuildConf.GETTEXT_PACKAGE);
 


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