From 8004ce623e4f273479055c8bfcdbaab0324eb095 Mon Sep 17 00:00:00 2001 From: Kaalleen Date: Sun, 21 May 2023 17:53:04 +0200 Subject: [PATCH] make each side units translatable --- lib/elements/satin_column.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/elements/satin_column.py b/lib/elements/satin_column.py index 0cc332033..b3fba9eb9 100644 --- a/lib/elements/satin_column.py +++ b/lib/elements/satin_column.py @@ -108,7 +108,7 @@ class SatinColumn(EmbroideryElement): _('Random percentage of satin width decrease'), tooltip=_('shorten stitch across rails at most this percent. ' 'Two values separated by a space may be used for an aysmmetric effect.'), - default=0, type='float', unit="% (each side)", sort_index=91) + default=0, type='float', unit="_(% (each side))", sort_index=91) @cache def random_width_decrease(self): return self.get_split_float_param("random_width_decrease_percent", (0, 0)) / 100 @@ -118,7 +118,7 @@ class SatinColumn(EmbroideryElement): _('Random percentage of satin width increase'), tooltip=_('lengthen stitch across rails at most this percent. ' 'Two values separated by a space may be used for an aysmmetric effect.'), - default=0, type='float', unit="% (each side)", sort_index=90) + default=0, type='float', unit="_(% (each side))", sort_index=90) @cache def random_width_increase(self): return self.get_split_float_param("random_width_increase_percent", (0, 0)) / 100 @@ -218,7 +218,7 @@ class SatinColumn(EmbroideryElement): tooltip=_('Satin stitches pull the fabric together, resulting in a column narrower than you draw in Inkscape. ' 'This setting expands each pair of needle penetrations outward from the center of the satin column by a fixed length. ' 'Two values separated by a space may be used for an aysmmetric effect.'), - unit='mm (each side)', + unit=_('mm (each side)'), type='float', default=0, sort_index=7) @@ -314,7 +314,7 @@ class SatinColumn(EmbroideryElement): _('Inset distance (fixed)'), tooltip=_('Shrink the outline by a fixed length, to prevent the underlay from showing around the outside of the satin column.'), group=_('Contour Underlay'), - unit='mm (each side)', + unit=_('mm (each side)'), type='float', default=0.4, sort_index=2) @@ -329,7 +329,7 @@ class SatinColumn(EmbroideryElement): tooltip=_('Shrink the outline by a proportion of the column width, ' 'to prevent the underlay from showing around the outside of the satin column.'), group=_('Contour Underlay'), - unit='% (each side)', type='float', default=0, + unit=_('% (each side)'), type='float', default=0, sort_index=3) @cache def contour_underlay_inset_percent(self): @@ -389,7 +389,7 @@ class SatinColumn(EmbroideryElement): @param('zigzag_underlay_inset_mm', _('Inset amount (fixed)'), tooltip=_('default: half of contour underlay inset'), - unit='mm (each side)', + unit=_('mm (each side)'), group=_('Zig-zag Underlay'), type='float', default="") @@ -409,7 +409,7 @@ class SatinColumn(EmbroideryElement): @param('zigzag_underlay_inset_percent', _('Inset amount (proportional)'), tooltip=_('default: half of contour underlay inset'), - unit='% (each side)', + unit=_('% (each side)'), group=_('Zig-zag Underlay'), type='float', default="")