From 1f17c71b8558565126b32a1d1d3da4e6b0565153 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 4 Jul 2010 23:58:29 +0000 Subject: Localisation support improvements: - Add support for localizing table column header cell strings - Add support for automatically translating nibs loaded via the combination of [[NSNib alloc] init...] and [NSNib instantiateNibWithOwner:topLevelObjects:]. This loading method is required for various non-document based setups or dynamic loading. --- Source/DMLocalizedNibBundle.m | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/DMLocalizedNibBundle.m') diff --git a/Source/DMLocalizedNibBundle.m b/Source/DMLocalizedNibBundle.m index e9200bc0..428f8899 100644 --- a/Source/DMLocalizedNibBundle.m +++ b/Source/DMLocalizedNibBundle.m @@ -164,6 +164,11 @@ [self _localizeStringsInObject:[segmentedControl menuForSegment:segmentIndex] table:table]; } + } else if ([view isKindOfClass:[NSTableView class]]) { + for (NSTableColumn *column in [view tableColumns]) { + [self _localizeStringValueOfObject:[column headerCell] table:table]; + } + } else [self _localizeStringsInObject:[control cell] table:table]; -- cgit v1.2.3