[goobox] fixed translation of some strings on the command line help



commit beb3fc66359248673229dd6b8a845854d8b6aa98
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Jul 30 19:35:18 2010 +0200

    fixed translation of some strings on the command line help
    
    [bug #625669]

 copy-n-paste/eggsmclient.c |    1 +
 src/main.c                 |    5 +----
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/copy-n-paste/eggsmclient.c b/copy-n-paste/eggsmclient.c
index efa901d..023652a 100644
--- a/copy-n-paste/eggsmclient.c
+++ b/copy-n-paste/eggsmclient.c
@@ -254,6 +254,7 @@ egg_sm_client_get_option_group (void)
 			      NULL, NULL);
   g_option_group_add_entries (group, entries);
   g_option_group_set_parse_hooks (group, NULL, sm_client_post_parse_func);
+  g_option_group_set_translation_domain (group, PACKAGE);
 
   return group;
 }
diff --git a/src/main.c b/src/main.c
index 56cea1c..9c982d7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -398,7 +398,6 @@ prepare_application (void)
 
 int main (int argc, char **argv)
 {
-	char           *description;
 	GOptionContext *context = NULL;
 	GError         *error = NULL;
 
@@ -413,9 +412,7 @@ int main (int argc, char **argv)
 	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 	textdomain (GETTEXT_PACKAGE);
 	
-        description = g_strdup_printf ("- %s", _("Play CDs and save the tracks to disk as files"));
-        context = g_option_context_new (description);
-        g_free (description);
+        context = g_option_context_new (N_("Play CDs and save the tracks to disk as files"));
         g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
         g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE);
 	g_option_context_add_group (context, gtk_get_option_group (TRUE));



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