From 10cc60b456c78ef1166ab79c3f9e93345c0363d0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 3 Aug 2004 20:23:05 +0000 Subject: [PATCH] Mark user visible strings for translation. Tue Aug 3 16:19:44 2004 Matthias Clasen * glib/goption.c: Mark user visible strings for translation. --- ChangeLog | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ ChangeLog.pre-2-12 | 4 ++++ ChangeLog.pre-2-6 | 4 ++++ ChangeLog.pre-2-8 | 4 ++++ glib/goption.c | 18 +++++++++--------- po/POTFILES.in | 1 + 7 files changed, 30 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index ddb0848..71f9702 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Aug 3 16:19:44 2004 Matthias Clasen + + * glib/goption.c: Mark user visible strings for translation. + Tue Aug 3 15:50:55 2004 Matthias Clasen * glib/goption.[hc]: Pedantically use g types throughout. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index ddb0848..71f9702 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,7 @@ +Tue Aug 3 16:19:44 2004 Matthias Clasen + + * glib/goption.c: Mark user visible strings for translation. + Tue Aug 3 15:50:55 2004 Matthias Clasen * glib/goption.[hc]: Pedantically use g types throughout. diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index ddb0848..71f9702 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,7 @@ +Tue Aug 3 16:19:44 2004 Matthias Clasen + + * glib/goption.c: Mark user visible strings for translation. + Tue Aug 3 15:50:55 2004 Matthias Clasen * glib/goption.[hc]: Pedantically use g types throughout. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index ddb0848..71f9702 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,7 @@ +Tue Aug 3 16:19:44 2004 Matthias Clasen + + * glib/goption.c: Mark user visible strings for translation. + Tue Aug 3 15:50:55 2004 Matthias Clasen * glib/goption.[hc]: Pedantically use g types throughout. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index ddb0848..71f9702 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,7 @@ +Tue Aug 3 16:19:44 2004 Matthias Clasen + + * glib/goption.c: Mark user visible strings for translation. + Tue Aug 3 15:50:55 2004 Matthias Clasen * glib/goption.[hc]: Pedantically use g types throughout. diff --git a/glib/goption.c b/glib/goption.c index 20c203c..e5b8a4d 100644 --- a/glib/goption.c +++ b/glib/goption.c @@ -257,8 +257,8 @@ print_help (GOptionContext *context, gint max_length, len; gint i; - g_print ("Usage:\n"); - g_print (" %s [OPTION...] %s\n\n", g_get_prgname (), + g_print ("%s\n %s %s %s\n\n", + _("Usage:"), g_get_prgname (), _("[OPTION...]"), context->parameter_string ? context->parameter_string : ""); list = context->groups; @@ -302,12 +302,12 @@ print_help (GOptionContext *context, list = context->groups; - g_print ("Help Options:\n"); - g_print (" --%-*s %s\n", max_length, "help", "Show help options"); + g_print ("%s\n --%-*s %s\n", + _("Help Options:"), max_length, "help", _("Show help options")); /* We only want --help-all when there are groups */ if (list) - g_print (" --%-*s %s\n", max_length, "help-all", "Show all help options"); + g_print (" --%-*s %s\n", max_length, "help-all", _("Show all help options")); while (list) { @@ -355,7 +355,7 @@ print_help (GOptionContext *context, { list = context->groups; - g_print ("Application Options\n"); + g_print ("%s\n", _("Application Options:")); for (i = 0; i < context->main_group->n_entries; i++) print_entry (context->main_group, max_length, &context->main_group->entries[i]); @@ -394,7 +394,7 @@ parse_int (const gchar *arg_name, { g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, - "Cannot parse integer value '%s' for --%s", + _("Cannot parse integer value '%s' for --%s"), arg, arg_name); return FALSE; } @@ -404,7 +404,7 @@ parse_int (const gchar *arg_name, { g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, - "Integer value '%s' for %s out of range", + _("Integer value '%s' for %s out of range"), arg, arg_name); return FALSE; } @@ -975,7 +975,7 @@ g_option_context_parse (GOptionContext *context, if (context->ignore_unknown) { gchar *new_arg = NULL; - int arg_index = 0; + gint arg_index = 0; for (j = 0; j < strlen (arg); j++) { diff --git a/po/POTFILES.in b/po/POTFILES.in index 6818db0..cbb1752 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -8,3 +8,4 @@ glib/gshell.c glib/gspawn-win32.c glib/gspawn.c glib/gutf8.c +glib/goption.c -- 2.7.4