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 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 AddLocalizedStringsBulk(html_source, storage_strings, | 704 AddLocalizedStringsBulk(html_source, storage_strings, |
705 arraysize(storage_strings)); | 705 arraysize(storage_strings)); |
706 | 706 |
707 LocalizedString power_strings[] = { | 707 LocalizedString power_strings[] = { |
708 {"powerTitle", IDS_SETTINGS_POWER_TITLE}, | 708 {"powerTitle", IDS_SETTINGS_POWER_TITLE}, |
709 {"powerSourceLabel", IDS_SETTINGS_POWER_SOURCE_LABEL}, | 709 {"powerSourceLabel", IDS_SETTINGS_POWER_SOURCE_LABEL}, |
710 {"powerSourceBattery", IDS_SETTINGS_POWER_SOURCE_BATTERY}, | 710 {"powerSourceBattery", IDS_SETTINGS_POWER_SOURCE_BATTERY}, |
711 {"powerSourceAcAdapter", IDS_SETTINGS_POWER_SOURCE_AC_ADAPTER}, | 711 {"powerSourceAcAdapter", IDS_SETTINGS_POWER_SOURCE_AC_ADAPTER}, |
712 {"powerSourceLowPowerCharger", | 712 {"powerSourceLowPowerCharger", |
713 IDS_SETTINGS_POWER_SOURCE_LOW_POWER_CHARGER}, | 713 IDS_SETTINGS_POWER_SOURCE_LOW_POWER_CHARGER}, |
714 {"calculatingPower", IDS_SETTINGS_POWER_SOURCE_CALCULATING}}; | 714 {"calculatingPower", IDS_SETTINGS_POWER_SOURCE_CALCULATING}, |
| 715 {"powerIdleLabel", IDS_SETTINGS_POWER_IDLE_LABEL}, |
| 716 {"powerIdleDisplayOffSleep", IDS_SETTINGS_POWER_IDLE_DISPLAY_OFF_SLEEP}, |
| 717 {"powerIdleDisplayOffStayAwake", |
| 718 IDS_SETTINGS_POWER_IDLE_DISPLAY_OFF_STAY_AWAKE}, |
| 719 {"powerIdleDisplayOn", IDS_SETTINGS_POWER_IDLE_DISPLAY_ON}, |
| 720 {"powerLidClosedLabel", IDS_SETTINGS_POWER_LID_CLOSED_LABEL}, |
| 721 {"powerLidClosedSleep", IDS_SETTINGS_POWER_LID_CLOSED_SLEEP}, |
| 722 {"powerLidClosedStayAwake", IDS_SETTINGS_POWER_LID_CLOSED_STAY_AWAKE}, |
| 723 }; |
715 AddLocalizedStringsBulk(html_source, power_strings, arraysize(power_strings)); | 724 AddLocalizedStringsBulk(html_source, power_strings, arraysize(power_strings)); |
716 | 725 |
717 html_source->AddString("naturalScrollLearnMoreLink", | 726 html_source->AddString("naturalScrollLearnMoreLink", |
718 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL)); | 727 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL)); |
719 } | 728 } |
720 #endif | 729 #endif |
721 | 730 |
722 void AddDownloadsStrings(content::WebUIDataSource* html_source) { | 731 void AddDownloadsStrings(content::WebUIDataSource* html_source) { |
723 LocalizedString localized_strings[] = { | 732 LocalizedString localized_strings[] = { |
724 {"downloadsPageTitle", IDS_SETTINGS_DOWNLOADS}, | 733 {"downloadsPageTitle", IDS_SETTINGS_DOWNLOADS}, |
(...skipping 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2059 | 2068 |
2060 #if defined(OS_CHROMEOS) | 2069 #if defined(OS_CHROMEOS) |
2061 chromeos::network_element::AddLocalizedStrings(html_source); | 2070 chromeos::network_element::AddLocalizedStrings(html_source); |
2062 #endif | 2071 #endif |
2063 policy_indicator::AddLocalizedStrings(html_source); | 2072 policy_indicator::AddLocalizedStrings(html_source); |
2064 | 2073 |
2065 html_source->SetJsonPath(kLocalizedStringsFile); | 2074 html_source->SetJsonPath(kLocalizedStringsFile); |
2066 } | 2075 } |
2067 | 2076 |
2068 } // namespace settings | 2077 } // namespace settings |
OLD | NEW |