Use BOXSTRING

This commit is contained in:
Twinaphex 2016-01-17 18:39:42 +01:00
parent 777af02e82
commit 4f0233fbf9

View File

@ -326,13 +326,13 @@ static void open_core_handler(NSOpenPanel *panel, NSInteger result)
}];
[[NSApplication sharedApplication] runModalForWindow:panel];
#else
[panel setTitle:NSLocalizedString(@"Load Core", @"open panel")];
[panel setTitle:NSLocalizedString(BOXSTRING("Load Core"), BOXSTRING("open panel"))];
[panel setDirectory:startdir];
[panel setCanChooseDirectories:NO];
[panel setCanChooseFiles:YES];
[panel setAllowsMultipleSelection:NO];
[panel setTreatsFilePackagesAsDirectories:NO];
NSInteger result = [panel runModalForTypes:[NSArray arrayWithObject:@"dylib"]];
NSInteger result = [panel runModalForTypes:[NSArray arrayWithObject:BOXSTRING("dylib")]];
if (result == 1)
open_core_handler(panel, result);
#endif