[vinagre/gnome-3-0] Translate the application name



commit ed3903d31be4dbf6650bcee4b1d36024c831c6c8
Author: David King <amigadave amigadave com>
Date:   Wed Jun 22 08:29:33 2011 +0200

    Translate the application name
    
    g_set_application_name() was called before gettext was initialised, so
    the application name, found in the about dialog and the window title,
    was not translated. Moving the function call to after the gettext
    initialisation fixes the problem, fixing bug 653126.

 vinagre/vinagre-main.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/vinagre/vinagre-main.c b/vinagre/vinagre-main.c
index 08e23bd..1018bed 100644
--- a/vinagre/vinagre-main.c
+++ b/vinagre/vinagre-main.c
@@ -123,17 +123,17 @@ int main (int argc, char **argv) {
   GHashTableIter iter;
   int res;
 
-  g_set_prgname ("vinagre");
-  g_type_init ();
-  g_set_application_name (_("Remote Desktop Viewer"));
-  optionstate.new_window = FALSE;
-
   /* i18n */
   setlocale (LC_ALL, "");
   bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
   textdomain (GETTEXT_PACKAGE);
 
+  g_set_prgname (PACKAGE_TARNAME);
+  g_type_init ();
+  g_set_application_name (_("Remote Desktop Viewer"));
+  optionstate.new_window = FALSE;
+
   /* Setup command line options */
   context = g_option_context_new (_("- Remote Desktop Viewer"));
   g_option_context_add_main_entries (context, all_options, GETTEXT_PACKAGE);



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