kopia lustrzana https://github.com/inkstitch/inkstitch
add description for layer commands too
rodzic
13016f50ec
commit
8a0ed9b965
|
@ -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%",
|
||||
|
|
12
messages.po
12
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"
|
||||
|
|
Ładowanie…
Reference in New Issue