aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-07-05 22:21:21 +0000
committerrowanbeentje <rowan@beent.je>2010-07-05 22:21:21 +0000
commit653c05d033c158a1120cecaf368a0f619828924a (patch)
treecec52d8104af9162d3edd55737ae3567c47f7506 /Source
parent9de3398e48f50646f616893df3eba30211d94eec (diff)
downloadsequelpro-653c05d033c158a1120cecaf368a0f619828924a.tar.gz
sequelpro-653c05d033c158a1120cecaf368a0f619828924a.tar.bz2
sequelpro-653c05d033c158a1120cecaf368a0f619828924a.zip
- Fix localisation of NSTextField labels - broken in r2418
- Add localisation support for NSSegmentedControl segment tooltips
Diffstat (limited to 'Source')
-rw-r--r--Source/DMLocalizedNibBundle.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/DMLocalizedNibBundle.m b/Source/DMLocalizedNibBundle.m
index 1d5949ee..8b5b389a 100644
--- a/Source/DMLocalizedNibBundle.m
+++ b/Source/DMLocalizedNibBundle.m
@@ -169,6 +169,9 @@ static NSMutableArray *deliciousBindingKeys = nil;
NSString *localizedSegmentLabel = [self _localizedStringForString:[segmentedControl labelForSegment:segmentIndex] table:table];
if (localizedSegmentLabel)
[segmentedControl setLabel:localizedSegmentLabel forSegment:segmentIndex];
+ NSString *localizedSegmentTooltip = [self _localizedStringForString:[[segmentedControl cell] toolTipForSegment:segmentIndex] table:table];
+ if (localizedSegmentTooltip)
+ [[segmentedControl cell] setToolTip:localizedSegmentTooltip forSegment:segmentIndex];
[self _localizeStringsInObject:[segmentedControl menuForSegment:segmentIndex] table:table];
}
@@ -190,6 +193,7 @@ static NSMutableArray *deliciousBindingKeys = nil;
}
[view bind:@"value" toObject:[vb objectForKey:NSObservedObjectKey] withKeyPath:[vb objectForKey:NSObservedKeyPathKey] options:lvb];
}
+ [self _localizeStringsInObject:[control cell] table:table];
} else
[self _localizeStringsInObject:[control cell] table:table];