rephrase/verbosify 'no embroiderable paths' error (#458)

rephrase/verbosify 'no embroiderable paths' error
pull/482/head dev-build-untagged-82c91475f2acced6c4cc
Lex Neva 2019-06-19 10:05:27 -04:00 zatwierdzone przez GitHub
commit 9fccbb5033
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -1,8 +1,8 @@
from collections import MutableMapping
from copy import deepcopy
import json
import re
import os
import re
import inkex
from stringcase import snakecase
@ -122,10 +122,13 @@ class InkstitchExtension(inkex.Effect):
def no_elements_error(self):
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:
inkex.errormsg(_("No embroiderable paths found in document."))
inkex.errormsg(_("Tip: use Path -> Object to Path to convert non-paths."))
inkex.errormsg(_("There are no objects in the entire document that Ink/Stitch knows how to work with.") + "\n")
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):
nodes = []