| 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 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 {"easyUnlockTurnOffButton", IDS_SETTINGS_EASY_UNLOCK_TURN_OFF}, | 884 {"easyUnlockTurnOffButton", IDS_SETTINGS_EASY_UNLOCK_TURN_OFF}, |
| 885 {"easyUnlockTurnOffOfflineTitle", | 885 {"easyUnlockTurnOffOfflineTitle", |
| 886 IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_OFFLINE_TITLE}, | 886 IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_OFFLINE_TITLE}, |
| 887 {"easyUnlockTurnOffOfflineMessage", | 887 {"easyUnlockTurnOffOfflineMessage", |
| 888 IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_OFFLINE_MESSAGE}, | 888 IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_OFFLINE_MESSAGE}, |
| 889 {"easyUnlockTurnOffErrorTitle", | 889 {"easyUnlockTurnOffErrorTitle", |
| 890 IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_ERROR_TITLE}, | 890 IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_ERROR_TITLE}, |
| 891 {"easyUnlockTurnOffErrorMessage", | 891 {"easyUnlockTurnOffErrorMessage", |
| 892 IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_ERROR_MESSAGE}, | 892 IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_ERROR_MESSAGE}, |
| 893 {"easyUnlockTurnOffRetryButton", IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_RETRY}, | 893 {"easyUnlockTurnOffRetryButton", IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_RETRY}, |
| 894 {"easyUnlockProximityThresholdLabel", |
| 895 IDS_SETTINGS_EASY_UNLOCK_PROXIMITY_THRESHOLD_LABEL}, |
| 896 {"easyUnlockProximityThresholdVeryClose", |
| 897 IDS_SETTINGS_EASY_UNLOCK_PROXIMITY_THRESHOLD_VERY_CLOSE}, |
| 898 {"easyUnlockProximityThresholdClose", |
| 899 IDS_SETTINGS_EASY_UNLOCK_PROXIMITY_THRESHOLD_CLOSE}, |
| 900 {"easyUnlockProximityThresholdFar", |
| 901 IDS_SETTINGS_EASY_UNLOCK_PROXIMITY_THRESHOLD_FAR}, |
| 902 {"easyUnlockProximityThresholdVeryFar", |
| 903 IDS_SETTINGS_EASY_UNLOCK_PROXIMITY_THRESHOLD_VERY_FAR}, |
| 894 }; | 904 }; |
| 895 AddLocalizedStringsBulk(html_source, localized_strings, | 905 AddLocalizedStringsBulk(html_source, localized_strings, |
| 896 arraysize(localized_strings)); | 906 arraysize(localized_strings)); |
| 897 | 907 |
| 898 base::string16 device_name = | 908 base::string16 device_name = |
| 899 l10n_util::GetStringUTF16(ash::GetChromeOSDeviceTypeResourceId()); | 909 l10n_util::GetStringUTF16(ash::GetChromeOSDeviceTypeResourceId()); |
| 900 html_source->AddString( | 910 html_source->AddString( |
| 901 "easyUnlockSetupIntro", | 911 "easyUnlockSetupIntro", |
| 902 l10n_util::GetStringFUTF16(IDS_SETTINGS_EASY_UNLOCK_SETUP_INTRO, | 912 l10n_util::GetStringFUTF16(IDS_SETTINGS_EASY_UNLOCK_SETUP_INTRO, |
| 903 device_name)); | 913 device_name)); |
| (...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2175 | 2185 |
| 2176 #if defined(OS_CHROMEOS) | 2186 #if defined(OS_CHROMEOS) |
| 2177 chromeos::network_element::AddLocalizedStrings(html_source); | 2187 chromeos::network_element::AddLocalizedStrings(html_source); |
| 2178 #endif | 2188 #endif |
| 2179 policy_indicator::AddLocalizedStrings(html_source); | 2189 policy_indicator::AddLocalizedStrings(html_source); |
| 2180 | 2190 |
| 2181 html_source->SetJsonPath(kLocalizedStringsFile); | 2191 html_source->SetJsonPath(kLocalizedStringsFile); |
| 2182 } | 2192 } |
| 2183 | 2193 |
| 2184 } // namespace settings | 2194 } // namespace settings |
| OLD | NEW |