kopia lustrzana https://github.com/inkstitch/inkstitch
rephrase/verbosify 'no embroiderable paths' error (#458)
rephrase/verbosify 'no embroiderable paths' errorpull/482/head dev-build-untagged-82c91475f2acced6c4cc
commit
9fccbb5033
|
@ -1,8 +1,8 @@
|
||||||
from collections import MutableMapping
|
from collections import MutableMapping
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
import json
|
import json
|
||||||
import re
|
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
|
|
||||||
import inkex
|
import inkex
|
||||||
from stringcase import snakecase
|
from stringcase import snakecase
|
||||||
|
@ -122,10 +122,13 @@ class InkstitchExtension(inkex.Effect):
|
||||||
|
|
||||||
def no_elements_error(self):
|
def no_elements_error(self):
|
||||||
if self.selected:
|
if self.selected:
|
||||||
inkex.errormsg(_("No embroiderable paths selected."))
|
# l10n This was previously: "No embroiderable paths selected."
|
||||||
|
inkex.errormsg(_("Ink/Stitch doesn't know how to work with any of the objects you've selected.") + "\n")
|
||||||
else:
|
else:
|
||||||
inkex.errormsg(_("No embroiderable paths found in document."))
|
inkex.errormsg(_("There are no objects in the entire document that Ink/Stitch knows how to work with.") + "\n")
|
||||||
inkex.errormsg(_("Tip: use Path -> Object to Path to convert non-paths."))
|
|
||||||
|
inkex.errormsg(_("Ink/Stitch only knows how to work with paths. It can't work with objects like text, rectangles, or circles.") + "\n")
|
||||||
|
inkex.errormsg(_("Tip: select some objects and use Path -> Object to Path to convert them to paths.") + "\n")
|
||||||
|
|
||||||
def descendants(self, node, selected=False):
|
def descendants(self, node, selected=False):
|
||||||
nodes = []
|
nodes = []
|
||||||
|
|
Ładowanie…
Reference in New Issue