From 42aa1c06dd802bfadc0f77f6b5a05f7f6fa2c067 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Wed, 9 Sep 2009 21:00:41 +0000 Subject: [Author: thomasvl] Support the toolbar item's view in state logging. Add table columns to ui localizer (tests will come in a following cl). Add a toolbar item that doesn't localize to help catch bugs in the future like we had on first impl. Add a tooltip to the toolbar item in the unittest for ui localizer. Add a note about the limits to ui localizer and toolbars due to the NSToolbar api's limits. R=dmaclach DELTA=746 (90 added, 599 deleted, 57 changed) --- AppKit/GTMUILocalizer.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'AppKit/GTMUILocalizer.h') diff --git a/AppKit/GTMUILocalizer.h b/AppKit/GTMUILocalizer.h index c7db977..d346ae6 100644 --- a/AppKit/GTMUILocalizer.h +++ b/AppKit/GTMUILocalizer.h @@ -71,11 +71,17 @@ - (id)initWithBundle:(NSBundle *)bundle; - (void)localizeObject:(id)object recursively:(BOOL)recursive; - (void)localizeWindow:(NSWindow *)window recursively:(BOOL)recursive; -- (void)localizeToolbar:(NSToolbar *)toolbar; - (void)localizeView:(NSView *)view recursively:(BOOL)recursive; - (void)localizeMenu:(NSMenu *)menu recursively:(BOOL)recursive; - (void)localizeCell:(NSCell *)cell recursively:(BOOL)recursive; +// NOTE: NSToolbar localization support is limited to only working on the +// default items in the toolbar. We cannot localize items that are on of the +// customization palette but not in the default items because there is not an +// API for NSToolbar to get all possible items. You are responsible for +// localizing all non-default toolbar items by hand. +- (void)localizeToolbar:(NSToolbar *)toolbar; + // A method for subclasses to override in case you have a different // way to go about getting localized strings. // If |string| does not start with ^ you should return nil. -- cgit v1.2.3