From 80f12184e4d495b885d1c9464570ad5d812891c8 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Fri, 2 Feb 2018 20:04:10 -0500 Subject: [PATCH] use dict for formatting to improve translatability --- embroider.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/embroider.py b/embroider.py index d08aea2b1..768f66576 100644 --- a/embroider.py +++ b/embroider.py @@ -1160,7 +1160,8 @@ class SatinColumn(EmbroideryElement): if len(self.csp) == 2: if len(self.csp[0]) != len(self.csp[1]): - self.fatal(_("satin column: object %s has two paths with an unequal number of points (%s and %s)") % (node_id, len(self.csp[0]), len(self.csp[1]))) + self.fatal(_("satin column: object %(id)s has two paths with an unequal number of points (%(length1)d and %(length2)d)") % \ + dict(id=node_id, length1=len(self.csp[0]), length2=len(self.csp[1]))) def offset_points(self, pos1, pos2, offset_px): # Expand or contract two points about their midpoint. This is