[emerillon] Fix two i18n issues



commit 023224a7cd3c164e1d8717ea1ef9be0661915516
Author: Å?ukasz JernaÅ? <deejay1 srem org>
Date:   Tue Jun 22 09:50:39 2010 +0200

    Fix two i18n issues
    
    Moved g_set_application_name() aftert gtk_init() which sets the
    translation domain for the application and added
    a g_option_context_set_translation_domain() call for the default
    help output context.

 emerillon/main.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/emerillon/main.c b/emerillon/main.c
index 068f51a..6d60e54 100644
--- a/emerillon/main.c
+++ b/emerillon/main.c
@@ -89,6 +89,7 @@ parse_options (int *argc,
   GOptionGroup *position_group;
 
   context = g_option_context_new (_("- map viewer"));
+  g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
   g_option_context_add_group (context, gtk_get_option_group (TRUE));
   g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
 
@@ -138,13 +139,13 @@ main (int argc,
 
   g_thread_init (NULL);
 
-  g_set_application_name (_("Emerillon Map Viewer"));
-
   parse_options(&argc, &argv);
 
   gtk_init (&argc, &argv);
   gtk_clutter_init (&argc, &argv);
 
+  g_set_application_name (_("Emerillon Map Viewer"));
+
   window = emerillon_window_dup_default ();
   g_signal_connect (window, "delete-event", gtk_main_quit, NULL);
   gtk_widget_show (window);



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