BACKENDS: Fix compilation on Mac OS X without translation support

This commit is contained in:
Matthew Hoops 2011-07-13 09:20:34 -04:00
parent 79e08c68ac
commit 19bb69c7ed

View File

@ -53,7 +53,11 @@ void replaceApplicationMenuItems() {
appleMenu = [[NSMenu alloc] initWithTitle:@""];
// Get current encoding
#ifdef USE_TRANSLATION
NSStringEncoding stringEncoding = CFStringConvertEncodingToNSStringEncoding(CFStringConvertIANACharSetNameToEncoding((CFStringRef)[NSString stringWithCString:(TransMan.getCurrentCharset()).c_str() encoding:NSASCIIStringEncoding]));
#else
NSStringEncoding stringEncoding = NSASCIIStringEncoding;
#endif
// Add "About ScummVM" menu item
[appleMenu addItemWithTitle:[NSString stringWithCString:_("About ScummVM") encoding:stringEncoding] action:@selector(orderFrontStandardAboutPanel:) keyEquivalent:@""];