diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2018-08-21 16:45:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-21 16:45:13 -0400 |
| commit | afb886cbe04d19c6b7d1886dfc2c6052646a2dbf (patch) | |
| tree | 2d0a6fe95a26d5b934fe893f3d2b3e94b2aadcc8 /lib/extensions/layer_commands.py | |
| parent | 8116f32068a4fe55e7f30ca2a369b2443d89b560 (diff) | |
| parent | 8f700007fc7d3b7866d4e4a3dac6a36bb3e1be2a (diff) | |
Merge pull request #286 from inkstitch/lexelby/i18n-revamp
localize INX files
Diffstat (limited to 'lib/extensions/layer_commands.py')
| -rw-r--r-- | lib/extensions/layer_commands.py | 6 |
1 files changed, 4 insertions, 2 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%", |
