| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/settings/md_settings_localized_strings_provide
r.h" | 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide
r.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/common/url_constants.h" | 8 #include "chrome/common/url_constants.h" |
| 9 #include "chrome/grit/chromium_strings.h" | 9 #include "chrome/grit/chromium_strings.h" |
| 10 #include "chrome/grit/generated_resources.h" | 10 #include "chrome/grit/generated_resources.h" |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 html_source->AddLocalizedString( | 225 html_source->AddLocalizedString( |
| 226 "manageLanguages", IDS_SETTINGS_LANGUAGES_LANGUAGES_MANAGE); | 226 "manageLanguages", IDS_SETTINGS_LANGUAGES_LANGUAGES_MANAGE); |
| 227 html_source->AddLocalizedString( | 227 html_source->AddLocalizedString( |
| 228 "inputMethodsListTitle", IDS_SETTINGS_LANGUAGES_INPUT_METHODS_LIST_TITLE); | 228 "inputMethodsListTitle", IDS_SETTINGS_LANGUAGES_INPUT_METHODS_LIST_TITLE); |
| 229 html_source->AddLocalizedString( | 229 html_source->AddLocalizedString( |
| 230 "manageInputMethods", IDS_SETTINGS_LANGUAGES_INPUT_METHODS_MANAGE); | 230 "manageInputMethods", IDS_SETTINGS_LANGUAGES_INPUT_METHODS_MANAGE); |
| 231 html_source->AddLocalizedString( | 231 html_source->AddLocalizedString( |
| 232 "spellCheckListTitle", IDS_SETTINGS_LANGUAGES_SPELL_CHECK_LIST_TITLE); | 232 "spellCheckListTitle", IDS_SETTINGS_LANGUAGES_SPELL_CHECK_LIST_TITLE); |
| 233 html_source->AddLocalizedString( | 233 html_source->AddLocalizedString( |
| 234 "manageSpellCheck", IDS_SETTINGS_LANGUAGES_SPELL_CHECK_MANAGE); | 234 "manageSpellCheck", IDS_SETTINGS_LANGUAGES_SPELL_CHECK_MANAGE); |
| 235 html_source->AddLocalizedString( |
| 236 "manageLanguagesPageTitle", |
| 237 IDS_SETTINGS_LANGUAGES_MANAGE_LANGUAGES_TITLE); |
| 235 } | 238 } |
| 236 | 239 |
| 237 void AddOnStartupStrings(content::WebUIDataSource* html_source) { | 240 void AddOnStartupStrings(content::WebUIDataSource* html_source) { |
| 238 html_source->AddLocalizedString( | 241 html_source->AddLocalizedString( |
| 239 "onStartup", | 242 "onStartup", |
| 240 IDS_SETTINGS_ON_STARTUP); | 243 IDS_SETTINGS_ON_STARTUP); |
| 241 html_source->AddLocalizedString( | 244 html_source->AddLocalizedString( |
| 242 "onStartupOpenNewTab", | 245 "onStartupOpenNewTab", |
| 243 IDS_SETTINGS_ON_STARTUP_OPEN_NEW_TAB); | 246 IDS_SETTINGS_ON_STARTUP_OPEN_NEW_TAB); |
| 244 html_source->AddLocalizedString( | 247 html_source->AddLocalizedString( |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 AddPrivacyStrings(html_source); | 474 AddPrivacyStrings(html_source); |
| 472 AddSearchStrings(html_source); | 475 AddSearchStrings(html_source); |
| 473 AddSearchEnginesStrings(html_source); | 476 AddSearchEnginesStrings(html_source); |
| 474 AddSiteSettingsStrings(html_source); | 477 AddSiteSettingsStrings(html_source); |
| 475 AddSyncStrings(html_source); | 478 AddSyncStrings(html_source); |
| 476 AddUsersStrings(html_source); | 479 AddUsersStrings(html_source); |
| 477 html_source->SetJsonPath(kLocalizedStringsFile); | 480 html_source->SetJsonPath(kLocalizedStringsFile); |
| 478 } | 481 } |
| 479 | 482 |
| 480 } // namespace settings | 483 } // namespace settings |
| OLD | NEW |