OSX: Fix & localize native browser dialog
|Reported by:||fingolfin||Owned by:||criezy|
|Priority:||normal||Component:||Port: Mac OS X|
The attached patch fixes a problem with the native browser dialog on OS X (namely it ignored the dirBrowser flag), and also enables localization support in it. Indeed, previously the browser title string was completely ignored, now it is used. And the default button of the browser dialog now is labelled "Choose".
It also removes the use of several deprecated AppKit methods.
Ticket imported from: #3582260. Ticket imported from: patches/1567.