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 - OSX: App name in the menu bar is not localized.
Summary: OSX: App name in the menu bar is not localized.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.1
Hardware: All Mac OS X (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-13 00:32 UTC by Tim McDaniel
Modified: 2014-02-23 01:33 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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