| 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 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1471 l10n_util::GetStringFUTF16( | 1471 l10n_util::GetStringFUTF16( |
| 1472 IDS_SETTINGS_IMPROVE_BROWSING_EXPERIENCE, | 1472 IDS_SETTINGS_IMPROVE_BROWSING_EXPERIENCE, |
| 1473 base::ASCIIToUTF16(chrome::kPrivacyLearnMoreURL))); | 1473 base::ASCIIToUTF16(chrome::kPrivacyLearnMoreURL))); |
| 1474 html_source->AddString( | 1474 html_source->AddString( |
| 1475 "exceptionsLearnMoreURL", | 1475 "exceptionsLearnMoreURL", |
| 1476 base::ASCIIToUTF16(chrome::kContentSettingsExceptionsLearnMoreURL)); | 1476 base::ASCIIToUTF16(chrome::kContentSettingsExceptionsLearnMoreURL)); |
| 1477 } | 1477 } |
| 1478 | 1478 |
| 1479 void AddSearchInSettingsStrings(content::WebUIDataSource* html_source) { | 1479 void AddSearchInSettingsStrings(content::WebUIDataSource* html_source) { |
| 1480 LocalizedString localized_strings[] = { | 1480 LocalizedString localized_strings[] = { |
| 1481 {"searchPrompt", IDS_SETTINGS_SEARCH_PROMPT}, | 1481 {"searchPrompt", IDS_SETTINGS_SEARCH_PROMPT}, |
| 1482 {"searchNoResults", IDS_SETTINGS_SEARCH_NO_RESULTS}, | 1482 {"searchNoResults", IDS_SETTINGS_SEARCH_NO_RESULTS}, |
| 1483 // TODO(dpapad): IDS_DOWNLOAD_CLEAR_SEARCH and IDS_MD_HISTORY_CLEAR_SEARCH | 1483 {"searchResults", IDS_SETTINGS_SEARCH_RESULTS}, |
| 1484 // are identical, merge them to one and re-use here. | 1484 // TODO(dpapad): IDS_DOWNLOAD_CLEAR_SEARCH and IDS_MD_HISTORY_CLEAR_SEARCH |
| 1485 {"clearSearch", IDS_DOWNLOAD_CLEAR_SEARCH}, | 1485 // are identical, merge them to one and re-use here. |
| 1486 {"clearSearch", IDS_DOWNLOAD_CLEAR_SEARCH}, |
| 1486 }; | 1487 }; |
| 1487 AddLocalizedStringsBulk(html_source, localized_strings, | 1488 AddLocalizedStringsBulk(html_source, localized_strings, |
| 1488 arraysize(localized_strings)); | 1489 arraysize(localized_strings)); |
| 1489 | 1490 |
| 1490 base::string16 help_text = l10n_util::GetStringFUTF16( | 1491 base::string16 help_text = l10n_util::GetStringFUTF16( |
| 1491 IDS_SETTINGS_SEARCH_NO_RESULTS_HELP, | 1492 IDS_SETTINGS_SEARCH_NO_RESULTS_HELP, |
| 1492 base::ASCIIToUTF16(chrome::kSettingsSearchHelpURL)); | 1493 base::ASCIIToUTF16(chrome::kSettingsSearchHelpURL)); |
| 1493 html_source->AddString("searchNoResultsHelp", help_text); | 1494 html_source->AddString("searchNoResultsHelp", help_text); |
| 1494 } | 1495 } |
| 1495 | 1496 |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1978 | 1979 |
| 1979 #if defined(OS_CHROMEOS) | 1980 #if defined(OS_CHROMEOS) |
| 1980 chromeos::network_element::AddLocalizedStrings(html_source); | 1981 chromeos::network_element::AddLocalizedStrings(html_source); |
| 1981 #endif | 1982 #endif |
| 1982 policy_indicator::AddLocalizedStrings(html_source); | 1983 policy_indicator::AddLocalizedStrings(html_source); |
| 1983 | 1984 |
| 1984 html_source->SetJsonPath(kLocalizedStringsFile); | 1985 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1985 } | 1986 } |
| 1986 | 1987 |
| 1987 } // namespace settings | 1988 } // namespace settings |
| OLD | NEW |