Skip to content

Commit

Permalink
BF: translation of button labels were broken
Browse files Browse the repository at this point in the history
  • Loading branch information
hsogo committed Feb 16, 2023
1 parent 167734f commit b1b611e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions psychopy/app/preferencesDlg.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,15 +503,15 @@ def __init__(self, app):

# dialog controls, have builtin localization
sdbControls = wx.BoxSizer(wx.HORIZONTAL)
self.sdbControlsHelp = wx.Button(self.pnlMain, wx.ID_HELP)
self.sdbControlsHelp = wx.Button(self.pnlMain, wx.ID_HELP, _translate(" Help "))
sdbControls.Add(self.sdbControlsHelp, 0,
wx.LEFT | wx.ALL | wx.ALIGN_CENTER_VERTICAL,
border=3)
sdbControls.AddStretchSpacer()
# Add Okay and Cancel buttons
self.sdbControlsApply = wx.Button(self.pnlMain, wx.ID_APPLY)
self.sdbControlsOK = wx.Button(self.pnlMain, wx.ID_OK)
self.sdbControlsCancel = wx.Button(self.pnlMain, wx.ID_CANCEL)
self.sdbControlsApply = wx.Button(self.pnlMain, wx.ID_APPLY, _translate(" Apply "))
self.sdbControlsOK = wx.Button(self.pnlMain, wx.ID_OK, _translate(" OK "))
self.sdbControlsCancel = wx.Button(self.pnlMain, wx.ID_CANCEL, _translate(" Cancel "))
if sys.platform == "win32":
btns = [self.sdbControlsOK, self.sdbControlsApply, self.sdbControlsCancel]
else:
Expand Down

0 comments on commit b1b611e

Please sign in to comment.