[ekiga] Move gettext init before the first _() call, so that those strings appear translated in the About di



commit e5d5d05b65933ed1e7f114d3ebfa57b5b58de9df
Author: Gabor Kelemen <kelemeng gnome hu>
Date:   Thu Aug 15 10:36:15 2013 +0200

    Move gettext init before the first _() call, so that
    those strings appear translated in the About dialog.

 src/gui/main.cpp |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gui/main.cpp b/src/gui/main.cpp
index e52b4b0..c134441 100644
--- a/src/gui/main.cpp
+++ b/src/gui/main.cpp
@@ -105,6 +105,13 @@ main (int argc,
   signal (SIGPIPE, SIG_IGN);
 #endif
 
+  /* Gettext initialization */
+  path = g_build_filename (DATA_DIR, "locale", NULL);
+  textdomain (GETTEXT_PACKAGE);
+  bindtextdomain (GETTEXT_PACKAGE, path);
+  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+  g_free (path);
+
   /* Application name */
   g_set_application_name (_("Ekiga Softphone"));
 #ifndef WIN32
@@ -121,13 +128,6 @@ main (int argc,
   /* Configuration backend initialization */
   gm_conf_init ();
 
-  /* Gettext initialization */
-  path = g_build_filename (DATA_DIR, "locale", NULL);
-  textdomain (GETTEXT_PACKAGE);
-  bindtextdomain (GETTEXT_PACKAGE, path);
-  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
-  g_free (path);
-
   /* Arguments initialization */
   GOptionEntry arguments [] =
     {


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