From a7bd731c24c797bd5e5d3c9105cce0428478c093 Mon Sep 17 00:00:00 2001 From: Anton Golubev Date: Wed, 15 Nov 2023 16:49:42 +0300 Subject: [PATCH] Fix things regarding translations - do not translate parser arguments, because these are the keys in the args. And therefore, for example, args.command will be missing further. - translate button names in main.glade --- howdy-gtk/src/main.glade | 4 ++-- howdy/src/cli.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/howdy-gtk/src/main.glade b/howdy-gtk/src/main.glade index 7cb12e76..2ac26697 100644 --- a/howdy-gtk/src/main.glade +++ b/howdy-gtk/src/main.glade @@ -137,7 +137,7 @@ - Add + Add True True True @@ -155,7 +155,7 @@ - Delete + Delete True True True diff --git a/howdy/src/cli.py b/howdy/src/cli.py index 78212cce..67dd77bf 100755 --- a/howdy/src/cli.py +++ b/howdy/src/cli.py @@ -32,14 +32,14 @@ # Add an argument for the command parser.add_argument( - _("command"), + "command", help=_("The command option to execute, can be one of the following: add, clear, config, disable, list, remove, snapshot, set, test or version."), metavar="command", choices=["add", "clear", "config", "disable", "list", "remove", "set", "snapshot", "test", "version"]) # Add an argument for the extra arguments of disable and remove parser.add_argument( - _("arguments"), + "arguments", help=_("Optional arguments for the add, disable, remove and set commands."), nargs="*")