adium 5344:87047401414b: Check WebCore for the translation of "O...
commits at adium.im
commits at adium.im
Thu Feb 21 21:11:46 UTC 2013
details: http://hg.adium.im/adium/rev/87047401414b
revision: 5344:87047401414b
branch: adium-1.6
author: Thijs Alkemade <me at thijsalkema.de>
date: Thu Feb 21 22:11:34 2013 +0100
Check WebCore for the translation of "Open Link" too.
Fixes #16101
diffs (16 lines):
diff -r b3407bf65d5f -r 87047401414b Plugins/WebKit Message View/AIWebKitMessageViewController.m
--- 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];
}
}
More information about the commits
mailing list