summaryrefslogtreecommitdiff
path: root/lib/commands.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-07-14 15:40:16 +0200
committerGitHub <noreply@github.com>2024-07-14 15:40:16 +0200
commit6a39662fd15a36a656ad1cf5779c865890d789b3 (patch)
tree5346c66175204660d74100630d58e83d751eeb70 /lib/commands.py
parent2ad75356ddeeaa6d87c10289479e90d50f4a378b (diff)
Command translations (#3075)
* command translations * windows: do not unescape
Diffstat (limited to 'lib/commands.py')
-rw-r--r--lib/commands.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/commands.py b/lib/commands.py
index 8c43aed3..86abe52a 100644
--- a/lib/commands.py
+++ b/lib/commands.py
@@ -296,9 +296,10 @@ def ensure_symbol(svg, command):
def add_group(document, node, command):
parent = node.getparent()
+ description = _(get_command_description(command))
group = inkex.Group(attrib={
"id": generate_unique_id(document, "command_group"),
- INKSCAPE_LABEL: _("Ink/Stitch Command") + ": %s" % get_command_description(command),
+ INKSCAPE_LABEL: _("Ink/Stitch Command") + f": {description}",
"transform": get_correction_transform(node)
})
parent.insert(parent.index(node) + 1, group)
@@ -431,9 +432,10 @@ def add_layer_commands(layer, commands):
for i, command in enumerate(commands):
ensure_symbol(svg, command)
+ description = _(get_command_description(command))
layer.append(inkex.Use(attrib={
"id": generate_unique_id(svg, "use"),
- INKSCAPE_LABEL: _("Ink/Stitch Command") + ": %s" % get_command_description(command),
+ INKSCAPE_LABEL: _("Ink/Stitch Command") + f": {description}",
XLINK_HREF: "#inkstitch_%s" % command,
"height": "100%",
"width": "100%",