From 8a0ed9b9658306341d19e3ca32ee01c641063937 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Fri, 17 Aug 2018 23:02:27 -0400 Subject: [PATCH] add description for layer commands too --- lib/extensions/layer_commands.py | 6 ++++-- messages.po | 12 ++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/extensions/layer_commands.py b/lib/extensions/layer_commands.py index 88170f660..576af044b 100644 --- a/lib/extensions/layer_commands.py +++ b/lib/extensions/layer_commands.py @@ -3,13 +3,14 @@ import sys import inkex from .commands import CommandsExtension +from ..commands import LAYER_COMMANDS, get_command_description from ..i18n import _ -from ..svg.tags import SVG_USE_TAG, XLINK_HREF +from ..svg.tags import * from ..svg import get_correction_transform class LayerCommands(CommandsExtension): - COMMANDS = ["ignore_layer"] + COMMANDS = LAYER_COMMANDS def ensure_current_layer(self): # if no layer is selected, inkex defaults to the root, which isn't @@ -37,6 +38,7 @@ class LayerCommands(CommandsExtension): node = inkex.etree.SubElement(self.current_layer, SVG_USE_TAG, { "id": self.uniqueId("use"), + INKSCAPE_LABEL: _("Ink/Stitch Command") + ": %s" % get_command_description(command), XLINK_HREF: "#inkstitch_%s" % command, "height": "100%", "width": "100%", diff --git a/messages.po b/messages.po index 7350d2a23..30ceee9ef 100644 --- a/messages.po +++ b/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2018-08-17 22:45-0400\n" +"POT-Creation-Date: 2018-08-17 23:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -458,19 +458,19 @@ msgstr "" msgid "Ink/Stitch Add-ons Installer" msgstr "" -#: lib/extensions/layer_commands.py:28 +#: lib/extensions/layer_commands.py:29 msgid "Please choose one or more commands to add." msgstr "" +#: lib/extensions/layer_commands.py:41 lib/extensions/object_commands.py:80 +msgid "Ink/Stitch Command" +msgstr "" + #. : the name of the line that connects a command to the object it applies to #: lib/extensions/object_commands.py:36 msgid "connector" msgstr "" -#: lib/extensions/object_commands.py:80 -msgid "Ink/Stitch Command" -msgstr "" - #. : the name of a command symbol (example: scissors icon for trim command) #: lib/extensions/object_commands.py:95 msgid "command marker"