| 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 <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/i18n/number_formatting.h" | 10 #include "base/i18n/number_formatting.h" |
| (...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1460 l10n_util::GetStringFUTF16( | 1460 l10n_util::GetStringFUTF16( |
| 1461 IDS_SETTINGS_IMPROVE_BROWSING_EXPERIENCE, | 1461 IDS_SETTINGS_IMPROVE_BROWSING_EXPERIENCE, |
| 1462 base::ASCIIToUTF16(chrome::kPrivacyLearnMoreURL))); | 1462 base::ASCIIToUTF16(chrome::kPrivacyLearnMoreURL))); |
| 1463 html_source->AddString( | 1463 html_source->AddString( |
| 1464 "exceptionsLearnMoreURL", | 1464 "exceptionsLearnMoreURL", |
| 1465 base::ASCIIToUTF16(chrome::kContentSettingsExceptionsLearnMoreURL)); | 1465 base::ASCIIToUTF16(chrome::kContentSettingsExceptionsLearnMoreURL)); |
| 1466 } | 1466 } |
| 1467 | 1467 |
| 1468 void AddSearchInSettingsStrings(content::WebUIDataSource* html_source) { | 1468 void AddSearchInSettingsStrings(content::WebUIDataSource* html_source) { |
| 1469 LocalizedString localized_strings[] = { | 1469 LocalizedString localized_strings[] = { |
| 1470 {"searchPrompt", IDS_SETTINGS_SEARCH_PROMPT}, | 1470 {"searchPrompt", IDS_SETTINGS_SEARCH_PROMPT}, |
| 1471 {"searchNoResults", IDS_SETTINGS_SEARCH_NO_RESULTS}, | 1471 {"searchNoResults", IDS_SETTINGS_SEARCH_NO_RESULTS}, |
| 1472 // TODO(dpapad): IDS_DOWNLOAD_CLEAR_SEARCH and IDS_MD_HISTORY_CLEAR_SEARCH | 1472 {"searchResults", IDS_SETTINGS_SEARCH_RESULTS}, |
| 1473 // are identical, merge them to one and re-use here. | 1473 // TODO(dpapad): IDS_DOWNLOAD_CLEAR_SEARCH and IDS_MD_HISTORY_CLEAR_SEARCH |
| 1474 {"clearSearch", IDS_DOWNLOAD_CLEAR_SEARCH}, | 1474 // are identical, merge them to one and re-use here. |
| 1475 {"clearSearch", IDS_DOWNLOAD_CLEAR_SEARCH}, |
| 1475 }; | 1476 }; |
| 1476 AddLocalizedStringsBulk(html_source, localized_strings, | 1477 AddLocalizedStringsBulk(html_source, localized_strings, |
| 1477 arraysize(localized_strings)); | 1478 arraysize(localized_strings)); |
| 1478 | 1479 |
| 1479 base::string16 help_text = l10n_util::GetStringFUTF16( | 1480 base::string16 help_text = l10n_util::GetStringFUTF16( |
| 1480 IDS_SETTINGS_SEARCH_NO_RESULTS_HELP, | 1481 IDS_SETTINGS_SEARCH_NO_RESULTS_HELP, |
| 1481 base::ASCIIToUTF16(chrome::kSettingsSearchHelpURL)); | 1482 base::ASCIIToUTF16(chrome::kSettingsSearchHelpURL)); |
| 1482 html_source->AddString("searchNoResultsHelp", help_text); | 1483 html_source->AddString("searchNoResultsHelp", help_text); |
| 1483 } | 1484 } |
| 1484 | 1485 |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1967 | 1968 |
| 1968 #if defined(OS_CHROMEOS) | 1969 #if defined(OS_CHROMEOS) |
| 1969 chromeos::network_element::AddLocalizedStrings(html_source); | 1970 chromeos::network_element::AddLocalizedStrings(html_source); |
| 1970 #endif | 1971 #endif |
| 1971 policy_indicator::AddLocalizedStrings(html_source); | 1972 policy_indicator::AddLocalizedStrings(html_source); |
| 1972 | 1973 |
| 1973 html_source->SetJsonPath(kLocalizedStringsFile); | 1974 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1974 } | 1975 } |
| 1975 | 1976 |
| 1976 } // namespace settings | 1977 } // namespace settings |
| OLD | NEW |