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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 html_source->AddString("resetProfileBannerLearnMoreUrl", | 609 html_source->AddString("resetProfileBannerLearnMoreUrl", |
610 chrome::kAutomaticSettingsResetLearnMoreURL); | 610 chrome::kAutomaticSettingsResetLearnMoreURL); |
611 #if defined(OS_CHROMEOS) | 611 #if defined(OS_CHROMEOS) |
612 html_source->AddString( | 612 html_source->AddString( |
613 "powerwashDescription", | 613 "powerwashDescription", |
614 l10n_util::GetStringFUTF16(IDS_OPTIONS_FACTORY_RESET_DESCRIPTION, | 614 l10n_util::GetStringFUTF16(IDS_OPTIONS_FACTORY_RESET_DESCRIPTION, |
615 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); | 615 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); |
616 #endif | 616 #endif |
617 } | 617 } |
618 | 618 |
| 619 #if defined(OS_CHROMEOS) |
619 void AddDateTimeStrings(content::WebUIDataSource* html_source) { | 620 void AddDateTimeStrings(content::WebUIDataSource* html_source) { |
620 LocalizedString localized_strings[] = { | 621 LocalizedString localized_strings[] = { |
621 {"dateTimePageTitle", IDS_SETTINGS_DATE_TIME}, | 622 {"dateTimePageTitle", IDS_SETTINGS_DATE_TIME}, |
622 {"timeZone", IDS_SETTINGS_TIME_ZONE}, | 623 {"timeZone", IDS_SETTINGS_TIME_ZONE}, |
| 624 {"timeZoneGeolocation", IDS_SETTINGS_TIME_ZONE_GEOLOCATION}, |
623 {"use24HourClock", IDS_SETTINGS_USE_24_HOUR_CLOCK}, | 625 {"use24HourClock", IDS_SETTINGS_USE_24_HOUR_CLOCK}, |
624 {"dateTimeSetAutomatically", IDS_SETTINGS_DATE_TIME_SET_AUTOMATICALLY}, | |
625 }; | 626 }; |
626 AddLocalizedStringsBulk(html_source, localized_strings, | 627 AddLocalizedStringsBulk(html_source, localized_strings, |
627 arraysize(localized_strings)); | 628 arraysize(localized_strings)); |
628 } | 629 } |
629 | 630 |
630 #if defined(OS_CHROMEOS) | |
631 void AddEasyUnlockStrings(content::WebUIDataSource* html_source) { | 631 void AddEasyUnlockStrings(content::WebUIDataSource* html_source) { |
632 LocalizedString localized_strings[] = { | 632 LocalizedString localized_strings[] = { |
633 {"easyUnlockSectionTitle", IDS_SETTINGS_EASY_UNLOCK_SECTION_TITLE}, | 633 {"easyUnlockSectionTitle", IDS_SETTINGS_EASY_UNLOCK_SECTION_TITLE}, |
634 {"easyUnlockSetupButton", IDS_SETTINGS_EASY_UNLOCK_SETUP}, | 634 {"easyUnlockSetupButton", IDS_SETTINGS_EASY_UNLOCK_SETUP}, |
635 // Easy Unlock turn-off dialog. | 635 // Easy Unlock turn-off dialog. |
636 {"easyUnlockTurnOffButton", IDS_SETTINGS_EASY_UNLOCK_TURN_OFF}, | 636 {"easyUnlockTurnOffButton", IDS_SETTINGS_EASY_UNLOCK_TURN_OFF}, |
637 {"easyUnlockTurnOffOfflineTitle", | 637 {"easyUnlockTurnOffOfflineTitle", |
638 IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_OFFLINE_TITLE}, | 638 IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_OFFLINE_TITLE}, |
639 {"easyUnlockTurnOffOfflineMessage", | 639 {"easyUnlockTurnOffOfflineMessage", |
640 IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_OFFLINE_MESSAGE}, | 640 IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_OFFLINE_MESSAGE}, |
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1613 #if defined(OS_CHROMEOS) | 1613 #if defined(OS_CHROMEOS) |
1614 AddBluetoothStrings(html_source); | 1614 AddBluetoothStrings(html_source); |
1615 #endif | 1615 #endif |
1616 #if defined(USE_NSS_CERTS) | 1616 #if defined(USE_NSS_CERTS) |
1617 AddCertificateManagerStrings(html_source); | 1617 AddCertificateManagerStrings(html_source); |
1618 #endif | 1618 #endif |
1619 AddClearBrowsingDataStrings(html_source); | 1619 AddClearBrowsingDataStrings(html_source); |
1620 #if !defined(OS_CHROMEOS) | 1620 #if !defined(OS_CHROMEOS) |
1621 AddDefaultBrowserStrings(html_source); | 1621 AddDefaultBrowserStrings(html_source); |
1622 #endif | 1622 #endif |
| 1623 #if defined(OS_CHROMEOS) |
1623 AddDateTimeStrings(html_source); | 1624 AddDateTimeStrings(html_source); |
1624 #if defined(OS_CHROMEOS) | |
1625 AddDeviceStrings(html_source); | 1625 AddDeviceStrings(html_source); |
1626 #endif | 1626 #endif |
1627 AddDownloadsStrings(html_source); | 1627 AddDownloadsStrings(html_source); |
1628 | 1628 |
1629 #if defined(OS_CHROMEOS) | 1629 #if defined(OS_CHROMEOS) |
1630 AddEasyUnlockStrings(html_source); | 1630 AddEasyUnlockStrings(html_source); |
1631 AddInternetStrings(html_source); | 1631 AddInternetStrings(html_source); |
1632 AddCrNetworkStrings(html_source); | 1632 AddCrNetworkStrings(html_source); |
1633 #endif | 1633 #endif |
1634 AddLanguagesStrings(html_source); | 1634 AddLanguagesStrings(html_source); |
(...skipping 15 matching lines...) Expand all Loading... |
1650 #endif | 1650 #endif |
1651 AddUsersStrings(html_source); | 1651 AddUsersStrings(html_source); |
1652 AddWebContentStrings(html_source); | 1652 AddWebContentStrings(html_source); |
1653 | 1653 |
1654 policy_indicator::AddLocalizedStrings(html_source); | 1654 policy_indicator::AddLocalizedStrings(html_source); |
1655 | 1655 |
1656 html_source->SetJsonPath(kLocalizedStringsFile); | 1656 html_source->SetJsonPath(kLocalizedStringsFile); |
1657 } | 1657 } |
1658 | 1658 |
1659 } // namespace settings | 1659 } // namespace settings |
OLD | NEW |