Hey John, Thank-you too for all your help. I was wondering if you could update the gtk-mac-integration library with Kevin’s line for both Quit and Hide areas.
I took the liberty of updating all the String files, erring on the side of GIMP with a couple of the translations, on the basis that you said you said you just used google translate, so they must know something. ;) I also renamed the files to GtkosxApplication.strings. https://www.dropbox.com/s/vclprvpmdv413fm/GTKOSXApplicationStrings.zip?dl=0 Best Regards, Josh Pettus On Oct 3, 2014, at 1:01 AM, Kevin Bernhagen <[email protected]> wrote: > Also missing a comma. Make sure you're not pasting "smart quotes". > Changed key to @"Hide %@" for good form, which is what you were using > initially. > > menuitem = [[NSMenuItem alloc] initWithTitle: [NSString stringWithFormat: > NSLocalizedStringFromTable (@"Hide %@", @"GtkosxApplication", @"Hide menu > item title"), appname] > action: @selector (hide:) > keyEquivalent: @"h"]; > > > On Oct 2, 2014, at 9:49 PM, Joshua Pettus <[email protected]> wrote: > > Hey! > > menuitem = [[NSMenuItem alloc] initWithTitle: [NSString stringWithFormat: > NSLocalizedStringFromTable (@"Hide" @"GtkosxApplication", @"Hide menu item > title"), appname] > action: @selector (hide:) > keyEquivalent: @"h”]; > > got > > compile error: use of undeclared identifier 'NSLocalizedStringFromTable' > > I’m not throwing in the towel yet. :) > > Regards, > Josh > > On Oct 3, 2014, at 12:36 AM, Kevin Bernhagen <[email protected]> wrote: > >> Sorry, I clipped the obj message. >> Try this. >> >> menuitem = [[NSMenuItem alloc] initWithTitle: [NSString stringWithFormat: >> NSLocalizedStringFromTable (@"Hide" "GtkosxApplication", @"Hide menu item >> title"), appname] >> action: @selector (hide:) >> keyEquivalent: @"h”]; >> >> >> On Oct 2, 2014, at 9:18 PM, Joshua Pettus <[email protected]> wrote: >> >> But these last two options you just gave, I got to compile with: >> >> menuitem = [[[NSMenuItem alloc] initWithTitle: [NSString stringWithFormat: >> NSLocalizedStringFromTable (@"Hide" "GtkosxApplication", @"Hide menu item >> title"), appname]] >> action: @selector (hide: ) keyEquivalent: @"h”]; (was missing a “[“) >> > >
_______________________________________________ Gtk-osx-users-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list
