diff options
Diffstat (limited to 'AppKit/GTMUILocalizer.m')
-rw-r--r-- | AppKit/GTMUILocalizer.m | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/AppKit/GTMUILocalizer.m b/AppKit/GTMUILocalizer.m index efdfb92..72c0b9d 100644 --- a/AppKit/GTMUILocalizer.m +++ b/AppKit/GTMUILocalizer.m @@ -119,6 +119,9 @@ } - (void)localizeToolbar:(NSToolbar *)toolbar { + // NOTE: Like the header says, -items only gives us what is in the toolbar + // which is usually the default items, if the toolbar supports customization + // there is no way to fetch those possible items to tweak their contents. NSToolbarItem *item; GTM_FOREACH_OBJECT(item, [toolbar items]) { NSString *label = [item label]; @@ -267,6 +270,16 @@ } } } + + // Do NSTableView column headers. + if ([view isKindOfClass:[NSTableView class]]) { + NSTableView *tableView = (NSTableView *)view; + NSArray *columns = [tableView tableColumns]; + NSTableColumn *column = nil; + GTM_FOREACH_OBJECT(column, columns) { + [self localizeCell:[column headerCell] recursively:recursive]; + } + } } - (void)localizeMenu:(NSMenu *)menu recursively:(BOOL)recursive { |