"Plus v2.4 (Model 140507)": (250, 250, 250, 1.75, 208, 40, 70, 30, 1),
}
- super(PrintrbotPage, self).__init__(parent, "Printrbot Selection")
+ super(PrintrbotPage, self).__init__(parent, _("Printrbot Selection"))
self.AddText(_("Select which Printrbot machine you have:"))
keys = self._printer_info.keys()
keys.sort()
class OtherMachineSelectPage(InfoPage):
def __init__(self, parent):
- super(OtherMachineSelectPage, self).__init__(parent, "Other machine information")
+ super(OtherMachineSelectPage, self).__init__(parent, _("Other machine information"))
self.AddText(_("The following pre-defined machine profiles are available"))
self.AddText(_("Note that these profiles are not guaranteed to give good results,\nor work at all. Extra tweaks might be required.\nIf you find issues with the predefined profiles,\nor want an extra profile.\nPlease report it at the github issue tracker."))
self.options = []
item.Bind(wx.EVT_RADIOBUTTON, self.OnProfileSelect)
self.options.append(item)
self.AddSeperator()
- item = self.AddRadioButton('Custom...')
+ item = self.AddRadioButton(_('Custom...'))
item.SetValue(True)
item.Bind(wx.EVT_RADIOBUTTON, self.OnOtherSelect)
class OtherMachineInfoPage(InfoPage):
def __init__(self, parent):
- super(OtherMachineInfoPage, self).__init__(parent, "Cura Ready!")
+ super(OtherMachineInfoPage, self).__init__(parent, _("Cura Ready!"))
self.AddText(_("Cura is now ready to be used!"))
class CustomRepRapInfoPage(InfoPage):
def __init__(self, parent):
- super(CustomRepRapInfoPage, self).__init__(parent, "Custom RepRap information")
+ super(CustomRepRapInfoPage, self).__init__(parent, _("Custom RepRap information"))
self.AddText(_("RepRap machines can be vastly different, so here you can set your own settings."))
self.AddText(_("Be sure to review the default profile before running it on your machine."))
self.AddText(_("If you like a default profile for your machine added,\nthen make an issue on github."))
class UltimakerCheckupPage(InfoPage):
def __init__(self, parent):
- super(UltimakerCheckupPage, self).__init__(parent, "Ultimaker Checkup")
+ super(UltimakerCheckupPage, self).__init__(parent, _("Ultimaker Checkup"))
self.checkBitmap = wx.Bitmap(resources.getPathForImage('checkmark.png'))
self.crossBitmap = wx.Bitmap(resources.getPathForImage('cross.png'))
class UltimakerCalibrationPage(InfoPage):
def __init__(self, parent):
- super(UltimakerCalibrationPage, self).__init__(parent, "Ultimaker Calibration")
+ super(UltimakerCalibrationPage, self).__init__(parent, _("Ultimaker Calibration"))
self.AddText("Your Ultimaker requires some calibration.")
self.AddText("This calibration is needed for a proper extrusion amount.")
class UltimakerCalibrateStepsPerEPage(InfoPage):
def __init__(self, parent):
- super(UltimakerCalibrateStepsPerEPage, self).__init__(parent, "Ultimaker Calibration")
+ super(UltimakerCalibrateStepsPerEPage, self).__init__(parent, _("Ultimaker Calibration"))
#if profile.getMachineSetting('steps_per_e') == '0':
# profile.putMachineSetting('steps_per_e', '865.888')
class Ultimaker2ReadyPage(InfoPage):
def __init__(self, parent):
- super(Ultimaker2ReadyPage, self).__init__(parent, "Ultimaker2")
- self.AddText('Congratulations on your the purchase of your brand new Ultimaker2.')
- self.AddText('Cura is now ready to be used with your Ultimaker2.')
+ super(Ultimaker2ReadyPage, self).__init__(parent, _("Ultimaker2"))
+ self.AddText(_('Congratulations on your the purchase of your brand new Ultimaker2.'))
+ self.AddText(_('Cura is now ready to be used with your Ultimaker2.'))
self.AddSeperator()
class LulzbotReadyPage(InfoPage):
def __init__(self, parent):
- super(LulzbotReadyPage, self).__init__(parent, "LulzBot TAZ/Mini")
- self.AddText('Cura is now ready to be used with your LulzBot 3D printer.')
+ super(LulzbotReadyPage, self).__init__(parent, _("LulzBot TAZ/Mini"))
+ self.AddText(_('Cura is now ready to be used with your LulzBot 3D printer.'))
self.AddSeperator()
- self.AddText('For more information about using Cura with your LulzBot')
- self.AddText('3D printer, please visit www.LulzBot.com/cura')
+ self.AddText(_('For more information about using Cura with your LulzBot'))
+ self.AddText(_('3D printer, please visit www.LulzBot.com/cura'))
self.AddSeperator()
class configWizard(wx.wizard.Wizard):
def __init__(self, addNew = False):
- super(configWizard, self).__init__(None, -1, "Configuration Wizard")
+ super(configWizard, self).__init__(None, -1, _("Configuration Wizard"))
self.Bind(wx.wizard.EVT_WIZARD_PAGE_CHANGED, self.OnPageChanged)
self.Bind(wx.wizard.EVT_WIZARD_PAGE_CHANGING, self.OnPageChanging)
class bedLevelWizardMain(InfoPage):
def __init__(self, parent):
- super(bedLevelWizardMain, self).__init__(parent, "Bed leveling wizard")
+ super(bedLevelWizardMain, self).__init__(parent, _("Bed leveling wizard"))
- self.AddText('This wizard will help you in leveling your printer bed')
+ self.AddText(_('This wizard will help you in leveling your printer bed'))
self.AddSeperator()
- self.AddText('It will do the following steps')
- self.AddText('* Move the printer head to each corner')
- self.AddText(' and let you adjust the height of the bed to the nozzle')
- self.AddText('* Print a line around the bed to check if it is level')
+ self.AddText(_('It will do the following steps'))
+ self.AddText(_('* Move the printer head to each corner'))
+ self.AddText(_(' and let you adjust the height of the bed to the nozzle'))
+ self.AddText(_('* Print a line around the bed to check if it is level'))
self.AddSeperator()
- self.connectButton = self.AddButton('Connect to printer')
+ self.connectButton = self.AddButton(_('Connect to printer'))
self.comm = None
self.infoBox = self.AddInfoBox()
- self.resumeButton = self.AddButton('Resume')
- self.upButton, self.downButton = self.AddDualButton('Up 0.2mm', 'Down 0.2mm')
- self.upButton2, self.downButton2 = self.AddDualButton('Up 10mm', 'Down 10mm')
+ self.resumeButton = self.AddButton(_('Resume'))
+ self.upButton, self.downButton = self.AddDualButton(_('Up 0.2mm'), _('Down 0.2mm'))
+ self.upButton2, self.downButton2 = self.AddDualButton(_('Up 10mm'), _('Down 10mm'))
self.resumeButton.Enable(False)
self.upButton.Enable(False)
return
self.connectButton.Enable(False)
self.comm = machineCom.MachineCom(callbackObject=self)
- self.infoBox.SetBusy('Connecting to machine.')
+ self.infoBox.SetBusy(_('Connecting to machine.'))
self._wizardState = 0
def OnBedUp(self, e):
feedZ = profile.getProfileSettingFloat('print_speed') * 60
feedTravel = profile.getProfileSettingFloat('travel_speed') * 60
if self._wizardState == -1:
- wx.CallAfter(self.infoBox.SetInfo, 'Homing printer...')
+ wx.CallAfter(self.infoBox.SetInfo, _('Homing printer...'))
wx.CallAfter(self.upButton.Enable, False)
wx.CallAfter(self.downButton.Enable, False)
wx.CallAfter(self.upButton2.Enable, False)
self._wizardState = 1
elif self._wizardState == 2:
if profile.getMachineSetting('has_heated_bed') == 'True':
- wx.CallAfter(self.infoBox.SetBusy, 'Moving head to back center...')
+ wx.CallAfter(self.infoBox.SetBusy, _('Moving head to back center...'))
self.comm.sendCommand('G1 Z3 F%d' % (feedZ))
self.comm.sendCommand('G1 X%d Y%d F%d' % (profile.getMachineSettingFloat('machine_width') / 2.0, profile.getMachineSettingFloat('machine_depth'), feedTravel))
self.comm.sendCommand('G1 Z0 F%d' % (feedZ))
self.comm.sendCommand('M400')
self._wizardState = 3
else:
- wx.CallAfter(self.infoBox.SetBusy, 'Moving head to back left corner...')
+ wx.CallAfter(self.infoBox.SetBusy, _('Moving head to back left corner...'))
self.comm.sendCommand('G1 Z3 F%d' % (feedZ))
self.comm.sendCommand('G1 X%d Y%d F%d' % (0, profile.getMachineSettingFloat('machine_depth'), feedTravel))
self.comm.sendCommand('G1 Z0 F%d' % (feedZ))
self._wizardState = 3
elif self._wizardState == 4:
if profile.getMachineSetting('has_heated_bed') == 'True':
- wx.CallAfter(self.infoBox.SetBusy, 'Moving head to front right corner...')
+ wx.CallAfter(self.infoBox.SetBusy, _('Moving head to front right corner...'))
self.comm.sendCommand('G1 Z3 F%d' % (feedZ))
self.comm.sendCommand('G1 X%d Y%d F%d' % (profile.getMachineSettingFloat('machine_width') - 5.0, 5, feedTravel))
self.comm.sendCommand('G1 Z0 F%d' % (feedZ))
self.comm.sendCommand('M400')
self._wizardState = 7
else:
- wx.CallAfter(self.infoBox.SetBusy, 'Moving head to back right corner...')
+ wx.CallAfter(self.infoBox.SetBusy, _('Moving head to back right corner...'))
self.comm.sendCommand('G1 Z3 F%d' % (feedZ))
self.comm.sendCommand('G1 X%d Y%d F%d' % (profile.getMachineSettingFloat('machine_width') - 5.0, profile.getMachineSettingFloat('machine_depth') - 25, feedTravel))
self.comm.sendCommand('G1 Z0 F%d' % (feedZ))
self.comm.sendCommand('M400')
self._wizardState = 5
elif self._wizardState == 6:
- wx.CallAfter(self.infoBox.SetBusy, 'Moving head to front right corner...')
+ wx.CallAfter(self.infoBox.SetBusy, _('Moving head to front right corner...'))
self.comm.sendCommand('G1 Z3 F%d' % (feedZ))
self.comm.sendCommand('G1 X%d Y%d F%d' % (profile.getMachineSettingFloat('machine_width') - 5.0, 20, feedTravel))
self.comm.sendCommand('G1 Z0 F%d' % (feedZ))
self.comm.sendCommand('M400')
self._wizardState = 7
elif self._wizardState == 8:
- wx.CallAfter(self.infoBox.SetBusy, 'Heating up printer...')
+ wx.CallAfter(self.infoBox.SetBusy, _('Heating up printer...'))
self.comm.sendCommand('G1 Z15 F%d' % (feedZ))
self.comm.sendCommand('M104 S%d' % (profile.getProfileSettingFloat('print_temperature')))
self.comm.sendCommand('G1 X%d Y%d F%d' % (0, 0, feedTravel))
self._wizardState = 9
elif self._wizardState == 10:
self._wizardState = 11
- wx.CallAfter(self.infoBox.SetInfo, 'Printing a square on the printer bed at 0.3mm height.')
+ wx.CallAfter(self.infoBox.SetInfo, _('Printing a square on the printer bed at 0.3mm height.'))
feedZ = profile.getProfileSettingFloat('print_speed') * 60
feedPrint = profile.getProfileSettingFloat('print_speed') * 60
feedTravel = profile.getProfileSettingFloat('travel_speed') * 60
def mcTempUpdate(self, temp, bedTemp, targetTemp, bedTargetTemp):
if self._wizardState == 1:
self._wizardState = 2
- wx.CallAfter(self.infoBox.SetAttention, 'Adjust the front left screw of your printer bed\nSo the nozzle just hits the bed.')
+ wx.CallAfter(self.infoBox.SetAttention, _('Adjust the front left screw of your printer bed\nSo the nozzle just hits the bed.'))
wx.CallAfter(self.resumeButton.Enable, True)
elif self._wizardState == 3:
self._wizardState = 4
if profile.getMachineSetting('has_heated_bed') == 'True':
- wx.CallAfter(self.infoBox.SetAttention, 'Adjust the back screw of your printer bed\nSo the nozzle just hits the bed.')
+ wx.CallAfter(self.infoBox.SetAttention, _('Adjust the back screw of your printer bed\nSo the nozzle just hits the bed.'))
else:
- wx.CallAfter(self.infoBox.SetAttention, 'Adjust the back left screw of your printer bed\nSo the nozzle just hits the bed.')
+ wx.CallAfter(self.infoBox.SetAttention, _('Adjust the back left screw of your printer bed\nSo the nozzle just hits the bed.'))
wx.CallAfter(self.resumeButton.Enable, True)
elif self._wizardState == 5:
self._wizardState = 6
- wx.CallAfter(self.infoBox.SetAttention, 'Adjust the back right screw of your printer bed\nSo the nozzle just hits the bed.')
+ wx.CallAfter(self.infoBox.SetAttention, _('Adjust the back right screw of your printer bed\nSo the nozzle just hits the bed.'))
wx.CallAfter(self.resumeButton.Enable, True)
elif self._wizardState == 7:
self._wizardState = 8
- wx.CallAfter(self.infoBox.SetAttention, 'Adjust the front right screw of your printer bed\nSo the nozzle just hits the bed.')
+ wx.CallAfter(self.infoBox.SetAttention, _('Adjust the front right screw of your printer bed\nSo the nozzle just hits the bed.'))
wx.CallAfter(self.resumeButton.Enable, True)
elif self._wizardState == 9:
if temp[0] < profile.getProfileSettingFloat('print_temperature') - 5:
- wx.CallAfter(self.infoBox.SetInfo, 'Heating up printer: %d/%d' % (temp[0], profile.getProfileSettingFloat('print_temperature')))
+ wx.CallAfter(self.infoBox.SetInfo, _('Heating up printer: %d/%d') % (temp[0], profile.getProfileSettingFloat('print_temperature')))
else:
- wx.CallAfter(self.infoBox.SetAttention, 'The printer is hot now. Please insert some PLA filament into the printer.')
+ wx.CallAfter(self.infoBox.SetAttention, _('The printer is hot now. Please insert some PLA filament into the printer.'))
wx.CallAfter(self.resumeButton.Enable, True)
self._wizardState = 10
return
if self.comm.isOperational():
if self._wizardState == 0:
- wx.CallAfter(self.infoBox.SetAttention, 'Use the up/down buttons to move the bed and adjust your Z endstop.')
+ wx.CallAfter(self.infoBox.SetAttention, _('Use the up/down buttons to move the bed and adjust your Z endstop.'))
wx.CallAfter(self.upButton.Enable, True)
wx.CallAfter(self.downButton.Enable, True)
wx.CallAfter(self.upButton2.Enable, True)
self.comm.sendCommand('G92 E0')
self.comm.sendCommand('G1 E-10 F%d' % (profile.getProfileSettingFloat('retraction_speed') * 60))
self.comm.sendCommand('M104 S0')
- wx.CallAfter(self.infoBox.SetInfo, 'Calibration finished.\nThe squares on the bed should slightly touch each other.')
+ wx.CallAfter(self.infoBox.SetInfo, _('Calibration finished.\nThe squares on the bed should slightly touch each other.'))
wx.CallAfter(self.infoBox.SetReadyIndicator)
wx.CallAfter(self.GetParent().FindWindowById(wx.ID_FORWARD).Enable)
wx.CallAfter(self.connectButton.Enable, True)
self._wizardState = 12
elif self.comm.isError():
- wx.CallAfter(self.infoBox.SetError, 'Failed to establish connection with the printer.', 'http://wiki.ultimaker.com/Cura:_Connection_problems')
+ wx.CallAfter(self.infoBox.SetError, _('Failed to establish connection with the printer.'), 'http://wiki.ultimaker.com/Cura:_Connection_problems')
def mcMessage(self, message):
pass
def __init__(self, parent):
super(headOffsetCalibrationPage, self).__init__(parent, "Printer head offset calibration")
- self.AddText('This wizard will help you in calibrating the printer head offsets of your dual extrusion machine')
+ self.AddText(_('This wizard will help you in calibrating the printer head offsets of your dual extrusion machine'))
self.AddSeperator()
- self.connectButton = self.AddButton('Connect to printer')
+ self.connectButton = self.AddButton(_('Connect to printer'))
self.comm = None
self.infoBox = self.AddInfoBox()
self.textEntry = self.AddTextCtrl('')
self.textEntry.Enable(False)
- self.resumeButton = self.AddButton('Resume')
+ self.resumeButton = self.AddButton(_('Resume'))
self.resumeButton.Enable(False)
self.Bind(wx.EVT_BUTTON, self.OnConnect, self.connectButton)
return
self.connectButton.Enable(False)
self.comm = machineCom.MachineCom(callbackObject=self)
- self.infoBox.SetBusy('Connecting to machine.')
+ self.infoBox.SetBusy(_('Connecting to machine.'))
self._wizardState = 0
def OnResume(self, e):
if self._wizardState == 2:
self._wizardState = 3
- wx.CallAfter(self.infoBox.SetBusy, 'Printing initial calibration cross')
+ wx.CallAfter(self.infoBox.SetBusy, _('Printing initial calibration cross'))
w = profile.getMachineSettingFloat('machine_width')
d = profile.getMachineSettingFloat('machine_depth')
return
profile.putPreference('extruder_offset_x1', self.textEntry.GetValue())
self._wizardState = 5
- self.infoBox.SetAttention('Please measure the distance between the horizontal lines in millimeters.')
+ self.infoBox.SetAttention(_('Please measure the distance between the horizontal lines in millimeters.'))
self.textEntry.SetValue('0.0')
self.textEntry.Enable(True)
elif self._wizardState == 5:
return
profile.putPreference('extruder_offset_y1', self.textEntry.GetValue())
self._wizardState = 6
- self.infoBox.SetBusy('Printing the fine calibration lines.')
+ self.infoBox.SetBusy(_('Printing the fine calibration lines.'))
self.textEntry.SetValue('')
self.textEntry.Enable(False)
self.resumeButton.Enable(False)
x = profile.getMachineSettingFloat('extruder_offset_x1')
x += -1.0 + n * 0.1
profile.putPreference('extruder_offset_x1', '%0.2f' % (x))
- self.infoBox.SetAttention('Which horizontal line number lays perfect on top of each other? Front most line is zero.')
+ self.infoBox.SetAttention(_('Which horizontal line number lays perfect on top of each other? Front most line is zero.'))
self.textEntry.SetValue('10')
self._wizardState = 8
elif self._wizardState == 8:
y = profile.getMachineSettingFloat('extruder_offset_y1')
y += -1.0 + n * 0.1
profile.putPreference('extruder_offset_y1', '%0.2f' % (y))
- self.infoBox.SetInfo('Calibration finished. Offsets are: %s %s' % (profile.getMachineSettingFloat('extruder_offset_x1'), profile.getMachineSettingFloat('extruder_offset_y1')))
+ self.infoBox.SetInfo(_('Calibration finished. Offsets are: %s %s') % (profile.getMachineSettingFloat('extruder_offset_x1'), profile.getMachineSettingFloat('extruder_offset_y1')))
self.infoBox.SetReadyIndicator()
self._wizardState = 8
self.comm.close()
if self._wizardState == 1:
if temp[0] >= 210 and temp[1] >= 210:
self._wizardState = 2
- wx.CallAfter(self.infoBox.SetAttention, 'Please load both extruders with PLA.')
+ wx.CallAfter(self.infoBox.SetAttention, _('Please load both extruders with PLA.'))
wx.CallAfter(self.resumeButton.Enable, True)
wx.CallAfter(self.resumeButton.SetFocus)
return
if self.comm.isOperational():
if self._wizardState == 0:
- wx.CallAfter(self.infoBox.SetInfo, 'Homing printer and heating up both extruders.')
+ wx.CallAfter(self.infoBox.SetInfo, _('Homing printer and heating up both extruders.'))
self.comm.sendCommand('M105')
self.comm.sendCommand('M104 S220 T0')
self.comm.sendCommand('M104 S220 T1')
if not self.comm.isPrinting():
if self._wizardState == 3:
self._wizardState = 4
- wx.CallAfter(self.infoBox.SetAttention, 'Please measure the distance between the vertical lines in millimeters.')
+ wx.CallAfter(self.infoBox.SetAttention, _('Please measure the distance between the vertical lines in millimeters.'))
wx.CallAfter(self.textEntry.SetValue, '0.0')
wx.CallAfter(self.textEntry.Enable, True)
wx.CallAfter(self.resumeButton.Enable, True)
wx.CallAfter(self.resumeButton.SetFocus)
elif self._wizardState == 6:
self._wizardState = 7
- wx.CallAfter(self.infoBox.SetAttention, 'Which vertical line number lays perfect on top of each other? Leftmost line is zero.')
+ wx.CallAfter(self.infoBox.SetAttention, _('Which vertical line number lays perfect on top of each other? Leftmost line is zero.'))
wx.CallAfter(self.textEntry.SetValue, '10')
wx.CallAfter(self.textEntry.Enable, True)
wx.CallAfter(self.resumeButton.Enable, True)
wx.CallAfter(self.resumeButton.SetFocus)
elif self.comm.isError():
- wx.CallAfter(self.infoBox.SetError, 'Failed to establish connection with the printer.', 'http://wiki.ultimaker.com/Cura:_Connection_problems')
+ wx.CallAfter(self.infoBox.SetError, _('Failed to establish connection with the printer.'), 'http://wiki.ultimaker.com/Cura:_Connection_problems')
def mcMessage(self, message):
pass
class bedLevelWizard(wx.wizard.Wizard):
def __init__(self):
- super(bedLevelWizard, self).__init__(None, -1, "Bed leveling wizard")
+ super(bedLevelWizard, self).__init__(None, -1, _("Bed leveling wizard"))
self.Bind(wx.wizard.EVT_WIZARD_PAGE_CHANGED, self.OnPageChanged)
self.Bind(wx.wizard.EVT_WIZARD_PAGE_CHANGING, self.OnPageChanging)
class headOffsetWizard(wx.wizard.Wizard):
def __init__(self):
- super(headOffsetWizard, self).__init__(None, -1, "Head offset wizard")
+ super(headOffsetWizard, self).__init__(None, -1, _("Head offset wizard"))
self.Bind(wx.wizard.EVT_WIZARD_PAGE_CHANGED, self.OnPageChanged)
self.Bind(wx.wizard.EVT_WIZARD_PAGE_CHANGING, self.OnPageChanging)