summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/extensions/layer_commands.py6
-rw-r--r--messages.po12
2 files changed, 10 insertions, 8 deletions
diff --git a/lib/extensions/layer_commands.py b/lib/extensions/layer_commands.py
index 88170f66..576af044 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 7350d2a2..30ceee9e 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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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"