Skip to content

Commit a7bd731

Browse files
committed
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
1 parent c5b1766 commit a7bd731

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

howdy-gtk/src/main.glade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
</child>
138138
<child>
139139
<object class="GtkButton" id="addbutton">
140-
<property name="label">Add</property>
140+
<property name="label" translatable="yes">Add</property>
141141
<property name="visible">True</property>
142142
<property name="can_focus">True</property>
143143
<property name="receives_default">True</property>
@@ -155,7 +155,7 @@
155155
</child>
156156
<child>
157157
<object class="GtkButton" id="deletebutton">
158-
<property name="label">Delete</property>
158+
<property name="label" translatable="yes">Delete</property>
159159
<property name="visible">True</property>
160160
<property name="can_focus">True</property>
161161
<property name="receives_default">True</property>

howdy/src/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232

3333
# Add an argument for the command
3434
parser.add_argument(
35-
_("command"),
35+
"command",
3636
help=_("The command option to execute, can be one of the following: add, clear, config, disable, list, remove, snapshot, set, test or version."),
3737
metavar="command",
3838
choices=["add", "clear", "config", "disable", "list", "remove", "set", "snapshot", "test", "version"])
3939

4040
# Add an argument for the extra arguments of disable and remove
4141
parser.add_argument(
42-
_("arguments"),
42+
"arguments",
4343
help=_("Optional arguments for the add, disable, remove and set commands."),
4444
nargs="*")
4545

0 commit comments

Comments
 (0)