| 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 #else | 309 #else |
| 310 {"resetToDefaultTheme", IDS_SETTINGS_RESET_TO_DEFAULT_THEME}, | 310 {"resetToDefaultTheme", IDS_SETTINGS_RESET_TO_DEFAULT_THEME}, |
| 311 #endif | 311 #endif |
| 312 {"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON}, | 312 {"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON}, |
| 313 {"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR}, | 313 {"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR}, |
| 314 {"homePageNtp", IDS_SETTINGS_HOME_PAGE_NTP}, | 314 {"homePageNtp", IDS_SETTINGS_HOME_PAGE_NTP}, |
| 315 {"other", IDS_SETTINGS_OTHER}, | 315 {"other", IDS_SETTINGS_OTHER}, |
| 316 {"changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE}, | 316 {"changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE}, |
| 317 {"themesGalleryUrl", IDS_THEMES_GALLERY_URL}, | 317 {"themesGalleryUrl", IDS_THEMES_GALLERY_URL}, |
| 318 {"chooseFromWebStore", IDS_SETTINGS_WEB_STORE}, | 318 {"chooseFromWebStore", IDS_SETTINGS_WEB_STORE}, |
| 319 {"chooseFonts", IDS_SETTINGS_CHOOSE_FONTS}, | |
| 320 #if defined(OS_CHROMEOS) | 319 #if defined(OS_CHROMEOS) |
| 321 {"openWallpaperApp", IDS_SETTINGS_OPEN_WALLPAPER_APP}, | 320 {"openWallpaperApp", IDS_SETTINGS_OPEN_WALLPAPER_APP}, |
| 322 {"setWallpaper", IDS_SETTINGS_SET_WALLPAPER}, | 321 {"setWallpaper", IDS_SETTINGS_SET_WALLPAPER}, |
| 323 #endif | 322 #endif |
| 324 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 323 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 325 {"showWindowDecorations", IDS_SHOW_WINDOW_DECORATIONS}, | 324 {"showWindowDecorations", IDS_SHOW_WINDOW_DECORATIONS}, |
| 326 #endif | 325 #endif |
| 327 }; | 326 }; |
| 328 AddLocalizedStringsBulk(html_source, localized_strings, | 327 AddLocalizedStringsBulk(html_source, localized_strings, |
| 329 arraysize(localized_strings)); | 328 arraysize(localized_strings)); |
| (...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1335 } | 1334 } |
| 1336 | 1335 |
| 1337 void AddPrintingStrings(content::WebUIDataSource* html_source) { | 1336 void AddPrintingStrings(content::WebUIDataSource* html_source) { |
| 1338 LocalizedString localized_strings[] = { | 1337 LocalizedString localized_strings[] = { |
| 1339 {"printingPageTitle", IDS_SETTINGS_PRINTING}, | 1338 {"printingPageTitle", IDS_SETTINGS_PRINTING}, |
| 1340 {"printingCloudPrintLearnMoreLabel", | 1339 {"printingCloudPrintLearnMoreLabel", |
| 1341 IDS_SETTINGS_PRINTING_CLOUD_PRINT_LEARN_MORE_LABEL}, | 1340 IDS_SETTINGS_PRINTING_CLOUD_PRINT_LEARN_MORE_LABEL}, |
| 1342 {"printingNotificationsLabel", IDS_SETTINGS_PRINTING_NOTIFICATIONS_LABEL}, | 1341 {"printingNotificationsLabel", IDS_SETTINGS_PRINTING_NOTIFICATIONS_LABEL}, |
| 1343 {"printingManageCloudPrintDevices", | 1342 {"printingManageCloudPrintDevices", |
| 1344 IDS_SETTINGS_PRINTING_MANAGE_CLOUD_PRINT_DEVICES}, | 1343 IDS_SETTINGS_PRINTING_MANAGE_CLOUD_PRINT_DEVICES}, |
| 1345 {"printingManageCloudPrintDevicesDescription", | |
| 1346 IDS_SETTINGS_PRINTING_MANAGE_CLOUD_PRINT_DEVICES_DESCRIPTION}, | |
| 1347 {"cloudPrintersTitle", IDS_SETTINGS_PRINTING_CLOUD_PRINTERS}, | 1344 {"cloudPrintersTitle", IDS_SETTINGS_PRINTING_CLOUD_PRINTERS}, |
| 1348 {"cloudPrintersTitleDescription", | 1345 {"cloudPrintersTitleDescription", |
| 1349 IDS_SETTINGS_PRINTING_CLOUD_PRINTERS_DESCRIPTION}, | 1346 IDS_SETTINGS_PRINTING_CLOUD_PRINTERS_DESCRIPTION}, |
| 1350 #if defined(OS_CHROMEOS) | 1347 #if defined(OS_CHROMEOS) |
| 1351 {"cupsPrintersTitle", IDS_SETTINGS_PRINTING_CUPS_PRINTERS}, | 1348 {"cupsPrintersTitle", IDS_SETTINGS_PRINTING_CUPS_PRINTERS}, |
| 1352 {"addCupsPrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_ADD_PRINTER}, | 1349 {"addCupsPrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_ADD_PRINTER}, |
| 1353 {"cupsPrinterDetails", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_DETAILS}, | 1350 {"cupsPrinterDetails", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_DETAILS}, |
| 1354 {"removePrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_REMOVE}, | 1351 {"removePrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_REMOVE}, |
| 1355 {"searchLabel", IDS_SETTINGS_PRINTING_CUPS_SEARCH_LABEL}, | 1352 {"searchLabel", IDS_SETTINGS_PRINTING_CUPS_SEARCH_LABEL}, |
| 1356 {"printerDetailsTitle", IDS_SETTINGS_PRINTING_CUPS_PRINTER_DETAILS_TITLE}, | 1353 {"printerDetailsTitle", IDS_SETTINGS_PRINTING_CUPS_PRINTER_DETAILS_TITLE}, |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1482 base::string16 help_text = l10n_util::GetStringFUTF16( | 1479 base::string16 help_text = l10n_util::GetStringFUTF16( |
| 1483 IDS_SETTINGS_SEARCH_NO_RESULTS_HELP, | 1480 IDS_SETTINGS_SEARCH_NO_RESULTS_HELP, |
| 1484 base::ASCIIToUTF16(chrome::kSettingsSearchHelpURL)); | 1481 base::ASCIIToUTF16(chrome::kSettingsSearchHelpURL)); |
| 1485 html_source->AddString("searchNoResultsHelp", help_text); | 1482 html_source->AddString("searchNoResultsHelp", help_text); |
| 1486 } | 1483 } |
| 1487 | 1484 |
| 1488 void AddSearchStrings(content::WebUIDataSource* html_source) { | 1485 void AddSearchStrings(content::WebUIDataSource* html_source) { |
| 1489 LocalizedString localized_strings[] = { | 1486 LocalizedString localized_strings[] = { |
| 1490 {"searchPageTitle", IDS_SETTINGS_SEARCH}, | 1487 {"searchPageTitle", IDS_SETTINGS_SEARCH}, |
| 1491 {"searchEnginesManage", IDS_SETTINGS_SEARCH_MANAGE_SEARCH_ENGINES}, | 1488 {"searchEnginesManage", IDS_SETTINGS_SEARCH_MANAGE_SEARCH_ENGINES}, |
| 1492 {"searchEnginesManageDescription", | |
| 1493 IDS_SETTINGS_SEARCH_MANAGE_SEARCH_ENGINES_DESCRIPTION}, | |
| 1494 {"searchOkGoogleLabel", IDS_SETTINGS_SEARCH_OK_GOOGLE_LABEL}, | 1489 {"searchOkGoogleLabel", IDS_SETTINGS_SEARCH_OK_GOOGLE_LABEL}, |
| 1495 {"searchOkGoogleSubtextAlwaysOn", | 1490 {"searchOkGoogleSubtextAlwaysOn", |
| 1496 IDS_SETTINGS_SEARCH_OK_GOOGLE_SUBTEXT_ALWAYS_ON}, | 1491 IDS_SETTINGS_SEARCH_OK_GOOGLE_SUBTEXT_ALWAYS_ON}, |
| 1497 {"searchOkGoogleSubtextNoHardware", | 1492 {"searchOkGoogleSubtextNoHardware", |
| 1498 IDS_SETTINGS_SEARCH_OK_GOOGLE_SUBTEXT_NO_HARDWARE}, | 1493 IDS_SETTINGS_SEARCH_OK_GOOGLE_SUBTEXT_NO_HARDWARE}, |
| 1499 {"searchOkGoogleLearnMore", IDS_SETTINGS_SEARCH_OK_GOOGLE_LEARN_MORE}, | 1494 {"searchOkGoogleLearnMore", IDS_SETTINGS_SEARCH_OK_GOOGLE_LEARN_MORE}, |
| 1500 {"searchOkGoogleAudioHistoryLabel", | 1495 {"searchOkGoogleAudioHistoryLabel", |
| 1501 IDS_SETTINGS_SEARCH_OK_GOOGLE_AUDIO_HISTORY_LABEL}, | 1496 IDS_SETTINGS_SEARCH_OK_GOOGLE_AUDIO_HISTORY_LABEL}, |
| 1502 {"searchOkGoogleAudioHistorySubtext", | 1497 {"searchOkGoogleAudioHistorySubtext", |
| 1503 IDS_SETTINGS_SEARCH_OK_GOOGLE_AUDIO_HISTORY_SUBTEXT}, | 1498 IDS_SETTINGS_SEARCH_OK_GOOGLE_AUDIO_HISTORY_SUBTEXT}, |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1970 | 1965 |
| 1971 #if defined(OS_CHROMEOS) | 1966 #if defined(OS_CHROMEOS) |
| 1972 chromeos::network_element::AddLocalizedStrings(html_source); | 1967 chromeos::network_element::AddLocalizedStrings(html_source); |
| 1973 #endif | 1968 #endif |
| 1974 policy_indicator::AddLocalizedStrings(html_source); | 1969 policy_indicator::AddLocalizedStrings(html_source); |
| 1975 | 1970 |
| 1976 html_source->SetJsonPath(kLocalizedStringsFile); | 1971 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1977 } | 1972 } |
| 1978 | 1973 |
| 1979 } // namespace settings | 1974 } // namespace settings |
| OLD | NEW |