| 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 1528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1539 AddLocalizedStringsBulk(html_source, localized_strings, | 1539 AddLocalizedStringsBulk(html_source, localized_strings, |
| 1540 arraysize(localized_strings)); | 1540 arraysize(localized_strings)); |
| 1541 } | 1541 } |
| 1542 | 1542 |
| 1543 void AddSiteSettingsStrings(content::WebUIDataSource* html_source, | 1543 void AddSiteSettingsStrings(content::WebUIDataSource* html_source, |
| 1544 Profile* profile) { | 1544 Profile* profile) { |
| 1545 LocalizedString localized_strings[] = { | 1545 LocalizedString localized_strings[] = { |
| 1546 {"addSite", IDS_SETTINGS_ADD_SITE}, | 1546 {"addSite", IDS_SETTINGS_ADD_SITE}, |
| 1547 {"addSiteExceptionPlaceholder", | 1547 {"addSiteExceptionPlaceholder", |
| 1548 IDS_SETTINGS_ADD_SITE_EXCEPTION_PLACEHOLDER}, | 1548 IDS_SETTINGS_ADD_SITE_EXCEPTION_PLACEHOLDER}, |
| 1549 {"addSiteLink", IDS_SETTINGS_ADD_SITE_LINK}, | |
| 1550 {"addSiteTitle", IDS_SETTINGS_ADD_SITE_TITLE}, | 1549 {"addSiteTitle", IDS_SETTINGS_ADD_SITE_TITLE}, |
| 1551 {"cookieAppCache", IDS_SETTINGS_COOKIES_APPLICATION_CACHE}, | 1550 {"cookieAppCache", IDS_SETTINGS_COOKIES_APPLICATION_CACHE}, |
| 1552 {"cookieCacheStorage", IDS_SETTINGS_COOKIES_CACHE_STORAGE}, | 1551 {"cookieCacheStorage", IDS_SETTINGS_COOKIES_CACHE_STORAGE}, |
| 1553 {"cookieChannelId", IDS_SETTINGS_COOKIES_CHANNEL_ID}, | 1552 {"cookieChannelId", IDS_SETTINGS_COOKIES_CHANNEL_ID}, |
| 1554 {"cookieDatabaseStorage", IDS_SETTINGS_COOKIES_DATABASE_STORAGE}, | 1553 {"cookieDatabaseStorage", IDS_SETTINGS_COOKIES_DATABASE_STORAGE}, |
| 1555 {"cookieFileSystem", IDS_SETTINGS_COOKIES_FILE_SYSTEM}, | 1554 {"cookieFileSystem", IDS_SETTINGS_COOKIES_FILE_SYSTEM}, |
| 1556 {"cookieFlashLso", IDS_SETTINGS_COOKIES_FLASH_LSO}, | 1555 {"cookieFlashLso", IDS_SETTINGS_COOKIES_FLASH_LSO}, |
| 1557 {"cookieLocalStorage", IDS_SETTINGS_COOKIES_LOCAL_STORAGE}, | 1556 {"cookieLocalStorage", IDS_SETTINGS_COOKIES_LOCAL_STORAGE}, |
| 1558 {"cookieMediaLicense", IDS_SETTINGS_COOKIES_MEDIA_LICENSE}, | 1557 {"cookieMediaLicense", IDS_SETTINGS_COOKIES_MEDIA_LICENSE}, |
| 1559 {"cookiePlural", IDS_SETTINGS_COOKIES_PLURAL_COOKIES}, | 1558 {"cookiePlural", IDS_SETTINGS_COOKIES_PLURAL_COOKIES}, |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1965 | 1964 |
| 1966 #if defined(OS_CHROMEOS) | 1965 #if defined(OS_CHROMEOS) |
| 1967 chromeos::network_element::AddLocalizedStrings(html_source); | 1966 chromeos::network_element::AddLocalizedStrings(html_source); |
| 1968 #endif | 1967 #endif |
| 1969 policy_indicator::AddLocalizedStrings(html_source); | 1968 policy_indicator::AddLocalizedStrings(html_source); |
| 1970 | 1969 |
| 1971 html_source->SetJsonPath(kLocalizedStringsFile); | 1970 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1972 } | 1971 } |
| 1973 | 1972 |
| 1974 } // namespace settings | 1973 } // namespace settings |
| OLD | NEW |