aboutsummaryrefslogtreecommitdiff
path: root/AppKit/GTMUILocalizer.h
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-09-09 21:00:41 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-09-09 21:00:41 +0000
commit42aa1c06dd802bfadc0f77f6b5a05f7f6fa2c067 (patch)
tree98d92b27ba7338765a3de92679e68f32b84090f2 /AppKit/GTMUILocalizer.h
parentef53b5beb4295064e9a8568362052f09d18906dc (diff)
[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)
Diffstat (limited to 'AppKit/GTMUILocalizer.h')
-rw-r--r--AppKit/GTMUILocalizer.h8
1 files changed, 7 insertions, 1 deletions
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.