gio-tool: Use "…" consistently

"gio help COMMAND" shows some arguments with "..." and some with "…",
which looks weird, e.g.:

$ gio help mount
gio mount [OPTION…] [LOCATION...]

Let's use "…" consitently.
This commit is contained in:
Ondrej Holy 2018-05-25 16:59:30 +02:00
parent 66187c4c3e
commit bc365c9b4e
14 changed files with 14 additions and 14 deletions

View File

@ -130,7 +130,7 @@ handle_cat (int argc, char *argv[], gboolean do_help)
g_set_prgname ("gio cat");
/* Translators: commandline placeholder */
param = g_strdup_printf ("%s...", _("LOCATION"));
param = g_strdup_printf ("%s", _("LOCATION"));
context = g_option_context_new (param);
g_free (param);
g_option_context_set_help_enabled (context, FALSE);

View File

@ -95,7 +95,7 @@ handle_copy (int argc, char *argv[], gboolean do_help)
g_set_prgname ("gio copy");
/* Translators: commandline placeholder */
param = g_strdup_printf ("%s... %s", _("SOURCE"), _("DESTINATION"));
param = g_strdup_printf ("%s %s", _("SOURCE"), _("DESTINATION"));
context = g_option_context_new (param);
g_free (param);
g_option_context_set_help_enabled (context, FALSE);

View File

@ -279,7 +279,7 @@ handle_info (int argc, char *argv[], gboolean do_help)
g_set_prgname ("gio info");
/* Translators: commandline placeholder */
param = g_strdup_printf ("%s...", _("LOCATION"));
param = g_strdup_printf ("%s", _("LOCATION"));
context = g_option_context_new (param);
g_free (param);
g_option_context_set_help_enabled (context, FALSE);

View File

@ -162,7 +162,7 @@ handle_list (int argc, char *argv[], gboolean do_help)
g_set_prgname ("gio list");
/* Translators: commandline placeholder */
param = g_strdup_printf ("[%s...]", _("LOCATION"));
param = g_strdup_printf ("[%s]", _("LOCATION"));
context = g_option_context_new (param);
g_free (param);
g_option_context_set_help_enabled (context, FALSE);

View File

@ -45,7 +45,7 @@ handle_mkdir (int argc, char *argv[], gboolean do_help)
g_set_prgname ("gio mkdir");
/* Translators: commandline placeholder */
param = g_strdup_printf ("%s...", _("LOCATION"));
param = g_strdup_printf ("%s", _("LOCATION"));
context = g_option_context_new (param);
g_free (param);
g_option_context_set_help_enabled (context, FALSE);

View File

@ -200,7 +200,7 @@ handle_monitor (int argc, gchar *argv[], gboolean do_help)
g_set_prgname ("gio monitor");
/* Translators: commandline placeholder */
param = g_strdup_printf ("[%s...]", _("LOCATION"));
param = g_strdup_printf ("%s…", _("LOCATION"));
context = g_option_context_new (param);
g_free (param);
g_option_context_set_help_enabled (context, FALSE);

View File

@ -1138,7 +1138,7 @@ handle_mount (int argc, char *argv[], gboolean do_help)
g_set_prgname ("gio mount");
/* Translators: commandline placeholder */
param = g_strdup_printf ("[%s...]", _("LOCATION"));
param = g_strdup_printf ("[%s]", _("LOCATION"));
context = g_option_context_new (param);
g_free (param);
g_option_context_set_help_enabled (context, FALSE);

View File

@ -91,7 +91,7 @@ handle_move (int argc, char *argv[], gboolean do_help)
g_set_prgname ("gio move");
/* Translators: commandline placeholder */
param = g_strdup_printf ("%s... %s", _("SOURCE"), _("DESTINATION"));
param = g_strdup_printf ("%s %s", _("SOURCE"), _("DESTINATION"));
context = g_option_context_new (param);
g_free (param);
g_option_context_set_help_enabled (context, FALSE);

View File

@ -110,7 +110,7 @@ handle_open (int argc, char *argv[], gboolean do_help)
g_set_prgname ("gio open");
/* Translators: commandline placeholder */
param = g_strdup_printf ("%s...", _("LOCATION"));
param = g_strdup_printf ("%s", _("LOCATION"));
context = g_option_context_new (param);
g_free (param);
g_option_context_set_help_enabled (context, FALSE);

View File

@ -45,7 +45,7 @@ handle_remove (int argc, char *argv[], gboolean do_help)
g_set_prgname ("gio remove");
/* Translators: commandline placeholder */
param = g_strdup_printf ("%s...", _("LOCATION"));
param = g_strdup_printf ("%s", _("LOCATION"));
context = g_option_context_new (param);
g_free (param);
g_option_context_set_help_enabled (context, FALSE);

View File

@ -86,7 +86,7 @@ handle_set (int argc, char *argv[], gboolean do_help)
g_set_prgname ("gio set");
/* Translators: commandline placeholder */
param = g_strdup_printf ("%s %s %s...", _("LOCATION"), _("ATTRIBUTE"), _("VALUE"));
param = g_strdup_printf ("%s %s %s", _("LOCATION"), _("ATTRIBUTE"), _("VALUE"));
context = g_option_context_new (param);
g_free (param);
g_option_context_set_help_enabled (context, FALSE);

View File

@ -78,7 +78,7 @@ handle_trash (int argc, char *argv[], gboolean do_help)
g_set_prgname ("gio trash");
/* Translators: commandline placeholder */
param = g_strdup_printf ("[%s...]", _("LOCATION"));
param = g_strdup_printf ("[%s]", _("LOCATION"));
context = g_option_context_new (param);
g_free (param);
g_option_context_set_help_enabled (context, FALSE);

View File

@ -236,7 +236,7 @@ handle_tree (int argc, char *argv[], gboolean do_help)
g_set_prgname ("gio tree");
/* Translators: commandline placeholder */
param = g_strdup_printf ("[%s...]", _("LOCATION"));
param = g_strdup_printf ("[%s]", _("LOCATION"));
context = g_option_context_new (param);
g_free (param);
g_option_context_set_help_enabled (context, FALSE);

View File

@ -221,7 +221,7 @@ static void
usage (void)
{
g_printerr ("%s\n", _("Usage:"));
g_printerr (" gio %s %s\n", _("COMMAND"), _("[ARGS...]"));
g_printerr (" gio %s %s\n", _("COMMAND"), _("[ARGS]"));
g_printerr ("\n");
g_printerr ("%s\n", _("Commands:"));
g_printerr (" help %s\n", _("Print help"));