kopia lustrzana https://github.com/inkstitch/inkstitch
i18n
rodzic
7eb36c5fc6
commit
a636462803
|
@ -44,11 +44,11 @@ class ControlPanel(wx.Panel):
|
||||||
self.btnForwardStitch.Bind(wx.EVT_BUTTON, self.animation_one_stitch_forward)
|
self.btnForwardStitch.Bind(wx.EVT_BUTTON, self.animation_one_stitch_forward)
|
||||||
self.direction = wx.Button(self, -1, label='>>')
|
self.direction = wx.Button(self, -1, label='>>')
|
||||||
self.direction.Bind(wx.EVT_BUTTON, self.on_direction_button)
|
self.direction.Bind(wx.EVT_BUTTON, self.on_direction_button)
|
||||||
self.pauseBtn = wx.Button(self, -1, label='Pause')
|
self.pauseBtn = wx.Button(self, -1, label=_('Pause'))
|
||||||
self.pauseBtn.Bind(wx.EVT_BUTTON, self.on_pause_start_button)
|
self.pauseBtn.Bind(wx.EVT_BUTTON, self.on_pause_start_button)
|
||||||
self.restartBtn = wx.Button(self, -1, label='Restart')
|
self.restartBtn = wx.Button(self, -1, label=_('Restart'))
|
||||||
self.restartBtn.Bind(wx.EVT_BUTTON, self.animation_restart)
|
self.restartBtn.Bind(wx.EVT_BUTTON, self.animation_restart)
|
||||||
self.quitBtn = wx.Button(self, -1, label='Quit')
|
self.quitBtn = wx.Button(self, -1, label=_('Quit'))
|
||||||
self.quitBtn.Bind(wx.EVT_BUTTON, self.animation_quit)
|
self.quitBtn.Bind(wx.EVT_BUTTON, self.animation_quit)
|
||||||
self.slider = wx.Slider(self, -1, value=1, minValue=1, maxValue=self.num_stitches,
|
self.slider = wx.Slider(self, -1, value=1, minValue=1, maxValue=self.num_stitches,
|
||||||
style=wx.SL_HORIZONTAL | wx.SL_LABELS)
|
style=wx.SL_HORIZONTAL | wx.SL_LABELS)
|
||||||
|
@ -150,7 +150,7 @@ class ControlPanel(wx.Panel):
|
||||||
|
|
||||||
def set_speed(self, speed):
|
def set_speed(self, speed):
|
||||||
self.speed = int(max(speed, 1))
|
self.speed = int(max(speed, 1))
|
||||||
self.speedST.SetLabel('Speed: %s stitches/sec' % self.speed)
|
self.speedST.SetLabel(_('Speed: %d stitches/sec') % self.speed)
|
||||||
self.hbSizer2.Layout()
|
self.hbSizer2.Layout()
|
||||||
|
|
||||||
if self.drawing_panel:
|
if self.drawing_panel:
|
||||||
|
@ -170,9 +170,6 @@ class ControlPanel(wx.Panel):
|
||||||
self.stitchBox.SetValue(stitch)
|
self.stitchBox.SetValue(stitch)
|
||||||
self.commandST.SetLabel(COMMAND_NAMES[command])
|
self.commandST.SetLabel(COMMAND_NAMES[command])
|
||||||
|
|
||||||
def set_stitch_label(self, stitch):
|
|
||||||
self.st1.SetLabel("Stitch # %d/%d" % (stitch, self.num_stitches))
|
|
||||||
|
|
||||||
def on_stitch_box(self, event):
|
def on_stitch_box(self, event):
|
||||||
stitch = self.stitchBox.GetValue()
|
stitch = self.stitchBox.GetValue()
|
||||||
self.slider.SetValue(stitch)
|
self.slider.SetValue(stitch)
|
||||||
|
@ -195,14 +192,14 @@ class ControlPanel(wx.Panel):
|
||||||
self.drawing_panel.go()
|
self.drawing_panel.go()
|
||||||
|
|
||||||
def on_start(self):
|
def on_start(self):
|
||||||
self.pauseBtn.SetLabel('Pause')
|
self.pauseBtn.SetLabel(_('Pause'))
|
||||||
|
|
||||||
def on_stop(self):
|
def on_stop(self):
|
||||||
self.pauseBtn.SetLabel('Start')
|
self.pauseBtn.SetLabel(_('Start'))
|
||||||
|
|
||||||
def on_pause_start_button(self, event):
|
def on_pause_start_button(self, event):
|
||||||
""""""
|
""""""
|
||||||
if self.pauseBtn.GetLabel() == 'Pause':
|
if self.pauseBtn.GetLabel() == _('Pause'):
|
||||||
self.animation_pause()
|
self.animation_pause()
|
||||||
else:
|
else:
|
||||||
self.animation_start()
|
self.animation_start()
|
||||||
|
|
23
messages.po
23
messages.po
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PROJECT VERSION\n"
|
"Project-Id-Version: PROJECT VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||||
"POT-Creation-Date: 2018-08-27 15:42-0400\n"
|
"POT-Creation-Date: 2018-08-27 15:53-0400\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -695,6 +695,27 @@ msgstr ""
|
||||||
msgid "COLOR CHANGE"
|
msgid "COLOR CHANGE"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/simulator.py:47 lib/simulator.py:195 lib/simulator.py:202
|
||||||
|
msgid "Pause"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/simulator.py:49
|
||||||
|
msgid "Restart"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/simulator.py:51
|
||||||
|
msgid "Quit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/simulator.py:153
|
||||||
|
#, python-format
|
||||||
|
msgid "Speed: %d stitches/sec"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/simulator.py:198
|
||||||
|
msgid "Start"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: lib/stitches/auto_fill.py:167
|
#: lib/stitches/auto_fill.py:167
|
||||||
msgid ""
|
msgid ""
|
||||||
"Unable to autofill. This most often happens because your shape is made "
|
"Unable to autofill. This most often happens because your shape is made "
|
||||||
|
|
Ładowanie…
Reference in New Issue