| 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 1727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1738 {"Oncipv4-RoutingPrefix", IDS_ONC_IPV4_ROUTING_PREFIX}, | 1738 {"Oncipv4-RoutingPrefix", IDS_ONC_IPV4_ROUTING_PREFIX}, |
| 1739 {"Oncipv6-IPAddress", IDS_ONC_IPV6_ADDRESS}, | 1739 {"Oncipv6-IPAddress", IDS_ONC_IPV6_ADDRESS}, |
| 1740 }; | 1740 }; |
| 1741 AddLocalizedStringsBulk(html_source, onc_property_strings, | 1741 AddLocalizedStringsBulk(html_source, onc_property_strings, |
| 1742 arraysize(onc_property_strings)); | 1742 arraysize(onc_property_strings)); |
| 1743 } | 1743 } |
| 1744 #endif // OS_CHROMEOS | 1744 #endif // OS_CHROMEOS |
| 1745 | 1745 |
| 1746 void AddLocalizedStrings(content::WebUIDataSource* html_source, | 1746 void AddLocalizedStrings(content::WebUIDataSource* html_source, |
| 1747 Profile* profile) { | 1747 Profile* profile) { |
| 1748 AddCommonStrings(html_source, profile); | |
| 1749 | |
| 1750 AddA11yStrings(html_source); | 1748 AddA11yStrings(html_source); |
| 1751 AddAboutStrings(html_source); | 1749 AddAboutStrings(html_source); |
| 1752 #if defined(OS_CHROMEOS) | |
| 1753 AddAccountUITweaksStrings(html_source, profile); | |
| 1754 #endif | |
| 1755 AddAppearanceStrings(html_source, profile); | 1750 AddAppearanceStrings(html_source, profile); |
| 1756 #if defined(OS_CHROMEOS) | |
| 1757 AddBluetoothStrings(html_source); | |
| 1758 #endif | |
| 1759 #if defined(USE_NSS_CERTS) | |
| 1760 AddCertificateManagerStrings(html_source); | |
| 1761 #endif | |
| 1762 AddClearBrowsingDataStrings(html_source); | 1751 AddClearBrowsingDataStrings(html_source); |
| 1763 #if !defined(OS_CHROMEOS) | 1752 AddCommonStrings(html_source, profile); |
| 1764 AddDefaultBrowserStrings(html_source); | |
| 1765 #endif | |
| 1766 #if defined(OS_CHROMEOS) | |
| 1767 AddDateTimeStrings(html_source); | |
| 1768 AddDeviceStrings(html_source); | |
| 1769 #endif | |
| 1770 AddDownloadsStrings(html_source); | 1753 AddDownloadsStrings(html_source); |
| 1771 | |
| 1772 #if defined(OS_CHROMEOS) | |
| 1773 AddEasyUnlockStrings(html_source); | |
| 1774 AddImportDataStrings(html_source); | |
| 1775 AddInternetStrings(html_source); | |
| 1776 AddCrNetworkStrings(html_source); | |
| 1777 #endif | |
| 1778 AddLanguagesStrings(html_source); | 1754 AddLanguagesStrings(html_source); |
| 1779 #if defined(OS_CHROMEOS) | |
| 1780 AddMultiProfilesStrings(html_source, profile); | |
| 1781 #endif | |
| 1782 AddOnStartupStrings(html_source); | 1755 AddOnStartupStrings(html_source); |
| 1783 AddPasswordsAndFormsStrings(html_source); | 1756 AddPasswordsAndFormsStrings(html_source); |
| 1784 AddPeopleStrings(html_source); | 1757 AddPeopleStrings(html_source); |
| 1785 AddPrintingStrings(html_source); | 1758 AddPrintingStrings(html_source); |
| 1786 AddPrivacyStrings(html_source); | 1759 AddPrivacyStrings(html_source); |
| 1787 AddResetStrings(html_source); | 1760 AddResetStrings(html_source); |
| 1788 AddSearchEnginesStrings(html_source); | 1761 AddSearchEnginesStrings(html_source); |
| 1789 AddSearchInSettingsStrings(html_source); | 1762 AddSearchInSettingsStrings(html_source); |
| 1790 AddSearchStrings(html_source); | 1763 AddSearchStrings(html_source); |
| 1791 AddSiteSettingsStrings(html_source, profile); | 1764 AddSiteSettingsStrings(html_source, profile); |
| 1792 #if !defined(OS_CHROMEOS) | |
| 1793 AddSystemStrings(html_source); | |
| 1794 #endif | |
| 1795 AddUsersStrings(html_source); | 1765 AddUsersStrings(html_source); |
| 1796 AddWebContentStrings(html_source); | 1766 AddWebContentStrings(html_source); |
| 1797 | 1767 |
| 1768 #if defined(OS_CHROMEOS) |
| 1769 AddAccountUITweaksStrings(html_source, profile); |
| 1770 AddBluetoothStrings(html_source); |
| 1771 AddCrNetworkStrings(html_source); |
| 1772 AddDateTimeStrings(html_source); |
| 1773 AddDeviceStrings(html_source); |
| 1774 AddEasyUnlockStrings(html_source); |
| 1775 AddImportDataStrings(html_source); |
| 1776 AddInternetStrings(html_source); |
| 1777 AddMultiProfilesStrings(html_source, profile); |
| 1778 #else |
| 1779 AddSystemStrings(html_source); |
| 1780 AddDefaultBrowserStrings(html_source); |
| 1781 #endif |
| 1782 |
| 1783 #if defined(USE_NSS_CERTS) |
| 1784 AddCertificateManagerStrings(html_source); |
| 1785 #endif |
| 1786 |
| 1798 policy_indicator::AddLocalizedStrings(html_source); | 1787 policy_indicator::AddLocalizedStrings(html_source); |
| 1799 | 1788 |
| 1800 html_source->SetJsonPath(kLocalizedStringsFile); | 1789 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1801 } | 1790 } |
| 1802 | 1791 |
| 1803 } // namespace settings | 1792 } // namespace settings |
| OLD | NEW |