aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-03-31 13:06:57 +0000
committerrowanbeentje <rowan@beent.je>2012-03-31 13:06:57 +0000
commit6e4f9bc26df299953ab29c60e97c361190ef8d7b (patch)
treef29dc91ec7313c6a87fe49973796c9f4744c3252 /Source
parent537a96297f236e2c41dd6d18ae317d2211a334a5 (diff)
downloadsequelpro-6e4f9bc26df299953ab29c60e97c361190ef8d7b.tar.gz
sequelpro-6e4f9bc26df299953ab29c60e97c361190ef8d7b.tar.bz2
sequelpro-6e4f9bc26df299953ab29c60e97c361190ef8d7b.zip
- Correctly localise table column header tooltips, improving Issue #1006
Diffstat (limited to 'Source')
-rw-r--r--Source/DMLocalizedNibBundle.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/DMLocalizedNibBundle.m b/Source/DMLocalizedNibBundle.m
index b9cbec28..86d6e671 100644
--- a/Source/DMLocalizedNibBundle.m
+++ b/Source/DMLocalizedNibBundle.m
@@ -179,6 +179,8 @@ static NSMutableArray *deliciousBindingKeys = nil;
} else if ([view isKindOfClass:[NSTableView class]]) {
for (NSTableColumn *column in [(NSTableView*)view tableColumns]) {
[self _localizeStringValueOfObject:[column headerCell] table:table];
+ NSString *localizedHeaderTip = [self _localizedStringForString:[column headerToolTip] table:table];
+ if (localizedHeaderTip) [column setHeaderToolTip:localizedHeaderTip];
}
} else if ([view isKindOfClass:[NSTextField class]]) {