Re: [gtk-osx-users] Using localization with "Application" menu with the gtk mac integration library.
- From: Kevin Bernhagen <kevin calxalot net>
- To: John Ralls <jralls ceridwen us>
- Cc: Joshua Pettus <jshpettus gmail com>, gtk-osx-users-list gnome org
- Subject: Re: [gtk-osx-users] Using localization with "Application" menu with the gtk mac integration library.
- Date: Thu, 2 Oct 2014 16:17:11 -0700
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]