We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2395

Summary: OSX: App name in the menu bar is not localized.
Product: SDL Reporter: Tim McDaniel <tmcdaniel>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.1   
Hardware: All   
OS: Mac OS X (All)   

Description Tim McDaniel 2014-02-13 00:32:05 UTC
On OSX, the app name in the menu bar is not localized.  This can be fixed using the following implementation for GetApplicationName in SDL_cocoaevents.m:

static NSString *
GetApplicationName(void)
{
    NSDictionary *dict;
    NSString *appName = 0;

    appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"];
    if (!appName)
        appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"];	

    if (![appName length])
        appName = [[NSProcessInfo processInfo] processName];

    return appName;
}
Comment 1 Sam Lantinga 2014-02-23 01:33:00 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/6cc44a5d9eef