aboutsummaryrefslogtreecommitdiffstats
path: root/Source/DMLocalizedNibBundle.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-07-04 23:58:29 +0000
committerrowanbeentje <rowan@beent.je>2010-07-04 23:58:29 +0000
commit1f17c71b8558565126b32a1d1d3da4e6b0565153 (patch)
treedcb0cc3e98b30db47158417c5c9cb2c796d409fe /Source/DMLocalizedNibBundle.m
parent5721108c443af0ed72341e68d61eb7be3380199a (diff)
downloadsequelpro-1f17c71b8558565126b32a1d1d3da4e6b0565153.tar.gz
sequelpro-1f17c71b8558565126b32a1d1d3da4e6b0565153.tar.bz2
sequelpro-1f17c71b8558565126b32a1d1d3da4e6b0565153.zip
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.
Diffstat (limited to 'Source/DMLocalizedNibBundle.m')
-rw-r--r--Source/DMLocalizedNibBundle.m5
1 files changed, 5 insertions, 0 deletions
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];