Re: [gtk-osx-users] Using localization with "Application" menu with the gtk mac integration library.



This should be

+  menuitem = [[NSMenuItem alloc] initWithTitle: [NSString stringWithFormat: NSLocalizedStringFromTable 
(@"Hide", @"GtkosxApplication", @"Hide menu item title"), appname]]

Or if the looked up string is not a format string

+  menuitem = [[NSMenuItem alloc] initWithTitle: [NSString stringWithFormat:@"%@ %@", 
NSLocalizedStringFromTable (@"Hide", @"GtkosxApplication", @"Hide menu item title"), appname]]


On Oct 2, 2014, at 2:19 PM, John Ralls <jralls ceridwen us> wrote:

+  menuitem = [[NSMenuItem alloc] initWithTitle: [stringWithFormat: NSLocalizedStringFromTable (@"Hide", 
@"GtkosxApplication", @"Hide menu item title"), appname]]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]