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.
This commit is contained in:
Matthias Clasen 2004-08-03 20:23:05 +00:00 committed by Matthias Clasen
parent 4ca03e4b4e
commit 10cc60b456
7 changed files with 30 additions and 9 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -1,3 +1,7 @@
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.

View File

@ -1,3 +1,7 @@
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.

View File

@ -1,3 +1,7 @@
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.

View File

@ -1,3 +1,7 @@
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.

View File

@ -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,
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,
{ {
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,
{ {
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,
{ {
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,
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++)
{ {

View File

@ -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