| 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); |
| 238 html_source->AddLocalizedString( |
| 239 "allLanguages", IDS_SETTINGS_LANGUAGES_ALL_LANGUAGES); |
| 240 html_source->AddLocalizedString( |
| 241 "enabledLanguages", IDS_SETTINGS_LANGUAGES_ENABLED_LANGUAGES); |
| 235 } | 242 } |
| 236 | 243 |
| 237 void AddOnStartupStrings(content::WebUIDataSource* html_source) { | 244 void AddOnStartupStrings(content::WebUIDataSource* html_source) { |
| 238 html_source->AddLocalizedString( | 245 html_source->AddLocalizedString( |
| 239 "onStartup", | 246 "onStartup", |
| 240 IDS_SETTINGS_ON_STARTUP); | 247 IDS_SETTINGS_ON_STARTUP); |
| 241 html_source->AddLocalizedString( | 248 html_source->AddLocalizedString( |
| 242 "onStartupOpenNewTab", | 249 "onStartupOpenNewTab", |
| 243 IDS_SETTINGS_ON_STARTUP_OPEN_NEW_TAB); | 250 IDS_SETTINGS_ON_STARTUP_OPEN_NEW_TAB); |
| 244 html_source->AddLocalizedString( | 251 html_source->AddLocalizedString( |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 AddPrivacyStrings(html_source); | 478 AddPrivacyStrings(html_source); |
| 472 AddSearchStrings(html_source); | 479 AddSearchStrings(html_source); |
| 473 AddSearchEnginesStrings(html_source); | 480 AddSearchEnginesStrings(html_source); |
| 474 AddSiteSettingsStrings(html_source); | 481 AddSiteSettingsStrings(html_source); |
| 475 AddSyncStrings(html_source); | 482 AddSyncStrings(html_source); |
| 476 AddUsersStrings(html_source); | 483 AddUsersStrings(html_source); |
| 477 html_source->SetJsonPath(kLocalizedStringsFile); | 484 html_source->SetJsonPath(kLocalizedStringsFile); |
| 478 } | 485 } |
| 479 | 486 |
| 480 } // namespace settings | 487 } // namespace settings |
| OLD | NEW |