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:
Florian Müllner 2019-08-27 18:11:33 +02:00 committed by Florian Müllner
parent 6fe1d3248a
commit 25a7a8006a

View File

@ -236,6 +236,10 @@ handle_version (int argc, char *argv[], gboolean do_help)
static 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 (" gnome-extensions %s %s\n", _("COMMAND"), _("[ARGS…]"));
g_printerr ("\n");
@ -254,7 +258,7 @@ usage (void)
g_printerr (" pack %s\n", _("Package extension"));
g_printerr (" install %s\n", _("Install extension bundle"));
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