summaryrefslogtreecommitdiff
path: root/embroider_simulate.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2018-02-04 22:38:24 -0500
committerGitHub <noreply@github.com>2018-02-04 22:38:24 -0500
commit72d52dc317b562f728b772f058ab2c5059a2a618 (patch)
tree8c975a567e99d89514b6b49430b5b439d800f3e4 /embroider_simulate.py
parent1dd76646cc5379e686a1c8785a4dc38b6e24c931 (diff)
framework for translations (#55)
sets up all the plumbing to send strings to CrowdIn for translation and incorporate the results
Diffstat (limited to 'embroider_simulate.py')
-rw-r--r--embroider_simulate.py6
1 files changed, 4 insertions, 2 deletions
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)