| 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 "chrome/grit/generated_resources.h" | 7 #include "chrome/grit/generated_resources.h" |
| 8 #include "content/public/browser/web_ui_data_source.h" | 8 #include "content/public/browser/web_ui_data_source.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 html_source->AddLocalizedString( | 80 html_source->AddLocalizedString( |
| 81 "downloadsChangeLocationButton", | 81 "downloadsChangeLocationButton", |
| 82 IDS_SETTINGS_DOWNLOADS_CHANGE_LOCATION_BUTTON); | 82 IDS_SETTINGS_DOWNLOADS_CHANGE_LOCATION_BUTTON); |
| 83 html_source->AddLocalizedString( | 83 html_source->AddLocalizedString( |
| 84 "downloadsPromptForDownloadLabel", | 84 "downloadsPromptForDownloadLabel", |
| 85 IDS_SETTINGS_DOWNLOADS_PROMPT_FOR_DOWNLOAD_LABEL); | 85 IDS_SETTINGS_DOWNLOADS_PROMPT_FOR_DOWNLOAD_LABEL); |
| 86 } | 86 } |
| 87 | 87 |
| 88 void AddDateTimeStrings(content::WebUIDataSource* html_source) { | 88 void AddDateTimeStrings(content::WebUIDataSource* html_source) { |
| 89 html_source->AddLocalizedString( | 89 html_source->AddLocalizedString( |
| 90 "dateTimePageTitle", |
| 91 IDS_SETTINGS_DATE_TIME_PAGE_TITLE); |
| 92 html_source->AddLocalizedString( |
| 90 "dateTimeTimeZoneLabel", | 93 "dateTimeTimeZoneLabel", |
| 91 IDS_SETTINGS_DATE_TIME_TIME_ZONE_LABEL); | 94 IDS_SETTINGS_DATE_TIME_TIME_ZONE_LABEL); |
| 92 html_source->AddLocalizedString( | 95 html_source->AddLocalizedString( |
| 93 "dateTime24HourClockLabel", | 96 "dateTime24HourClockLabel", |
| 94 IDS_SETTINGS_DATE_TIME_24_HOUR_CLOCK_LABEL); | 97 IDS_SETTINGS_DATE_TIME_24_HOUR_CLOCK_LABEL); |
| 95 html_source->AddLocalizedString( | 98 html_source->AddLocalizedString( |
| 96 "dateTimeAutomaticallySet", | 99 "dateTimeAutomaticallySet", |
| 97 IDS_SETTINGS_DATE_TIME_AUTOMATICALLY_SET); | 100 IDS_SETTINGS_DATE_TIME_AUTOMATICALLY_SET); |
| 98 } | 101 } |
| 99 | 102 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 AddDateTimeStrings(html_source); | 157 AddDateTimeStrings(html_source); |
| 155 #if defined(OS_CHROMEOS) | 158 #if defined(OS_CHROMEOS) |
| 156 AddInternetStrings(html_source); | 159 AddInternetStrings(html_source); |
| 157 #endif | 160 #endif |
| 158 AddSearchStrings(html_source); | 161 AddSearchStrings(html_source); |
| 159 AddSearchEnginesStrings(html_source); | 162 AddSearchEnginesStrings(html_source); |
| 160 html_source->SetJsonPath(kLocalizedStringsFile); | 163 html_source->SetJsonPath(kLocalizedStringsFile); |
| 161 } | 164 } |
| 162 | 165 |
| 163 } // namespace settings | 166 } // namespace settings |
| OLD | NEW |