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
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.h"
7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/common/url_constants.h"
9 #include "chrome/grit/chromium_strings.h"
10 #include "chrome/grit/generated_resources.h"
11 #include "chrome/grit/google_chrome_strings.h"
12 #include "chrome/grit/locale_settings.h"
13 #include "content/public/browser/web_ui_data_source.h"
14 #include "ui/base/l10n/l10n_util.h"
16 #if defined(OS_CHROMEOS)
17 #include "ui/chromeos/strings/grit/ui_chromeos_strings.h"
22 // Note that settings.html contains a <script> tag which imports a script of
23 // the following name. These names must be kept in sync.
24 const char kLocalizedStringsFile
[] = "strings.js";
26 void AddA11yStrings(content::WebUIDataSource
* html_source
) {
27 html_source
->AddLocalizedString(
28 "a11yPageTitle", IDS_SETTINGS_ACCESSIBILITY
);
29 html_source
->AddLocalizedString(
30 "moreFeaturesLink", IDS_SETTINGS_MORE_FEATURES_LINK
);
31 html_source
->AddLocalizedString(
32 "optionsInMenuLabel", IDS_SETTINGS_OPTIONS_IN_MENU_LABEL
);
33 html_source
->AddLocalizedString(
34 "largeMouseCursorLabel", IDS_SETTINGS_LARGE_MOUSE_CURSOR_LABEL
);
35 html_source
->AddLocalizedString(
36 "highContrastLabel", IDS_SETTINGS_HIGH_CONTRAST_LABEL
);
37 html_source
->AddLocalizedString(
38 "stickyKeysLabel", IDS_SETTINGS_STICKY_KEYS_LABEL
);
39 html_source
->AddLocalizedString(
40 "stickyKeysSublabel", IDS_SETTINGS_STICKY_KEYS_SUBLABEL
);
41 html_source
->AddLocalizedString(
42 "chromeVoxLabel", IDS_SETTINGS_CHROMEVOX_LABEL
);
43 html_source
->AddLocalizedString(
44 "chromeVoxSublabel", IDS_SETTINGS_CHROMEVOX_SUBLABEL
);
45 html_source
->AddLocalizedString(
46 "screenMagnifierLabel", IDS_SETTINGS_SCREEN_MAGNIFIER_LABEL
);
47 html_source
->AddLocalizedString(
48 "tapDraggingLabel", IDS_SETTINGS_TAP_DRAGGING_LABEL
);
49 html_source
->AddLocalizedString(
50 "clickOnStopLabel", IDS_SETTINGS_CLICK_ON_STOP_LABEL
);
51 html_source
->AddLocalizedString(
52 "delayBeforeClickLabel", IDS_SETTINGS_DELAY_BEFORE_CLICK_LABEL
);
53 html_source
->AddLocalizedString(
54 "delayBeforeClickExtremelyShort",
55 IDS_SETTINGS_DELAY_BEFORE_CLICK_EXTREMELY_SHORT
);
56 html_source
->AddLocalizedString(
57 "delayBeforeClickVeryShort", IDS_SETTINGS_DELAY_BEFORE_CLICK_VERY_SHORT
);
58 html_source
->AddLocalizedString(
59 "delayBeforeClickShort", IDS_SETTINGS_DELAY_BEFORE_CLICK_SHORT
);
60 html_source
->AddLocalizedString(
61 "delayBeforeClickLong", IDS_SETTINGS_DELAY_BEFORE_CLICK_LONG
);
62 html_source
->AddLocalizedString(
63 "delayBeforeClickVeryLong", IDS_SETTINGS_DELAY_BEFORE_CLICK_VERY_LONG
);
64 html_source
->AddLocalizedString(
65 "onScreenKeyboardLabel", IDS_SETTINGS_ON_SCREEN_KEYBOARD_LABEL
);
68 void AddAppearanceStrings(content::WebUIDataSource
* html_source
) {
69 html_source
->AddLocalizedString(
70 "appearancePageTitle", IDS_SETTINGS_APPEARANCE
);
71 html_source
->AddLocalizedString(
72 "setWallpaper", IDS_SETTINGS_SET_WALLPAPER
);
73 html_source
->AddLocalizedString(
74 "getThemes", IDS_SETTINGS_GET_THEMES
);
75 html_source
->AddLocalizedString(
76 "resetToDefaultTheme", IDS_SETTINGS_RESET_TO_DEFAULT_THEME
);
77 html_source
->AddLocalizedString(
78 "showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON
);
79 html_source
->AddLocalizedString(
80 "showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR
);
81 html_source
->AddLocalizedString(
82 "homePageNtp", IDS_SETTINGS_HOME_PAGE_NTP
);
83 html_source
->AddLocalizedString(
84 "changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE
);
85 html_source
->AddLocalizedString(
86 "themesGalleryUrl", IDS_THEMES_GALLERY_URL
);
89 void AddCertificateManagerStrings(content::WebUIDataSource
* html_source
) {
90 html_source
->AddLocalizedString("certificateManagerPageTitle",
91 IDS_SETTINGS_CERTIFICATE_MANAGER
);
92 html_source
->AddLocalizedString(
93 "certificateManagerYourCertificates",
94 IDS_SETTINGS_CERTIFICATE_MANAGER_YOUR_CERTIFICATES
);
95 html_source
->AddLocalizedString(
96 "certificateManagerYourCertificatesSubtitle",
97 IDS_SETTINGS_CERTIFICATE_MANAGER_YOU_HAVE_CERTIFICATES
);
98 html_source
->AddLocalizedString("certificateManagerServers",
99 IDS_SETTINGS_CERTIFICATE_MANAGER_SERVERS
);
100 html_source
->AddLocalizedString(
101 "certificateManagerServersSubtitle",
102 IDS_SETTINGS_CERTIFICATE_MANAGER_SERVERS_IDENTIFY
);
103 html_source
->AddLocalizedString("certificateManagerAuthorities",
104 IDS_SETTINGS_CERTIFICATE_MANAGER_AUTHORITIES
);
105 html_source
->AddLocalizedString(
106 "certificateManagerAuthoritiesSubtitle",
107 IDS_SETTINGS_CERTIFICATE_MANAGER_AUTHORITIES_YOU_HAVE_AUTHORITIES
);
108 html_source
->AddLocalizedString("certificateManagerOthers",
109 IDS_SETTINGS_CERTIFICATE_MANAGER_OTHERS
);
110 html_source
->AddLocalizedString(
111 "certificateManagerOthersSubtitle",
112 IDS_SETTINGS_CERTIFICATE_MANAGER_OTHERS_YOU_HAVE_OTHERS
);
113 html_source
->AddLocalizedString("certificateManagerView",
114 IDS_SETTINGS_CERTIFICATE_MANAGER_VIEW
);
115 html_source
->AddLocalizedString("certificateManagerImport",
116 IDS_SETTINGS_CERTIFICATE_MANAGER_IMPORT
);
117 html_source
->AddLocalizedString(
118 "certificateManagerImportAndBind",
119 IDS_SETTINGS_CERTIFICATE_MANAGER_IMPORT_AND_BIND
);
120 html_source
->AddLocalizedString("certificateManagerExport",
121 IDS_SETTINGS_CERTIFICATE_MANAGER_EXPORT
);
122 html_source
->AddLocalizedString("certificateManagerDelete",
123 IDS_SETTINGS_CERTIFICATE_MANAGER_DELETE
);
124 html_source
->AddLocalizedString("certificateManagerDone",
125 IDS_SETTINGS_CERTIFICATE_MANAGER_DONE
);
128 void AddCommonStrings(content::WebUIDataSource
* html_source
) {
129 html_source
->AddLocalizedString("addLabel", IDS_ADD
);
132 void AddDownloadsStrings(content::WebUIDataSource
* html_source
) {
133 html_source
->AddLocalizedString(
134 "downloadsPageTitle", IDS_SETTINGS_DOWNLOADS
);
135 html_source
->AddLocalizedString(
136 "downloadLocation", IDS_SETTINGS_DOWNLOAD_LOCATION
);
137 html_source
->AddLocalizedString(
138 "changeDownloadLocation", IDS_SETTINGS_CHANGE_DOWNLOAD_LOCATION
);
139 html_source
->AddLocalizedString(
140 "promptForDownload", IDS_SETTINGS_PROMPT_FOR_DOWNLOAD
);
143 void AddDateTimeStrings(content::WebUIDataSource
* html_source
) {
144 html_source
->AddLocalizedString(
145 "dateTimePageTitle", IDS_SETTINGS_DATE_TIME
);
146 html_source
->AddLocalizedString(
147 "timeZone", IDS_SETTINGS_TIME_ZONE
);
148 html_source
->AddLocalizedString(
149 "use24HourClock", IDS_SETTINGS_USE_24_HOUR_CLOCK
);
150 html_source
->AddLocalizedString(
151 "dateTimeSetAutomatically", IDS_SETTINGS_DATE_TIME_SET_AUTOMATICALLY
);
154 #if defined(OS_CHROMEOS)
155 void AddInternetStrings(content::WebUIDataSource
* html_source
) {
156 html_source
->AddLocalizedString(
157 "internetPageTitle", IDS_SETTINGS_INTERNET
);
158 html_source
->AddLocalizedString(
159 "internetDetailPageTitle", IDS_SETTINGS_INTERNET_DETAIL
);
160 html_source
->AddLocalizedString("internetKnownNetworksPageTitle",
161 IDS_SETTINGS_INTERNET_KNOWN_NETWORKS
);
163 // Required by cr_network_list_item.js. TODO(stevenjb): Add to
164 // settings_strings.grdp or provide an alternative translation method.
166 html_source
->AddLocalizedString("networkConnected",
167 IDS_ASH_STATUS_TRAY_NETWORK_CONNECTED
);
168 html_source
->AddLocalizedString("networkConnecting",
169 IDS_ASH_STATUS_TRAY_NETWORK_CONNECTING
);
170 html_source
->AddLocalizedString("networkDisabled",
171 IDS_OPTIONS_SETTINGS_NETWORK_DISABLED
);
172 html_source
->AddLocalizedString("networkNotConnected",
173 IDS_ASH_STATUS_TRAY_NETWORK_NOT_CONNECTED
);
174 html_source
->AddLocalizedString("OncTypeCellular", IDS_NETWORK_TYPE_CELLULAR
);
175 html_source
->AddLocalizedString("OncTypeEthernet", IDS_NETWORK_TYPE_ETHERNET
);
176 html_source
->AddLocalizedString("OncTypeVPN", IDS_NETWORK_TYPE_VPN
);
177 html_source
->AddLocalizedString("OncTypeWiFi", IDS_NETWORK_TYPE_WIFI
);
178 html_source
->AddLocalizedString("OncTypeWimax", IDS_NETWORK_TYPE_WIMAX
);
182 void AddLanguagesStrings(content::WebUIDataSource
* html_source
) {
183 html_source
->AddLocalizedString(
184 "languagesPageTitle", IDS_SETTINGS_LANGUAGES_PAGE_TITLE
);
185 html_source
->AddLocalizedString(
186 "languagesListTitle", IDS_SETTINGS_LANGUAGES_LANGUAGES_LIST_TITLE
);
187 html_source
->AddLocalizedString(
188 "manageLanguages", IDS_SETTINGS_LANGUAGES_LANGUAGES_MANAGE
);
189 html_source
->AddLocalizedString(
190 "inputMethodsListTitle", IDS_SETTINGS_LANGUAGES_INPUT_METHODS_LIST_TITLE
);
191 html_source
->AddLocalizedString(
192 "manageInputMethods", IDS_SETTINGS_LANGUAGES_INPUT_METHODS_MANAGE
);
193 html_source
->AddLocalizedString(
194 "spellCheckListTitle", IDS_SETTINGS_LANGUAGES_SPELL_CHECK_LIST_TITLE
);
195 html_source
->AddLocalizedString(
196 "manageSpellCheck", IDS_SETTINGS_LANGUAGES_SPELL_CHECK_MANAGE
);
199 void AddOnStartupStrings(content::WebUIDataSource
* html_source
) {
200 html_source
->AddLocalizedString(
202 IDS_SETTINGS_ON_STARTUP
);
203 html_source
->AddLocalizedString(
204 "onStartupOpenNewTab",
205 IDS_SETTINGS_ON_STARTUP_OPEN_NEW_TAB
);
206 html_source
->AddLocalizedString(
208 IDS_SETTINGS_ON_STARTUP_CONTINUE
);
209 html_source
->AddLocalizedString(
210 "onStartupOpenSpecific",
211 IDS_SETTINGS_ON_STARTUP_OPEN_SPECIFIC
);
212 html_source
->AddLocalizedString(
214 IDS_SETTINGS_ON_STARTUP_ADD_PAGE
);
215 html_source
->AddLocalizedString(
217 IDS_SETTINGS_ON_STARTUP_SET_PAGES
);
218 html_source
->AddLocalizedString(
219 "onStartupUseCurrent",
220 IDS_SETTINGS_ON_STARTUP_USE_CURRENT
);
221 html_source
->AddLocalizedString(
222 "onStartupAddNewPage",
223 IDS_SETTINGS_ON_STARTUP_ADD_NEW_PAGE
);
224 html_source
->AddLocalizedString(
226 IDS_SETTINGS_ON_STARTUP_ENTER_URL
);
229 void AddPrivacyStrings(content::WebUIDataSource
* html_source
) {
230 html_source
->AddLocalizedString("privacyPageTitle",
231 IDS_SETTINGS_PRIVACY
);
232 html_source
->AddString("improveBrowsingExperience",
233 l10n_util::GetStringFUTF16(
234 IDS_SETTINGS_IMPROVE_BROWSING_EXPERIENCE
,
235 base::ASCIIToUTF16(chrome::kPrivacyLearnMoreURL
)));
236 html_source
->AddLocalizedString("linkDoctorPref",
237 IDS_SETTINGS_LINKDOCTOR_PREF
);
238 html_source
->AddLocalizedString("searchSuggestPref",
239 IDS_SETTINGS_SUGGEST_PREF
);
240 html_source
->AddLocalizedString(
241 "networkPredictionEnabled",
242 IDS_SETTINGS_NETWORK_PREDICTION_ENABLED_DESCRIPTION
);
243 html_source
->AddLocalizedString("safeBrowsingEnableProtection",
244 IDS_SETTINGS_SAFEBROWSING_ENABLEPROTECTION
);
245 html_source
->AddLocalizedString(
246 "safeBrowsingEnableExtendedReporting",
247 IDS_SETTINGS_SAFEBROWSING_ENABLE_EXTENDED_REPORTING
);
248 html_source
->AddLocalizedString("spellingPref",
249 IDS_SETTINGS_SPELLING_PREF
);
250 html_source
->AddLocalizedString("enableLogging",
251 IDS_SETTINGS_ENABLE_LOGGING
);
252 html_source
->AddLocalizedString("doNotTrack",
253 IDS_SETTINGS_ENABLE_DO_NOT_TRACK
);
254 html_source
->AddLocalizedString(
255 "enableContentProtectionAttestation",
256 IDS_SETTINGS_ENABLE_CONTENT_PROTECTION_ATTESTATION
);
257 html_source
->AddLocalizedString("wakeOnWifi",
258 IDS_SETTINGS_WAKE_ON_WIFI_DESCRIPTION
);
259 html_source
->AddLocalizedString("manageCertificates",
260 IDS_SETTINGS_MANAGE_CERTIFICATES
);
261 html_source
->AddLocalizedString("siteSettings",
262 IDS_SETTINGS_SITE_SETTINGS
);
263 html_source
->AddLocalizedString("clearBrowsingData",
264 IDS_SETTINGS_CLEAR_DATA
);
265 html_source
->AddLocalizedString("titleAndCount",
266 IDS_SETTINGS_TITLE_AND_COUNT
);
269 void AddSearchStrings(content::WebUIDataSource
* html_source
) {
270 html_source
->AddLocalizedString("searchPageTitle",
271 IDS_SETTINGS_SEARCH
);
272 html_source
->AddLocalizedString("searchExplanation",
273 IDS_SETTINGS_SEARCH_EXPLANATION
);
274 html_source
->AddLocalizedString("searchManageButtonLabel",
275 IDS_SETTINGS_SEARCH_MANAGE_BUTTON_LABEL
);
276 html_source
->AddLocalizedString("searchOkGoogleLabel",
277 IDS_SETTINGS_SEARCH_OK_GOOGLE_LABEL
);
278 html_source
->AddLocalizedString(
279 "searchOkGoogleLearnMoreLink",
280 IDS_SETTINGS_SEARCH_OK_GOOGLE_LEARN_MORE_LINK
);
281 html_source
->AddLocalizedString(
282 "searchOkGoogleDescriptionLabel",
283 IDS_SETTINGS_SEARCH_OK_GOOGLE_DESCRIPTION_LABEL
);
286 void AddSearchEnginesStrings(content::WebUIDataSource
* html_source
) {
287 html_source
->AddLocalizedString("searchEnginesPageTitle",
288 IDS_SETTINGS_SEARCH_ENGINES
);
289 html_source
->AddLocalizedString(
290 "searchEnginesAddSearchEngineLabel",
291 IDS_SETTINGS_SEARCH_ENGINES_ADD_SEARCH_ENGINE_LABEL
);
292 html_source
->AddLocalizedString("searchEnginesLabel",
293 IDS_SETTINGS_SEARCH_ENGINES_LABEL
);
294 html_source
->AddLocalizedString(
295 "searchEnginesOtherLabel",
296 IDS_SETTINGS_SEARCH_ENGINES_OTHER_ENGINES_LABEL
);
297 html_source
->AddLocalizedString("searchEnginesDomainLabel",
298 IDS_SETTINGS_SEARCH_ENGINES_DOMAIN_LABEL
);
299 html_source
->AddLocalizedString("searchEnginesKeywordLabel",
300 IDS_SETTINGS_SEARCH_ENGINES_KEYWORD_LABEL
);
301 html_source
->AddLocalizedString("searchEnginesQueryURLLabel",
302 IDS_SETTINGS_SEARCH_ENGINES_QUERY_URL_LABEL
);
303 html_source
->AddLocalizedString("searchEnginesAddButtonLabel",
304 IDS_SETTINGS_SEARCH_ENGINES_ADD_BUTTON_LABEL
);
307 void AddSiteSettingsStrings(content::WebUIDataSource
* html_source
) {
308 html_source
->AddLocalizedString("siteSettingsPageTitle",
309 IDS_SETTINGS_SITE_SETTINGS
);
310 html_source
->AddLocalizedString("siteSettingsAllSites",
311 IDS_SETTINGS_SITE_SETTINGS_ALL_SITES
);
312 html_source
->AddLocalizedString("siteSettingsCookies",
313 IDS_SETTINGS_SITE_SETTINGS_COOKIES
);
314 html_source
->AddLocalizedString("siteSettingsLocation",
315 IDS_SETTINGS_SITE_SETTINGS_LOCATION
);
316 html_source
->AddLocalizedString("siteSettingsNotifications",
317 IDS_SETTINGS_SITE_SETTINGS_NOTIFICATIONS
);
318 html_source
->AddLocalizedString("siteSettingsImages",
319 IDS_SETTINGS_SITE_SETTINGS_IMAGES
);
320 html_source
->AddLocalizedString("siteSettingsJavascript",
321 IDS_SETTINGS_SITE_SETTINGS_JAVASCRIPT
);
322 html_source
->AddLocalizedString("siteSettingsPopups",
323 IDS_SETTINGS_SITE_SETTINGS_POPUPS
);
324 html_source
->AddLocalizedString("siteSettingsFullscreen",
325 IDS_SETTINGS_SITE_SETTINGS_FULLSCREEN
);
326 html_source
->AddLocalizedString("siteSettingsMaySaveCookies",
327 IDS_SETTINGS_SITE_SETTINGS_MAY_SAVE_COOKIES
);
328 html_source
->AddLocalizedString("siteSettingsAskFirst",
329 IDS_SETTINGS_SITE_SETTINGS_ASK_FIRST
);
330 html_source
->AddLocalizedString(
331 "siteSettingsAskBeforeAccessing",
332 IDS_SETTINGS_SITE_SETTINGS_ASK_BEFORE_ACCESSING
);
333 html_source
->AddLocalizedString("siteSettingsAllow",
334 IDS_SETTINGS_SITE_SETTINGS_ALLOW
);
335 html_source
->AddLocalizedString("siteSettingsBlock",
336 IDS_SETTINGS_SITE_SETTINGS_BLOCK
);
337 html_source
->AddLocalizedString("siteSettingsExceptions",
338 IDS_SETTINGS_SITE_SETTINGS_EXCEPTIONS
);
339 html_source
->AddLocalizedString("siteSettingsAddSite",
340 IDS_SETTINGS_SITE_SETTINGS_ADD_SITE
);
341 html_source
->AddLocalizedString("siteSettingsSiteUrl",
342 IDS_SETTINGS_SITE_SETTINGS_SITE_URL
);
345 void AddSyncStrings(content::WebUIDataSource
* html_source
) {
346 html_source
->AddLocalizedString("syncPageTitle",
348 html_source
->AddLocalizedString("syncEverythingMenuOption",
349 IDS_SETTINGS_SYNC_EVERYTHING_MENU_OPTION
);
350 html_source
->AddLocalizedString("chooseWhatToSyncMenuOption",
351 IDS_SETTINGS_CHOOSE_WHAT_TO_SYNC_MENU_OPTION
);
352 html_source
->AddLocalizedString("appCheckboxLabel",
353 IDS_SETTINGS_APPS_CHECKBOX_LABEL
);
354 html_source
->AddLocalizedString("extensionsCheckboxLabel",
355 IDS_SETTINGS_EXTENSIONS_CHECKBOX_LABEL
);
356 html_source
->AddLocalizedString("settingsCheckboxLabel",
357 IDS_SETTINGS_SETTINGS_CHECKBOX_LABEL
);
358 html_source
->AddLocalizedString("autofillCheckboxLabel",
359 IDS_SETTINGS_AUTOFILL_CHECKBOX_LABEL
);
360 html_source
->AddLocalizedString("historyCheckboxLabel",
361 IDS_SETTINGS_HISTORY_CHECKBOX_LABEL
);
362 html_source
->AddLocalizedString(
363 "themesAndWallpapersCheckboxLabel",
364 IDS_SETTINGS_THEMES_AND_WALLPAPERS_CHECKBOX_LABEL
);
365 html_source
->AddLocalizedString("bookmarksCheckboxLabel",
366 IDS_SETTINGS_BOOKMARKS_CHECKBOX_LABEL
);
367 html_source
->AddLocalizedString("passwordsCheckboxLabel",
368 IDS_SETTINGS_PASSWORDS_CHECKBOX_LABEL
);
369 html_source
->AddLocalizedString("openTabsCheckboxLabel",
370 IDS_SETTINGS_OPEN_TABS_CHECKBOX_LABEL
);
371 html_source
->AddLocalizedString("encryptionOptionsTitle",
372 IDS_SETTINGS_ENCRYPTION_OPTIONS
);
373 html_source
->AddLocalizedString("syncDataEncryptedText",
374 IDS_SETTINGS_SYNC_DATA_ENCRYPTED_TEXT
);
375 html_source
->AddLocalizedString(
376 "encryptWithGoogleCredentialsLabel",
377 IDS_SETTINGS_ENCRYPT_WITH_GOOGLE_CREDENTIALS_LABEL
);
378 html_source
->AddLocalizedString(
379 "encryptWithSyncPassphraseLabel",
380 IDS_SETTINGS_ENCRYPT_WITH_SYNC_PASSPHRASE_LABEL
);
381 html_source
->AddLocalizedString(
382 "encryptWithSyncPassphraseLearnMoreLink",
383 IDS_SETTINGS_ENCRYPT_WITH_SYNC_PASSPHRASE_LEARN_MORE_LINK
);
384 html_source
->AddLocalizedString("useDefaultSettingsButton",
385 IDS_SETTINGS_USE_DEFAULT_SETTINGS_BUTTON
);
386 html_source
->AddLocalizedString("cancelButton",
387 IDS_SETTINGS_CANCEL_BUTTON
);
388 html_source
->AddLocalizedString("okButton",
389 IDS_SETTINGS_OK_BUTTON
);
392 void AddUsersStrings(content::WebUIDataSource
* html_source
) {
393 html_source
->AddLocalizedString("usersPageTitle",
395 html_source
->AddLocalizedString("usersModifiedByOwnerLabel",
396 IDS_SETTINGS_USERS_MODIFIED_BY_OWNER_LABEL
);
397 html_source
->AddLocalizedString("guestBrowsingLabel",
398 IDS_SETTINGS_USERS_GUEST_BROWSING_LABEL
);
399 html_source
->AddLocalizedString("settingsManagedLabel",
400 IDS_SETTINGS_USERS_MANAGED_LABEL
);
401 html_source
->AddLocalizedString("supervisedUsersLabel",
402 IDS_SETTINGS_USERS_SUPERVISED_USERS_LABEL
);
403 html_source
->AddLocalizedString("showOnSigninLabel",
404 IDS_SETTINGS_USERS_SHOW_ON_SIGNIN_LABEL
);
405 html_source
->AddLocalizedString("restrictSigninLabel",
406 IDS_SETTINGS_USERS_RESTRICT_SIGNIN_LABEL
);
407 html_source
->AddLocalizedString("addUsersLabel",
408 IDS_SETTINGS_USERS_ADD_USERS_LABEL
);
415 void AddLocalizedStrings(content::WebUIDataSource
* html_source
) {
416 html_source
->AddLocalizedString("basicPageTitle",
418 html_source
->AddLocalizedString("advancedPageTitle",
419 IDS_SETTINGS_ADVANCED
);
421 AddA11yStrings(html_source
);
422 AddAppearanceStrings(html_source
);
423 AddCertificateManagerStrings(html_source
);
424 AddCommonStrings(html_source
);
425 AddDownloadsStrings(html_source
);
426 AddDateTimeStrings(html_source
);
427 #if defined(OS_CHROMEOS)
428 AddInternetStrings(html_source
);
430 AddLanguagesStrings(html_source
);
431 AddOnStartupStrings(html_source
);
432 AddPrivacyStrings(html_source
);
433 AddSearchStrings(html_source
);
434 AddSearchEnginesStrings(html_source
);
435 AddSiteSettingsStrings(html_source
);
436 AddSyncStrings(html_source
);
437 AddUsersStrings(html_source
);
438 html_source
->SetJsonPath(kLocalizedStringsFile
);
441 } // namespace settings