fix preinstall_alert and preuninstall_alert unicode support

This commit is contained in:
bartreardon
2014-10-23 15:38:21 +11:00
parent b164bd286d
commit 4f7d74231d
@@ -939,7 +939,12 @@ class MSCMainWindowController(NSWindowController):
# show the alert sheet
self.window().makeKeyAndOrderFront_(self)
alert = NSAlert.alertWithMessageText_defaultButton_alternateButton_otherButton_informativeTextWithFormat_(alertTitle, cancelLabel, OKLabel, nil, alertDetail)
alert = NSAlert.alertWithMessageText_defaultButton_alternateButton_otherButton_informativeTextWithFormat_(
alertTitle,
cancelLabel,
OKLabel,
nil,
u"%@", NSLocalizedString(alertDetail, u'alertDetail text'))
alert.beginSheetModalForWindow_modalDelegate_didEndSelector_contextInfo_(self.window(), self, self.actionAlertDidEnd_returnCode_contextInfo_, nil)
def actionAlertDidEnd_returnCode_contextInfo_(self, alert, returncode, contextinfo):