| 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 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1875 {"siteSettingsFlashAskBefore", | 1875 {"siteSettingsFlashAskBefore", |
| 1876 IDS_SETTINGS_SITE_SETTINGS_FLASH_DETECT_IMPORTANT}, | 1876 IDS_SETTINGS_SITE_SETTINGS_FLASH_DETECT_IMPORTANT}, |
| 1877 {"siteSettingsFlashAskBeforeSubtitle", | 1877 {"siteSettingsFlashAskBeforeSubtitle", |
| 1878 IDS_SETTINGS_SITE_SETTINGS_FLASH_DETECT_IMPORTANT_SUBTITLE}, | 1878 IDS_SETTINGS_SITE_SETTINGS_FLASH_DETECT_IMPORTANT_SUBTITLE}, |
| 1879 }; | 1879 }; |
| 1880 AddLocalizedStringsBulk(html_source, flash_strings, | 1880 AddLocalizedStringsBulk(html_source, flash_strings, |
| 1881 arraysize(flash_strings)); | 1881 arraysize(flash_strings)); |
| 1882 } | 1882 } |
| 1883 } | 1883 } |
| 1884 | 1884 |
| 1885 #if defined(OS_CHROMEOS) |
| 1885 void AddUsersStrings(content::WebUIDataSource* html_source) { | 1886 void AddUsersStrings(content::WebUIDataSource* html_source) { |
| 1886 LocalizedString localized_strings[] = { | 1887 LocalizedString localized_strings[] = { |
| 1887 {"usersPageTitle", IDS_SETTINGS_USERS}, | |
| 1888 #if defined(OS_CHROMEOS) | |
| 1889 {"usersModifiedByOwnerLabel", IDS_SETTINGS_USERS_MODIFIED_BY_OWNER_LABEL}, | 1888 {"usersModifiedByOwnerLabel", IDS_SETTINGS_USERS_MODIFIED_BY_OWNER_LABEL}, |
| 1890 {"guestBrowsingLabel", IDS_SETTINGS_USERS_GUEST_BROWSING_LABEL}, | 1889 {"guestBrowsingLabel", IDS_SETTINGS_USERS_GUEST_BROWSING_LABEL}, |
| 1891 {"settingsManagedLabel", IDS_SETTINGS_USERS_MANAGED_LABEL}, | 1890 {"settingsManagedLabel", IDS_SETTINGS_USERS_MANAGED_LABEL}, |
| 1892 {"supervisedUsersLabel", IDS_SETTINGS_USERS_SUPERVISED_USERS_LABEL}, | 1891 {"supervisedUsersLabel", IDS_SETTINGS_USERS_SUPERVISED_USERS_LABEL}, |
| 1893 {"showOnSigninLabel", IDS_SETTINGS_USERS_SHOW_ON_SIGNIN_LABEL}, | 1892 {"showOnSigninLabel", IDS_SETTINGS_USERS_SHOW_ON_SIGNIN_LABEL}, |
| 1894 {"restrictSigninLabel", IDS_SETTINGS_USERS_RESTRICT_SIGNIN_LABEL}, | 1893 {"restrictSigninLabel", IDS_SETTINGS_USERS_RESTRICT_SIGNIN_LABEL}, |
| 1895 {"deviceOwnerLabel", IDS_SETTINGS_USERS_DEVICE_OWNER_LABEL}, | 1894 {"deviceOwnerLabel", IDS_SETTINGS_USERS_DEVICE_OWNER_LABEL}, |
| 1896 {"addUsers", IDS_SETTINGS_USERS_ADD_USERS}, | 1895 {"addUsers", IDS_SETTINGS_USERS_ADD_USERS}, |
| 1897 {"addUsersEmail", IDS_SETTINGS_USERS_ADD_USERS_EMAIL}, | 1896 {"addUsersEmail", IDS_SETTINGS_USERS_ADD_USERS_EMAIL}, |
| 1898 #endif | |
| 1899 }; | 1897 }; |
| 1900 AddLocalizedStringsBulk(html_source, localized_strings, | 1898 AddLocalizedStringsBulk(html_source, localized_strings, |
| 1901 arraysize(localized_strings)); | 1899 arraysize(localized_strings)); |
| 1902 } | 1900 } |
| 1901 #endif |
| 1903 | 1902 |
| 1904 #if !defined(OS_CHROMEOS) | 1903 #if !defined(OS_CHROMEOS) |
| 1905 void AddSystemStrings(content::WebUIDataSource* html_source) { | 1904 void AddSystemStrings(content::WebUIDataSource* html_source) { |
| 1906 LocalizedString localized_strings[] = { | 1905 LocalizedString localized_strings[] = { |
| 1907 {"systemPageTitle", IDS_SETTINGS_SYSTEM}, | 1906 {"systemPageTitle", IDS_SETTINGS_SYSTEM}, |
| 1908 #if !defined(OS_MACOSX) | 1907 #if !defined(OS_MACOSX) |
| 1909 {"backgroundAppsLabel", IDS_SETTINGS_SYSTEM_BACKGROUND_APPS_LABEL}, | 1908 {"backgroundAppsLabel", IDS_SETTINGS_SYSTEM_BACKGROUND_APPS_LABEL}, |
| 1910 #endif | 1909 #endif |
| 1911 {"hardwareAccelerationLabel", | 1910 {"hardwareAccelerationLabel", |
| 1912 IDS_SETTINGS_SYSTEM_HARDWARE_ACCELERATION_LABEL}, | 1911 IDS_SETTINGS_SYSTEM_HARDWARE_ACCELERATION_LABEL}, |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2057 AddOnStartupStrings(html_source); | 2056 AddOnStartupStrings(html_source); |
| 2058 AddPasswordsAndFormsStrings(html_source); | 2057 AddPasswordsAndFormsStrings(html_source); |
| 2059 AddPeopleStrings(html_source); | 2058 AddPeopleStrings(html_source); |
| 2060 AddPrintingStrings(html_source); | 2059 AddPrintingStrings(html_source); |
| 2061 AddPrivacyStrings(html_source, profile); | 2060 AddPrivacyStrings(html_source, profile); |
| 2062 AddResetStrings(html_source); | 2061 AddResetStrings(html_source); |
| 2063 AddSearchEnginesStrings(html_source); | 2062 AddSearchEnginesStrings(html_source); |
| 2064 AddSearchInSettingsStrings(html_source); | 2063 AddSearchInSettingsStrings(html_source); |
| 2065 AddSearchStrings(html_source); | 2064 AddSearchStrings(html_source); |
| 2066 AddSiteSettingsStrings(html_source, profile); | 2065 AddSiteSettingsStrings(html_source, profile); |
| 2067 AddUsersStrings(html_source); | |
| 2068 AddWebContentStrings(html_source); | 2066 AddWebContentStrings(html_source); |
| 2069 | 2067 |
| 2070 #if defined(OS_CHROMEOS) | 2068 #if defined(OS_CHROMEOS) |
| 2071 AddAccountUITweaksStrings(html_source, profile); | 2069 AddAccountUITweaksStrings(html_source, profile); |
| 2072 AddAndroidAppStrings(html_source); | 2070 AddAndroidAppStrings(html_source); |
| 2073 AddBluetoothStrings(html_source); | 2071 AddBluetoothStrings(html_source); |
| 2074 AddChromeOSUserStrings(html_source, profile); | 2072 AddChromeOSUserStrings(html_source, profile); |
| 2075 AddDateTimeStrings(html_source); | 2073 AddDateTimeStrings(html_source); |
| 2076 AddDeviceStrings(html_source); | 2074 AddDeviceStrings(html_source); |
| 2077 AddEasyUnlockStrings(html_source); | 2075 AddEasyUnlockStrings(html_source); |
| 2078 AddInternetStrings(html_source); | 2076 AddInternetStrings(html_source); |
| 2079 AddOncStrings(html_source); | 2077 AddOncStrings(html_source); |
| 2078 AddUsersStrings(html_source); |
| 2080 #else | 2079 #else |
| 2081 AddDefaultBrowserStrings(html_source); | 2080 AddDefaultBrowserStrings(html_source); |
| 2082 AddImportDataStrings(html_source); | 2081 AddImportDataStrings(html_source); |
| 2083 AddSystemStrings(html_source); | 2082 AddSystemStrings(html_source); |
| 2084 #endif | 2083 #endif |
| 2085 | 2084 |
| 2086 #if defined(USE_NSS_CERTS) | 2085 #if defined(USE_NSS_CERTS) |
| 2087 AddCertificateManagerStrings(html_source); | 2086 AddCertificateManagerStrings(html_source); |
| 2088 #endif | 2087 #endif |
| 2089 | 2088 |
| 2090 #if defined(OS_CHROMEOS) | 2089 #if defined(OS_CHROMEOS) |
| 2091 chromeos::network_element::AddLocalizedStrings(html_source); | 2090 chromeos::network_element::AddLocalizedStrings(html_source); |
| 2092 #endif | 2091 #endif |
| 2093 policy_indicator::AddLocalizedStrings(html_source); | 2092 policy_indicator::AddLocalizedStrings(html_source); |
| 2094 | 2093 |
| 2095 html_source->SetJsonPath(kLocalizedStringsFile); | 2094 html_source->SetJsonPath(kLocalizedStringsFile); |
| 2096 } | 2095 } |
| 2097 | 2096 |
| 2098 } // namespace settings | 2097 } // namespace settings |
| OLD | NEW |