Commit bc365c9b authored by Ondrej Holy's avatar Ondrej Holy

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.
parent 66187c4c
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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"));
......
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