Skip to content

Commit

Permalink
More Cocoa localization.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 10, 2009
1 parent 2cfd40d commit cac2477
Show file tree
Hide file tree
Showing 3 changed files with 294 additions and 82 deletions.
15 changes: 15 additions & 0 deletions gui_cocoa.m
Expand Up @@ -65,6 +65,13 @@ @interface MojoSetupController : NSView
IBOutlet NSMenuItem *QuitMenuItem;
IBOutlet NSMenuItem *AboutMenuItem;
IBOutlet NSMenuItem *HideMenuItem;
IBOutlet NSMenuItem *WindowMenuItem;
IBOutlet NSMenuItem *HideOthersMenuItem;
IBOutlet NSMenuItem *ShowAllMenuItem;
IBOutlet NSMenuItem *ServicesMenuItem;
IBOutlet NSMenuItem *MinimizeMenuItem;
IBOutlet NSMenuItem *ZoomMenuItem;
IBOutlet NSMenuItem *BringAllToFrontMenuItem;
ClickValue clickValue;
boolean canForward;
boolean needToBreakEventLoop;
Expand Down Expand Up @@ -151,6 +158,14 @@ - (void)prepareWidgets:(const char*)winTitle
[ProgressBar setUsesThreadedAnimation:YES]; // we don't pump fast enough.
[ProgressBar startAnimation:self];

[WindowMenuItem setTitle:[NSString stringWithUTF8String:_("Window")]];
[HideOthersMenuItem setTitle:[NSString stringWithUTF8String:_("Hide Others")]];
[ShowAllMenuItem setTitle:[NSString stringWithUTF8String:_("Show All")]];
[ServicesMenuItem setTitle:[NSString stringWithUTF8String:_("Services")]];
[MinimizeMenuItem setTitle:[NSString stringWithUTF8String:_("Minimize")]];
[ZoomMenuItem setTitle:[NSString stringWithUTF8String:_("Zoom")]];
[BringAllToFrontMenuItem setTitle:[NSString stringWithUTF8String:_("Bring All to Front")]];

NSString *appName;
appName = (NSString *) [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"];
if (appName == nil)
Expand Down

0 comments on commit cac2477

Please sign in to comment.