Skip to content

Commit

Permalink
Fix things regarding translations
Browse files Browse the repository at this point in the history
  - 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
  • Loading branch information
Gliese852 committed Nov 15, 2023
1 parent c5b1766 commit a7bd731
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions howdy-gtk/src/main.glade
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions howdy/src/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="*")

Expand Down

0 comments on commit a7bd731

Please sign in to comment.