--- hatari/src/gui-osx/AlertHooks.m 2019/04/01 07:13:04 1.1 +++ hatari/src/gui-osx/AlertHooks.m 2019/04/09 08:52:53 1.1.1.3 @@ -1,8 +1,8 @@ /* Hatari - AlertHooks.c - This file is distributed under the GNU Public License, version 2 or at - your option any later version. Read the file gpl.txt for details. + This file is distributed under the GNU General Public License, version 2 + or at your option any later version. Read the file gpl.txt for details. Hooked alerts, to be used instead of SDL alert windows @@ -20,7 +20,7 @@ */ int HookedAlertNotice(const char* szMessage) { - return (NSAlertDefaultReturn == NSRunInformationalAlertPanel(@"Hatari", [NSString stringWithCString:szMessage], nil, nil, nil)); + return (NSAlertDefaultReturn == NSRunInformationalAlertPanel(@"Hatari", [NSString stringWithCString:szMessage encoding:NSASCIIStringEncoding], nil, nil, nil)); } /*-----------------------------------------------------------------------*/ @@ -29,7 +29,9 @@ int HookedAlertNotice(const char* szMess */ int HookedAlertQuery(const char* szMessage) { - return (NSAlertDefaultReturn == NSRunAlertPanel(@"Hatari", [NSString stringWithCString:szMessage], @"OK", @"Cancel", nil)); + return (NSAlertDefaultReturn == NSRunAlertPanel(@"Hatari", [NSString stringWithCString:szMessage encoding:NSASCIIStringEncoding], + NSLocalizedStringFromTable(@"Ok",@"Localizable",@"comment"), + NSLocalizedStringFromTable(@"Cancel",@"Localizable",@"comment"), nil)); } #endif