| 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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 {"displayResolutionTextBest", IDS_SETTINGS_DISPLAY_RESOLUTION_TEXT_BEST}, | 595 {"displayResolutionTextBest", IDS_SETTINGS_DISPLAY_RESOLUTION_TEXT_BEST}, |
| 596 {"displayResolutionTextNative", | 596 {"displayResolutionTextNative", |
| 597 IDS_SETTINGS_DISPLAY_RESOLUTION_TEXT_NATIVE}, | 597 IDS_SETTINGS_DISPLAY_RESOLUTION_TEXT_NATIVE}, |
| 598 {"displayScreenTitle", IDS_SETTINGS_DISPLAY_SCREEN}, | 598 {"displayScreenTitle", IDS_SETTINGS_DISPLAY_SCREEN}, |
| 599 {"displayScreenExtended", IDS_SETTINGS_DISPLAY_SCREEN_EXTENDED}, | 599 {"displayScreenExtended", IDS_SETTINGS_DISPLAY_SCREEN_EXTENDED}, |
| 600 {"displayScreenPrimary", IDS_SETTINGS_DISPLAY_SCREEN_PRIMARY}, | 600 {"displayScreenPrimary", IDS_SETTINGS_DISPLAY_SCREEN_PRIMARY}, |
| 601 {"displayOrientation", IDS_SETTINGS_DISPLAY_ORIENTATION}, | 601 {"displayOrientation", IDS_SETTINGS_DISPLAY_ORIENTATION}, |
| 602 {"displayOrientationStandard", IDS_SETTINGS_DISPLAY_ORIENTATION_STANDARD}, | 602 {"displayOrientationStandard", IDS_SETTINGS_DISPLAY_ORIENTATION_STANDARD}, |
| 603 {"displayOverscanPageText", IDS_SETTINGS_DISPLAY_OVERSCAN_TEXT}, | 603 {"displayOverscanPageText", IDS_SETTINGS_DISPLAY_OVERSCAN_TEXT}, |
| 604 {"displayOverscanPageTitle", IDS_SETTINGS_DISPLAY_OVERSCAN_TITLE}, | 604 {"displayOverscanPageTitle", IDS_SETTINGS_DISPLAY_OVERSCAN_TITLE}, |
| 605 {"displayOverscanSubtitle", IDS_SETTINGS_DISPLAY_OVERSCAN_SUBTITLE}, |
| 605 {"displayOverscanInstructions", | 606 {"displayOverscanInstructions", |
| 606 IDS_SETTINGS_DISPLAY_OVERSCAN_INSTRUCTIONS}, | 607 IDS_SETTINGS_DISPLAY_OVERSCAN_INSTRUCTIONS}, |
| 607 {"displayOverscanResize", IDS_SETTINGS_DISPLAY_OVERSCAN_RESIZE}, | 608 {"displayOverscanResize", IDS_SETTINGS_DISPLAY_OVERSCAN_RESIZE}, |
| 608 {"displayOverscanPosition", IDS_SETTINGS_DISPLAY_OVERSCAN_POSITION}, | 609 {"displayOverscanPosition", IDS_SETTINGS_DISPLAY_OVERSCAN_POSITION}, |
| 609 {"displayOverscanReset", IDS_SETTINGS_DISPLAY_OVERSCAN_RESET}, | 610 {"displayOverscanReset", IDS_SETTINGS_DISPLAY_OVERSCAN_RESET}, |
| 610 {"displayOverscanSave", IDS_SETTINGS_DISPLAY_OVERSCAN_SAVE}, | |
| 611 }; | 611 }; |
| 612 AddLocalizedStringsBulk(html_source, display_strings, | 612 AddLocalizedStringsBulk(html_source, display_strings, |
| 613 arraysize(display_strings)); | 613 arraysize(display_strings)); |
| 614 | 614 |
| 615 LocalizedString storage_strings[] = { | 615 LocalizedString storage_strings[] = { |
| 616 {"storageTitle", IDS_SETTINGS_STORAGE_TITLE}, | 616 {"storageTitle", IDS_SETTINGS_STORAGE_TITLE}, |
| 617 {"storageItemInUse", IDS_SETTINGS_STORAGE_ITEM_IN_USE}, | 617 {"storageItemInUse", IDS_SETTINGS_STORAGE_ITEM_IN_USE}, |
| 618 {"storageItemAvailable", IDS_SETTINGS_STORAGE_ITEM_AVAILABLE}, | 618 {"storageItemAvailable", IDS_SETTINGS_STORAGE_ITEM_AVAILABLE}, |
| 619 {"storageItemDownloads", IDS_SETTINGS_STORAGE_ITEM_DOWNLOADS}, | 619 {"storageItemDownloads", IDS_SETTINGS_STORAGE_ITEM_DOWNLOADS}, |
| 620 {"storageItemDriveCache", IDS_SETTINGS_STORAGE_ITEM_DRIVE_CACHE}, | 620 {"storageItemDriveCache", IDS_SETTINGS_STORAGE_ITEM_DRIVE_CACHE}, |
| (...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1857 #if defined(USE_NSS_CERTS) | 1857 #if defined(USE_NSS_CERTS) |
| 1858 AddCertificateManagerStrings(html_source); | 1858 AddCertificateManagerStrings(html_source); |
| 1859 #endif | 1859 #endif |
| 1860 | 1860 |
| 1861 policy_indicator::AddLocalizedStrings(html_source); | 1861 policy_indicator::AddLocalizedStrings(html_source); |
| 1862 | 1862 |
| 1863 html_source->SetJsonPath(kLocalizedStringsFile); | 1863 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1864 } | 1864 } |
| 1865 | 1865 |
| 1866 } // namespace settings | 1866 } // namespace settings |
| OLD | NEW |