0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-19 09:51:19 +02:00

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
This commit is contained in:
Anton Golubev 2023-11-15 16:49:42 +03:00
parent c5b17665d5
commit a7bd731c24
No known key found for this signature in database
GPG key ID: F5397AE7206DF509
2 changed files with 4 additions and 4 deletions

View file

@ -137,7 +137,7 @@
</child>
<child>
<object class="GtkButton" id="addbutton">
<property name="label">Add</property>
<property name="label" translatable="yes">Add</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@ -155,7 +155,7 @@
</child>
<child>
<object class="GtkButton" id="deletebutton">
<property name="label">Delete</property>
<property name="label" translatable="yes">Delete</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>

View file

@ -32,14 +32,14 @@ parser = argparse.ArgumentParser(
# 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="*")