Browse Source

closes #452 - modals missing i18n options

1.0.4-release--issue-470
Chris 4 years ago
parent
commit
df9284a467
2 changed files with 6 additions and 1 deletions
  1. 2
      gooey/gui/components/modals.py
  2. 5
      gooey/languages/english.json

2
gooey/gui/components/modals.py

@ -14,6 +14,8 @@ DialogConstants = namedtuple('DialogConstants', 'YES NO')(5103, 5104)
def showDialog(title, content, style):
dlg = wx.MessageDialog(None, content, title, style)
dlg.SetYesNoLabels(_('dialog_button_yes'), _('dialog_button_no'))
dlg.SetOKLabel(_('dialog_button_ok'))
result = dlg.ShowModal()
dlg.Destroy()
return result

5
gooey/languages/english.json

@ -42,5 +42,8 @@
"sure_you_want_to_exit": "Are you sure you want to exit?",
"sure_you_want_to_stop": "Are you sure you want to stop the task? \nInterruption can corrupt your data!",
"uh_oh": "\nUh oh! Looks like there was a problem. \nCopy the text from the status window to let your developer know what went wrong.\n",
"validation_failed": "One or more fields failed validation."
"validation_failed": "One or more fields failed validation.",
"dialog_button_yes": "Yes",
"dialog_button_no": "No",
"dialog_button_ok": "OK"
}
Loading…
Cancel
Save