Chromium Code Reviews| 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/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 935 html_source->AddLocalizedString("supervisedUsersLabel", | 935 html_source->AddLocalizedString("supervisedUsersLabel", |
| 936 IDS_SETTINGS_USERS_SUPERVISED_USERS_LABEL); | 936 IDS_SETTINGS_USERS_SUPERVISED_USERS_LABEL); |
| 937 html_source->AddLocalizedString("showOnSigninLabel", | 937 html_source->AddLocalizedString("showOnSigninLabel", |
| 938 IDS_SETTINGS_USERS_SHOW_ON_SIGNIN_LABEL); | 938 IDS_SETTINGS_USERS_SHOW_ON_SIGNIN_LABEL); |
| 939 html_source->AddLocalizedString("restrictSigninLabel", | 939 html_source->AddLocalizedString("restrictSigninLabel", |
| 940 IDS_SETTINGS_USERS_RESTRICT_SIGNIN_LABEL); | 940 IDS_SETTINGS_USERS_RESTRICT_SIGNIN_LABEL); |
| 941 html_source->AddLocalizedString("addUsersLabel", | 941 html_source->AddLocalizedString("addUsersLabel", |
| 942 IDS_SETTINGS_USERS_ADD_USERS_LABEL); | 942 IDS_SETTINGS_USERS_ADD_USERS_LABEL); |
| 943 } | 943 } |
| 944 | 944 |
| 945 #if !defined(OS_CHROMEOS) | |
| 946 void AddSystemStrings(content::WebUIDataSource* html_source) { | |
| 947 html_source->AddLocalizedString("systemPageTitle", IDS_SETTINGS_SYSTEM); | |
| 948 html_source->AddLocalizedString("backgroundAppsLabel", | |
| 949 IDS_SETTINGS_SYSTEM_BACKGROUND_APPS_LABEL); | |
|
stevenjb
2016/03/08 23:13:31
Exclude on osx?
Dan Beam
2016/03/09 02:31:31
Done.
| |
| 950 html_source->AddLocalizedString( | |
| 951 "hardwareAccelerationLabel", | |
| 952 IDS_SETTINGS_SYSTEM_HARDWARE_ACCELERATION_LABEL); | |
| 953 html_source->AddLocalizedString("changeProxySettings", | |
| 954 IDS_SETTINGS_SYSTEM_PROXY_SETTINGS_BUTTON); | |
| 955 } | |
| 956 #endif | |
| 957 | |
| 945 void AddWebContentStrings(content::WebUIDataSource* html_source) { | 958 void AddWebContentStrings(content::WebUIDataSource* html_source) { |
| 946 html_source->AddLocalizedString("webContent", IDS_SETTINGS_WEB_CONTENT); | 959 html_source->AddLocalizedString("webContent", IDS_SETTINGS_WEB_CONTENT); |
| 947 html_source->AddLocalizedString("pageZoom", IDS_SETTINGS_PAGE_ZOOM_LABEL); | 960 html_source->AddLocalizedString("pageZoom", IDS_SETTINGS_PAGE_ZOOM_LABEL); |
| 948 html_source->AddLocalizedString("fontSize", IDS_SETTINGS_FONT_SIZE_LABEL); | 961 html_source->AddLocalizedString("fontSize", IDS_SETTINGS_FONT_SIZE_LABEL); |
| 949 html_source->AddLocalizedString("verySmall", IDS_SETTINGS_VERY_SMALL_FONT); | 962 html_source->AddLocalizedString("verySmall", IDS_SETTINGS_VERY_SMALL_FONT); |
| 950 html_source->AddLocalizedString("small", IDS_SETTINGS_SMALL_FONT); | 963 html_source->AddLocalizedString("small", IDS_SETTINGS_SMALL_FONT); |
| 951 html_source->AddLocalizedString("medium", IDS_SETTINGS_MEDIUM_FONT); | 964 html_source->AddLocalizedString("medium", IDS_SETTINGS_MEDIUM_FONT); |
| 952 html_source->AddLocalizedString("large", IDS_SETTINGS_LARGE_FONT); | 965 html_source->AddLocalizedString("large", IDS_SETTINGS_LARGE_FONT); |
| 953 html_source->AddLocalizedString("veryLarge", IDS_SETTINGS_VERY_LARGE_FONT); | 966 html_source->AddLocalizedString("veryLarge", IDS_SETTINGS_VERY_LARGE_FONT); |
| 954 html_source->AddLocalizedString("custom", IDS_SETTINGS_CUSTOM); | 967 html_source->AddLocalizedString("custom", IDS_SETTINGS_CUSTOM); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1015 AddMultiProfilesStrings(html_source, profile); | 1028 AddMultiProfilesStrings(html_source, profile); |
| 1016 #endif | 1029 #endif |
| 1017 AddOnStartupStrings(html_source); | 1030 AddOnStartupStrings(html_source); |
| 1018 AddPasswordsAndFormsStrings(html_source); | 1031 AddPasswordsAndFormsStrings(html_source); |
| 1019 AddPeopleStrings(html_source); | 1032 AddPeopleStrings(html_source); |
| 1020 AddPrivacyStrings(html_source); | 1033 AddPrivacyStrings(html_source); |
| 1021 AddResetStrings(html_source); | 1034 AddResetStrings(html_source); |
| 1022 AddSearchEnginesStrings(html_source); | 1035 AddSearchEnginesStrings(html_source); |
| 1023 AddSearchStrings(html_source); | 1036 AddSearchStrings(html_source); |
| 1024 AddSiteSettingsStrings(html_source); | 1037 AddSiteSettingsStrings(html_source); |
| 1038 #if !defined(OS_CHROMEOS) | |
| 1039 AddSystemStrings(html_source); | |
| 1040 #endif | |
| 1025 AddUsersStrings(html_source); | 1041 AddUsersStrings(html_source); |
| 1026 AddWebContentStrings(html_source); | 1042 AddWebContentStrings(html_source); |
| 1027 | 1043 |
| 1028 policy_indicator::AddLocalizedStrings(html_source); | 1044 policy_indicator::AddLocalizedStrings(html_source); |
| 1029 | 1045 |
| 1030 html_source->SetJsonPath(kLocalizedStringsFile); | 1046 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1031 } | 1047 } |
| 1032 | 1048 |
| 1033 } // namespace settings | 1049 } // namespace settings |
| OLD | NEW |