| 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 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 html_source->AddString("resetProfileBannerLearnMoreUrl", | 645 html_source->AddString("resetProfileBannerLearnMoreUrl", |
| 646 chrome::kAutomaticSettingsResetLearnMoreURL); | 646 chrome::kAutomaticSettingsResetLearnMoreURL); |
| 647 #if defined(OS_CHROMEOS) | 647 #if defined(OS_CHROMEOS) |
| 648 html_source->AddString( | 648 html_source->AddString( |
| 649 "powerwashDescription", | 649 "powerwashDescription", |
| 650 l10n_util::GetStringFUTF16(IDS_OPTIONS_FACTORY_RESET_DESCRIPTION, | 650 l10n_util::GetStringFUTF16(IDS_OPTIONS_FACTORY_RESET_DESCRIPTION, |
| 651 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); | 651 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); |
| 652 #endif | 652 #endif |
| 653 } | 653 } |
| 654 | 654 |
| 655 #if defined(OS_CHROMEOS) |
| 655 void AddDateTimeStrings(content::WebUIDataSource* html_source) { | 656 void AddDateTimeStrings(content::WebUIDataSource* html_source) { |
| 656 LocalizedString localized_strings[] = { | 657 LocalizedString localized_strings[] = { |
| 657 {"dateTimePageTitle", IDS_SETTINGS_DATE_TIME}, | 658 {"dateTimePageTitle", IDS_SETTINGS_DATE_TIME}, |
| 658 {"timeZone", IDS_SETTINGS_TIME_ZONE}, | 659 {"timeZone", IDS_SETTINGS_TIME_ZONE}, |
| 660 {"timeZoneGeolocation", IDS_SETTINGS_TIME_ZONE_GEOLOCATION}, |
| 659 {"use24HourClock", IDS_SETTINGS_USE_24_HOUR_CLOCK}, | 661 {"use24HourClock", IDS_SETTINGS_USE_24_HOUR_CLOCK}, |
| 660 {"dateTimeSetAutomatically", IDS_SETTINGS_DATE_TIME_SET_AUTOMATICALLY}, | |
| 661 }; | 662 }; |
| 662 AddLocalizedStringsBulk(html_source, localized_strings, | 663 AddLocalizedStringsBulk(html_source, localized_strings, |
| 663 arraysize(localized_strings)); | 664 arraysize(localized_strings)); |
| 664 } | 665 } |
| 665 | 666 |
| 666 #if defined(OS_CHROMEOS) | |
| 667 void AddEasyUnlockStrings(content::WebUIDataSource* html_source) { | 667 void AddEasyUnlockStrings(content::WebUIDataSource* html_source) { |
| 668 LocalizedString localized_strings[] = { | 668 LocalizedString localized_strings[] = { |
| 669 {"easyUnlockSectionTitle", IDS_SETTINGS_EASY_UNLOCK_SECTION_TITLE}, | 669 {"easyUnlockSectionTitle", IDS_SETTINGS_EASY_UNLOCK_SECTION_TITLE}, |
| 670 {"easyUnlockSetupButton", IDS_SETTINGS_EASY_UNLOCK_SETUP}, | 670 {"easyUnlockSetupButton", IDS_SETTINGS_EASY_UNLOCK_SETUP}, |
| 671 // Easy Unlock turn-off dialog. | 671 // Easy Unlock turn-off dialog. |
| 672 {"easyUnlockTurnOffButton", IDS_SETTINGS_EASY_UNLOCK_TURN_OFF}, | 672 {"easyUnlockTurnOffButton", IDS_SETTINGS_EASY_UNLOCK_TURN_OFF}, |
| 673 {"easyUnlockTurnOffOfflineTitle", | 673 {"easyUnlockTurnOffOfflineTitle", |
| 674 IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_OFFLINE_TITLE}, | 674 IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_OFFLINE_TITLE}, |
| 675 {"easyUnlockTurnOffOfflineMessage", | 675 {"easyUnlockTurnOffOfflineMessage", |
| 676 IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_OFFLINE_MESSAGE}, | 676 IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_OFFLINE_MESSAGE}, |
| (...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1657 #if defined(OS_CHROMEOS) | 1657 #if defined(OS_CHROMEOS) |
| 1658 AddBluetoothStrings(html_source); | 1658 AddBluetoothStrings(html_source); |
| 1659 #endif | 1659 #endif |
| 1660 #if defined(USE_NSS_CERTS) | 1660 #if defined(USE_NSS_CERTS) |
| 1661 AddCertificateManagerStrings(html_source); | 1661 AddCertificateManagerStrings(html_source); |
| 1662 #endif | 1662 #endif |
| 1663 AddClearBrowsingDataStrings(html_source); | 1663 AddClearBrowsingDataStrings(html_source); |
| 1664 #if !defined(OS_CHROMEOS) | 1664 #if !defined(OS_CHROMEOS) |
| 1665 AddDefaultBrowserStrings(html_source); | 1665 AddDefaultBrowserStrings(html_source); |
| 1666 #endif | 1666 #endif |
| 1667 #if defined(OS_CHROMEOS) |
| 1667 AddDateTimeStrings(html_source); | 1668 AddDateTimeStrings(html_source); |
| 1668 #if defined(OS_CHROMEOS) | |
| 1669 AddDeviceStrings(html_source); | 1669 AddDeviceStrings(html_source); |
| 1670 #endif | 1670 #endif |
| 1671 AddDownloadsStrings(html_source); | 1671 AddDownloadsStrings(html_source); |
| 1672 | 1672 |
| 1673 #if defined(OS_CHROMEOS) | 1673 #if defined(OS_CHROMEOS) |
| 1674 AddEasyUnlockStrings(html_source); | 1674 AddEasyUnlockStrings(html_source); |
| 1675 AddInternetStrings(html_source); | 1675 AddInternetStrings(html_source); |
| 1676 AddCrNetworkStrings(html_source); | 1676 AddCrNetworkStrings(html_source); |
| 1677 #endif | 1677 #endif |
| 1678 AddLanguagesStrings(html_source); | 1678 AddLanguagesStrings(html_source); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1694 #endif | 1694 #endif |
| 1695 AddUsersStrings(html_source); | 1695 AddUsersStrings(html_source); |
| 1696 AddWebContentStrings(html_source); | 1696 AddWebContentStrings(html_source); |
| 1697 | 1697 |
| 1698 policy_indicator::AddLocalizedStrings(html_source); | 1698 policy_indicator::AddLocalizedStrings(html_source); |
| 1699 | 1699 |
| 1700 html_source->SetJsonPath(kLocalizedStringsFile); | 1700 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1701 } | 1701 } |
| 1702 | 1702 |
| 1703 } // namespace settings | 1703 } // namespace settings |
| OLD | NEW |