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

Unified Diff: chrome/browser/cocoa/sad_tab_view.mm

Issue 28188: We have localization (w00t!). Using it. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/sad_tab_view.mm
===================================================================
--- chrome/browser/cocoa/sad_tab_view.mm (revision 10460)
+++ chrome/browser/cocoa/sad_tab_view.mm (working copy)
@@ -4,6 +4,10 @@
#include "chrome/browser/cocoa/sad_tab_view.h"
+#include "base/sys_string_conversions.h"
+#include "chrome/common/l10n_util.h"
+#include "grit/generated_resources.h"
+
static const int kSadTabOffset = -64;
static const int kIconTitleSpacing = 20;
static const int kTitleMessageSpacing = 15;
@@ -12,9 +16,10 @@
- (void)drawRect:(NSRect)dirtyRect {
NSImage* sadTabImage = [NSImage imageNamed:@"sadtab"];
- NSString* title = @"Aw, Snap!"; // TODO(avi):localize
- NSString* message = @"Something went wrong while displaying this webpage. "
- "To continue, press Reload or go to another page.";
+ NSString* title =
+ base::SysWideToNSString(l10n_util::GetString(IDS_SAD_TAB_TITLE));
+ NSString* message =
+ base::SysWideToNSString(l10n_util::GetString(IDS_SAD_TAB_MESSAGE));
NSColor* textColor = [NSColor whiteColor];
NSColor* backgroundColor = [NSColor colorWithCalibratedRed:(35.0f/255.0f)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698