From 6a39662fd15a36a656ad1cf5779c865890d789b3 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 14 Jul 2024 15:40:16 +0200 Subject: Command translations (#3075) * command translations * windows: do not unescape --- lib/commands.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/commands.py') 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%", -- cgit v1.2.3