gnome-extensions: Translate help command
The quotes and COMMAND string aren't part of the syntax, so they should be translated. https://gitlab.gnome.org/GNOME/gnome-shell/issues/1538
This commit is contained in:
parent
6fe1d3248a
commit
25a7a8006a
@ -236,6 +236,10 @@ handle_version (int argc, char *argv[], gboolean do_help)
|
|||||||
static void
|
static void
|
||||||
usage (void)
|
usage (void)
|
||||||
{
|
{
|
||||||
|
g_autofree char *help_command = NULL;
|
||||||
|
|
||||||
|
help_command = g_strdup_printf ("gnome-extensions help %s", _("COMMAND"));
|
||||||
|
|
||||||
g_printerr ("%s\n", _("Usage:"));
|
g_printerr ("%s\n", _("Usage:"));
|
||||||
g_printerr (" gnome-extensions %s %s\n", _("COMMAND"), _("[ARGS…]"));
|
g_printerr (" gnome-extensions %s %s\n", _("COMMAND"), _("[ARGS…]"));
|
||||||
g_printerr ("\n");
|
g_printerr ("\n");
|
||||||
@ -254,7 +258,7 @@ usage (void)
|
|||||||
g_printerr (" pack %s\n", _("Package extension"));
|
g_printerr (" pack %s\n", _("Package extension"));
|
||||||
g_printerr (" install %s\n", _("Install extension bundle"));
|
g_printerr (" install %s\n", _("Install extension bundle"));
|
||||||
g_printerr ("\n");
|
g_printerr ("\n");
|
||||||
g_printerr (_("Use %s to get detailed help.\n"), "“gnome-extensions help COMMAND”");
|
g_printerr (_("Use “%s” to get detailed help.\n"), help_command);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user