From 57e0c0b79bc140478538167aad89d41124c26cc4 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Wed, 8 May 2019 20:17:49 -0400 Subject: [PATCH] rephrase/verbosify 'no embroiderable paths' error --- lib/extensions/base.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/extensions/base.py b/lib/extensions/base.py index 6b846aebe..165618aae 100644 --- a/lib/extensions/base.py +++ b/lib/extensions/base.py @@ -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 = []