adium/adium

Check WebCore for the translation of "Open Link" too.
adium-1.6
2013-02-21, Thijs Alkemade
87047401414b
Parents b3407bf65d5f
Children d98c0ce23ca9
Check WebCore for the translation of "Open Link" too.

Fixes #16101
--- a/Plugins/WebKit Message View/AIWebKitMessageViewController.m Thu Feb 21 21:07:02 2013 +0100
+++ b/Plugins/WebKit Message View/AIWebKitMessageViewController.m Thu Feb 21 22:11:34 2013 +0100
@@ -873,9 +873,9 @@
(tag == WebMenuItemTagReload)) {
[webViewMenuItems removeObjectIdenticalTo:menuItem];
} else {
- //This isn't as nice; there's no tag available. Use the localization from WebKit to look at the title.
- AILogWithSignature(@"Comparing [menuItem title] = %@ with NSLocalizedStringFromTableInBundle(@\"Open Link\", nil, [NSBundle bundleForClass:[WebView class]], nil) = %@", [menuItem title], NSLocalizedStringFromTableInBundle(@"Open Link", nil, [NSBundle bundleForClass:[WebView class]], nil));
- if ([[menuItem title] isEqualToString:NSLocalizedStringFromTableInBundle(@"Open Link", nil, [NSBundle bundleForClass:[WebView class]], nil)])
+ //This isn't as nice; there's no tag available. Use the localization from WebKit/WebCore, where it seems to be for some other people (#16101), to look at the title.
+ if ([[menuItem title] isEqualToString:NSLocalizedStringFromTableInBundle(@"Open Link", nil, [NSBundle bundleForClass:[WebView class]], nil)] ||
+ [[menuItem title] isEqualToString:NSLocalizedStringFromTableInBundle(@"Open Link", nil, [NSBundle bundleWithIdentifier:@"com.apple.WebCore"], nil)])
[webViewMenuItems removeObjectIdenticalTo:menuItem];
}
}