From 72d52dc317b562f728b772f058ab2c5059a2a618 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sun, 4 Feb 2018 22:38:24 -0500 Subject: framework for translations (#55) sets up all the plumbing to send strings to CrowdIn for translation and incorporate the results --- embroider_simulate.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'embroider_simulate.py') diff --git a/embroider_simulate.py b/embroider_simulate.py index 063a2f35..979668b0 100644 --- a/embroider_simulate.py +++ b/embroider_simulate.py @@ -6,8 +6,10 @@ import inkex import simplestyle import colorsys +import inkstitch from inkstitch import PIXELS_PER_MM -from embroider import patches_to_stitches, get_elements, elements_to_patches +from embroider import _, patches_to_stitches, get_elements, elements_to_patches + class EmbroiderySimulator(wx.Frame): def __init__(self, *args, **kwargs): @@ -298,7 +300,7 @@ class SimulateEffect(inkex.Effect): def effect(self): patches = elements_to_patches(get_elements(self)) app = wx.App() - frame = EmbroiderySimulator(None, -1, "Embroidery Simulation", wx.DefaultPosition, size=(1000, 1000), patches=patches) + frame = EmbroiderySimulator(None, -1, _("Embroidery Simulation"), wx.DefaultPosition, size=(1000, 1000), patches=patches) app.SetTopWindow(frame) frame.Show() wx.CallAfter(frame.go) -- cgit v1.2.3