From a3bd0d4f83bf1d2c2e6f60b2bd39f22a655711ac Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Wed, 30 Dec 2009 16:34:56 +0000 Subject: [Author: avi] Since we can't localize the AXDescription on elements, we shouldn't even try. R=dmaclach,thomasvl DELTA=55 (28 added, 20 deleted, 7 changed) --- AppKit/GTMUILocalizer.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'AppKit/GTMUILocalizer.h') diff --git a/AppKit/GTMUILocalizer.h b/AppKit/GTMUILocalizer.h index d346ae6..e3521e9 100644 --- a/AppKit/GTMUILocalizer.h +++ b/AppKit/GTMUILocalizer.h @@ -36,9 +36,12 @@ // - stringValue (for labels) // - tooltips // - accessibility help -// - accessibility description // - menus // +// Due to technical limitations, accessibility description cannot be localized. +// See http://lists.apple.com/archives/Accessibility-dev/2009/Dec/msg00004.html +// and http://openradar.appspot.com/7496255 for more information. +// // As an example if I wanted to localize a button with the word "Print" on // it, I would put it in a window controlled by a NSWindowController that was // the owner of the nib. I would set it's title to be "^Print". I would then @@ -82,11 +85,16 @@ // localizing all non-default toolbar items by hand. - (void)localizeToolbar:(NSToolbar *)toolbar; +// Localize an object for accessibility; can be called for both NSViews and +// NSCells as they are both accessibility objects. +- (void)localizeAccessibility:(id)object; + // 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. // If |string| is nil, you should return nil - (NSString *)localizedStringForString:(NSString *)string; + // Allows subclasses to override how the bundle is picked up + (NSBundle *)bundleForOwner:(id)owner; @end -- cgit v1.2.3