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

Side by Side Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc

Issue 1103293004: Use ICU plural syntax in more place (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: per string review by ainslie@ Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache.h" 5 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 load_time_data.SetString("suggestions", 427 load_time_data.SetString("suggestions",
428 l10n_util::GetStringUTF16(IDS_NEW_TAB_SUGGESTIONS)); 428 l10n_util::GetStringUTF16(IDS_NEW_TAB_SUGGESTIONS));
429 load_time_data.SetString("restoreThumbnailsShort", 429 load_time_data.SetString("restoreThumbnailsShort",
430 l10n_util::GetStringUTF16(IDS_NEW_TAB_RESTORE_THUMBNAILS_SHORT_LINK)); 430 l10n_util::GetStringUTF16(IDS_NEW_TAB_RESTORE_THUMBNAILS_SHORT_LINK));
431 load_time_data.SetString("recentlyclosed", 431 load_time_data.SetString("recentlyclosed",
432 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED)); 432 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED));
433 load_time_data.SetString("webStoreTitle", 433 load_time_data.SetString("webStoreTitle",
434 l10n_util::GetStringUTF16(IDS_EXTENSION_WEB_STORE_TITLE)); 434 l10n_util::GetStringUTF16(IDS_EXTENSION_WEB_STORE_TITLE));
435 load_time_data.SetString("webStoreTitleShort", 435 load_time_data.SetString("webStoreTitleShort",
436 l10n_util::GetStringUTF16(IDS_EXTENSION_WEB_STORE_TITLE_SHORT)); 436 l10n_util::GetStringUTF16(IDS_EXTENSION_WEB_STORE_TITLE_SHORT));
437 load_time_data.SetString("closedwindowsingle",
438 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_SINGLE));
439 load_time_data.SetString("closedwindowmultiple",
440 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_MULTIPLE));
441 load_time_data.SetString("attributionintro", 437 load_time_data.SetString("attributionintro",
442 l10n_util::GetStringUTF16(IDS_NEW_TAB_ATTRIBUTION_INTRO)); 438 l10n_util::GetStringUTF16(IDS_NEW_TAB_ATTRIBUTION_INTRO));
443 load_time_data.SetString("thumbnailremovednotification", 439 load_time_data.SetString("thumbnailremovednotification",
444 l10n_util::GetStringUTF16(IDS_NEW_TAB_THUMBNAIL_REMOVED_NOTIFICATION)); 440 l10n_util::GetStringUTF16(IDS_NEW_TAB_THUMBNAIL_REMOVED_NOTIFICATION));
445 load_time_data.SetString("undothumbnailremove", 441 load_time_data.SetString("undothumbnailremove",
446 l10n_util::GetStringUTF16(IDS_NEW_TAB_UNDO_THUMBNAIL_REMOVE)); 442 l10n_util::GetStringUTF16(IDS_NEW_TAB_UNDO_THUMBNAIL_REMOVE));
447 load_time_data.SetString("removethumbnailtooltip", 443 load_time_data.SetString("removethumbnailtooltip",
448 l10n_util::GetStringUTF16(IDS_NEW_TAB_REMOVE_THUMBNAIL_TOOLTIP)); 444 l10n_util::GetStringUTF16(IDS_NEW_TAB_REMOVE_THUMBNAIL_TOOLTIP));
449 load_time_data.SetString("appuninstall", 445 load_time_data.SetString("appuninstall",
450 l10n_util::GetStringUTF16(IDS_EXTENSIONS_UNINSTALL)); 446 l10n_util::GetStringUTF16(IDS_EXTENSIONS_UNINSTALL));
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 // Get our template. 728 // Get our template.
733 static const base::StringPiece new_tab_theme_css( 729 static const base::StringPiece new_tab_theme_css(
734 ResourceBundle::GetSharedInstance().GetRawDataResource( 730 ResourceBundle::GetSharedInstance().GetRawDataResource(
735 IDR_NEW_TAB_4_THEME_CSS)); 731 IDR_NEW_TAB_4_THEME_CSS));
736 732
737 // Create the string from our template and the replacements. 733 // Create the string from our template and the replacements.
738 std::string css_string; 734 std::string css_string;
739 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 735 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
740 new_tab_css_ = base::RefCountedString::TakeString(&css_string); 736 new_tab_css_ = base::RefCountedString::TakeString(&css_string);
741 } 737 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698