[gtranslator] Use gtr-dirs for the locale dir



commit 2a539b16298bdc29feda3e9a8d595a45959e2447
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Mar 13 16:43:33 2011 +0100

    Use gtr-dirs for the locale dir

 src/main.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 579afa0..7fbcc25 100644
--- a/src/main.c
+++ b/src/main.c
@@ -78,15 +78,15 @@ main (gint argc, gchar * argv[])
   g_type_init ();
   g_thread_init (NULL);
 
+  gtr_dirs_init ();
+
   /* Initialize gettext. */
   setlocale (LC_ALL, "");
 
-  bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+  bindtextdomain (GETTEXT_PACKAGE, gtr_dirs_get_gtr_locale_dir ());
   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
   textdomain (GETTEXT_PACKAGE);
 
-  gtr_dirs_init ();
-
 #ifdef G_OS_WIN32
   setup_path ();
 #endif



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