Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1314)

Unified Diff: chrome/browser/cocoa/ui_localizer.h

Issue 159197: Add a custom subclass of GTMUILocalizer that skips the bundle work so we can ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/mac/generate_localizer ('k') | chrome/browser/cocoa/ui_localizer.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/ui_localizer.h
===================================================================
--- chrome/browser/cocoa/ui_localizer.h (revision 21272)
+++ chrome/browser/cocoa/ui_localizer.h (working copy)
@@ -7,6 +7,7 @@
#include "base/basictypes.h"
#include "base/string16.h"
+#import "third_party/GTM/AppKit/GTMUILocalizer.h"
@class NSString;
@@ -28,4 +29,26 @@
} // namespace ui_localizer
+// A base class for generated localizers.
+//
+// To use this, have the build run generate_localizer on your xib file (see
+// chrome.gyp). Then add an instance of the generated subclass to the xib.
+// Connect the owner_ outlet of the instance to the "File's Owner" of the xib.
+// It expects the owner_ outlet to be an instance or subclass of
+// NSWindowController or NSViewController. It will then localize any items in
+// the NSWindowController's window and subviews, or the NSViewController's view
+// and subviews, when awakeFromNib is called on the instance. You can
+// optionally hook up otherObjectToLocalize_ and yetAnotherObjectToLocalize_ and
+// those will also be localized. Strings in the xib that you want localized must
+// start with ^IDS. The value must be a valid resource constant.
+// Things that will be localized are:
+// - Titles and altTitles (for menus, buttons, windows, menuitems, -tabViewItem)
+// - -stringValue (for labels)
+// - tooltips
+// - accessibility help
+// - accessibility descriptions
+// - menus
+@interface ChromeUILocalizer : GTMUILocalizer
+@end
+
#endif // CHROME_BROWSER_COCOA_UI_LOCALIZER_H_
« no previous file with comments | « build/mac/generate_localizer ('k') | chrome/browser/cocoa/ui_localizer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698