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

Unified Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 1380743003: [MD settings] adding web content settings strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 5 years, 3 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
« chrome/app/settings_strings.grdp ('K') | « chrome/app/settings_strings.grdp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
diff --git a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
index 7c56767f9adbc66f011e0622a31c6b99b08ea7df..4626f349f553b9416f4c98f56c21dd2d8f7bc7bf 100644
--- a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
@@ -525,6 +525,35 @@ void AddUsersStrings(content::WebUIDataSource* html_source) {
IDS_SETTINGS_USERS_ADD_USERS_LABEL);
}
+void AddWebContentStrings(content::WebUIDataSource* html_source) {
+ html_source->AddLocalizedString("webContent", IDS_SETTINGS_WEB_CONTENT);
+ html_source->AddLocalizedString("pageZoom", IDS_SETTINGS_PAGE_ZOOM);
+ html_source->AddLocalizedString("fontSize", IDS_SETTINGS_FONT_SIZE);
+ html_source->AddLocalizedString("verySmall", IDS_SETTINGS_VERY_SMALL);
+ html_source->AddLocalizedString("small", IDS_SETTINGS_SMALL);
+ html_source->AddLocalizedString("medium", IDS_SETTINGS_MEDIUM);
+ html_source->AddLocalizedString("large", IDS_SETTINGS_LARGE);
+ html_source->AddLocalizedString("veryLarge", IDS_SETTINGS_VERY_LARGE);
+ html_source->AddLocalizedString("custom", IDS_SETTINGS_CUSTOM);
+ html_source->AddLocalizedString("customizeFonts",
+ IDS_SETTINGS_CUSTOMIZE_FONTS);
+ html_source->AddLocalizedString("fontsAndEncoding",
+ IDS_SETTING_FONTS_AND_ENCODING);
+ html_source->AddLocalizedString("standardFont", IDS_SETTING_STANDARD_FONT);
+ html_source->AddLocalizedString("serifFont", IDS_SETTING_SERIF_FONT);
+ html_source->AddLocalizedString("sansSerifFont", IDS_SETTING_SANS_SERIF_FONT);
+ html_source->AddLocalizedString("fixedWidthFont",
+ IDS_SETTING_FIXED_WIDTH_FONT);
+ html_source->AddLocalizedString("minimumFont", IDS_SETTING_MINIMUM_FONT_SIZE);
+ html_source->AddLocalizedString("encoding", IDS_SETTING_ENCODING);
+ html_source->AddLocalizedString("tiny", IDS_SETTING_TINY);
+ html_source->AddLocalizedString("huge", IDS_SETTING_HUGE);
+ html_source->AddLocalizedString("loremIpsum", IDS_SETTING_LOREM_IPSUM);
+ html_source->AddLocalizedString("loading", IDS_SETTING_LOADING);
+ html_source->AddLocalizedString("advancedFontSettings",
+ IDS_SETTING_ADVANCED_FONT_SETTINGS);
+}
+
} // namespace
namespace settings {
@@ -556,6 +585,7 @@ void AddLocalizedStrings(content::WebUIDataSource* html_source,
AddSiteSettingsStrings(html_source);
AddSyncStrings(html_source);
AddUsersStrings(html_source);
+ AddWebContentStrings(html_source);
html_source->SetJsonPath(kLocalizedStringsFile);
}
« chrome/app/settings_strings.grdp ('K') | « chrome/app/settings_strings.grdp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698