def METHOD_NAME(self):
    self.setWindowTitle(app.caption(_("window title", "Edit Shortcut")))
    self.buttonNone.setText(_("&No shortcut"))
    self.buttonCustom.setText(_("Use a &custom shortcut:"))
    for num in range(4):
        self.keylabels[num].setText(_("Alternative #{num}:").format(num=num) if num else _("Primary shortcut:"))