You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add French, Spanish and German translations
* Clear defaults preferences before running UI tests, and improve preference restoration afterwards
* Make window resizable and have minimum size
* Add undo and redo capability
With thanks to Alex Nicol, Ted Byrne and Andreas Scheriau for reviewing and updating the French, Spanish and German translations!
Co-authored-by: Alexandre Nicol <nicol.alexandre1@gmail.com>
alert.informativeText =NSLocalizedString("Log out or restart your Mac for the changes to take effect.", comment:"Informative text for preferences update success sheet modal")
112
+
alert.addButton(withTitle:NSLocalizedString("Log out now", comment:"Log out now button text"))
113
+
alert.addButton(withTitle:NSLocalizedString("Log out later", comment:"Log out later button text"))
90
114
alert.alertStyle =.informational
91
115
alert.beginSheetModal(for: window){(response)in
92
116
switch response {
@@ -116,11 +140,11 @@ class MainWindowController: NSWindowController {
116
140
}
117
141
}
118
142
119
-
func presentErrorSheet(_ error:Error){
143
+
privatefunc presentErrorSheet(_ error:Error){
120
144
guardlet window =self.window else{return}
121
145
letalert=NSAlert(error: error)
122
-
alert.messageText ="The operation couldn't be completed"
123
-
alert.informativeText ="An unexpected error occurred. Please view the logs in the Console app for details."
146
+
alert.messageText =NSLocalizedString("The operation couldn't be completed", comment:"Title for error sheet")
147
+
alert.informativeText =NSLocalizedString("An unexpected error occurred. Please view the logs in the Console app for details.", comment:"Informative text for error sheet")
0 commit comments