Commit 10cc60b4 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Mark user visible strings for translation.

Tue Aug  3 16:19:44 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/goption.c: Mark user visible strings for translation.
parent 4ca03e4b
Tue Aug 3 16:19:44 2004 Matthias Clasen <maclas@gmx.de>
* glib/goption.c: Mark user visible strings for translation.
Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de> Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de>
* glib/goption.[hc]: Pedantically use g types throughout. * glib/goption.[hc]: Pedantically use g types throughout.
......
Tue Aug 3 16:19:44 2004 Matthias Clasen <maclas@gmx.de>
* glib/goption.c: Mark user visible strings for translation.
Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de> Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de>
* glib/goption.[hc]: Pedantically use g types throughout. * glib/goption.[hc]: Pedantically use g types throughout.
......
Tue Aug 3 16:19:44 2004 Matthias Clasen <maclas@gmx.de>
* glib/goption.c: Mark user visible strings for translation.
Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de> Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de>
* glib/goption.[hc]: Pedantically use g types throughout. * glib/goption.[hc]: Pedantically use g types throughout.
......
Tue Aug 3 16:19:44 2004 Matthias Clasen <maclas@gmx.de>
* glib/goption.c: Mark user visible strings for translation.
Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de> Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de>
* glib/goption.[hc]: Pedantically use g types throughout. * glib/goption.[hc]: Pedantically use g types throughout.
......
Tue Aug 3 16:19:44 2004 Matthias Clasen <maclas@gmx.de>
* glib/goption.c: Mark user visible strings for translation.
Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de> Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de>
* glib/goption.[hc]: Pedantically use g types throughout. * glib/goption.[hc]: Pedantically use g types throughout.
......
...@@ -257,8 +257,8 @@ print_help (GOptionContext *context, ...@@ -257,8 +257,8 @@ print_help (GOptionContext *context,
gint max_length, len; gint max_length, len;
gint i; gint i;
g_print ("Usage:\n"); g_print ("%s\n %s %s %s\n\n",
g_print (" %s [OPTION...] %s\n\n", g_get_prgname (), _("Usage:"), g_get_prgname (), _("[OPTION...]"),
context->parameter_string ? context->parameter_string : ""); context->parameter_string ? context->parameter_string : "");
list = context->groups; list = context->groups;
...@@ -302,12 +302,12 @@ print_help (GOptionContext *context, ...@@ -302,12 +302,12 @@ print_help (GOptionContext *context,
list = context->groups; list = context->groups;
g_print ("Help Options:\n"); g_print ("%s\n --%-*s %s\n",
g_print (" --%-*s %s\n", max_length, "help", "Show help options"); _("Help Options:"), max_length, "help", _("Show help options"));
/* We only want --help-all when there are groups */ /* We only want --help-all when there are groups */
if (list) 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) while (list)
{ {
...@@ -355,7 +355,7 @@ print_help (GOptionContext *context, ...@@ -355,7 +355,7 @@ print_help (GOptionContext *context,
{ {
list = context->groups; list = context->groups;
g_print ("Application Options\n"); g_print ("%s\n", _("Application Options:"));
for (i = 0; i < context->main_group->n_entries; i++) for (i = 0; i < context->main_group->n_entries; i++)
print_entry (context->main_group, max_length, &context->main_group->entries[i]); print_entry (context->main_group, max_length, &context->main_group->entries[i]);
...@@ -394,7 +394,7 @@ parse_int (const gchar *arg_name, ...@@ -394,7 +394,7 @@ parse_int (const gchar *arg_name,
{ {
g_set_error (error, g_set_error (error,
G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, 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); arg, arg_name);
return FALSE; return FALSE;
} }
...@@ -404,7 +404,7 @@ parse_int (const gchar *arg_name, ...@@ -404,7 +404,7 @@ parse_int (const gchar *arg_name,
{ {
g_set_error (error, g_set_error (error,
G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, 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); arg, arg_name);
return FALSE; return FALSE;
} }
...@@ -975,7 +975,7 @@ g_option_context_parse (GOptionContext *context, ...@@ -975,7 +975,7 @@ g_option_context_parse (GOptionContext *context,
if (context->ignore_unknown) if (context->ignore_unknown)
{ {
gchar *new_arg = NULL; gchar *new_arg = NULL;
int arg_index = 0; gint arg_index = 0;
for (j = 0; j < strlen (arg); j++) for (j = 0; j < strlen (arg); j++)
{ {
......
...@@ -8,3 +8,4 @@ glib/gshell.c ...@@ -8,3 +8,4 @@ glib/gshell.c
glib/gspawn-win32.c glib/gspawn-win32.c
glib/gspawn.c glib/gspawn.c
glib/gutf8.c glib/gutf8.c
glib/goption.c
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment