From 653c05d033c158a1120cecaf368a0f619828924a Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Mon, 5 Jul 2010 22:21:21 +0000 Subject: - Fix localisation of NSTextField labels - broken in r2418 - Add localisation support for NSSegmentedControl segment tooltips --- Source/DMLocalizedNibBundle.m | 4 ++++ 1 file changed, 4 insertions(+) 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]; -- cgit v1.2.3