folks-inspect, folks-import: initialize localization from the environment
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 20 Mar 2013 11:27:21 +0000 (11:27 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 20 Mar 2013 16:43:02 +0000 (16:43 +0000)
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
tools/inspect/inspect.vala

index 336aa39..e8872f8 100644 (file)
@@ -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);
 
index bd0794b..6b5896f 100644 (file)
@@ -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);