For the record, the reason why “About Xboard” wasn’t translated is because HGM took that string and made it to output “About” which broke translations.
This is because the gtk integration library questionably adds the application name after “About” I’m not sure why it’s necessary. If there is an About menu item there, it was moved from somewhere else, and it almost always already had the application name affixed to it. I understand why it was done for the other items which are put there by the library.
I’m sure there is another solution for us to remove the second xboard in the about menu item, but I don’t understand why we have too.
Regards, Josh Pettus
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=0Best Regards, Josh Pettus
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 <jshpettus gmail com> 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 <kevin calxalot net> 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 <jshpettus gmail com> 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 “[“)
|