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:
parent
c5b17665d5
commit
a7bd731c24
2 changed files with 4 additions and 4 deletions
|
@ -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>
|
||||
|
|
|
@ -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="*")
|
||||
|
||||
|
|
Loading…
Reference in a new issue