| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/chromeos/extensions/file_manager/private_api_strings.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_strings.h" |
| 6 | 6 |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "base/sys_info.h" | 8 #include "base/sys_info.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/chromeos/file_manager/open_with_browser.h" | 10 #include "chrome/browser/chromeos/file_manager/open_with_browser.h" |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 void AddStringsForAudioPlayer(base::DictionaryValue* dict) { | 247 void AddStringsForAudioPlayer(base::DictionaryValue* dict) { |
| 248 SET_STRING("AUDIO_ERROR", IDS_FILE_BROWSER_AUDIO_ERROR); | 248 SET_STRING("AUDIO_ERROR", IDS_FILE_BROWSER_AUDIO_ERROR); |
| 249 SET_STRING("AUDIO_OFFLINE", IDS_FILE_BROWSER_AUDIO_OFFLINE); | 249 SET_STRING("AUDIO_OFFLINE", IDS_FILE_BROWSER_AUDIO_OFFLINE); |
| 250 SET_STRING("AUDIO_PLAYER_DEFAULT_ARTIST", | 250 SET_STRING("AUDIO_PLAYER_DEFAULT_ARTIST", |
| 251 IDS_FILE_BROWSER_AUDIO_PLAYER_DEFAULT_ARTIST); | 251 IDS_FILE_BROWSER_AUDIO_PLAYER_DEFAULT_ARTIST); |
| 252 SET_STRING("AUDIO_PLAYER_TITLE", IDS_FILE_BROWSER_AUDIO_PLAYER_TITLE); | 252 SET_STRING("AUDIO_PLAYER_TITLE", IDS_FILE_BROWSER_AUDIO_PLAYER_TITLE); |
| 253 SET_STRING("AUDIO_PLAYER_SHUFFLE_BUTTON_LABEL", | 253 SET_STRING("AUDIO_PLAYER_SHUFFLE_BUTTON_LABEL", |
| 254 IDS_AUDIO_PLAYER_SHUFFLE_BUTTON_LABEL); | 254 IDS_AUDIO_PLAYER_SHUFFLE_BUTTON_LABEL); |
| 255 SET_STRING("AUDIO_PLAYER_REPEAT_BUTTON_LABEL", | 255 SET_STRING("AUDIO_PLAYER_REPEAT_BUTTON_LABEL", |
| 256 IDS_AUDIO_PLAYER_REPEAT_BUTTON_LABEL); | 256 IDS_AUDIO_PLAYER_REPEAT_BUTTON_LABEL); |
| 257 SET_STRING("AUDIO_PLAYER_OPEN_VOLUME_SLIDER_BUTTON_LABEL", | |
| 258 IDS_AUDIO_PLAYER_OPEN_VOLUME_SLIDER_BUTTON_LABEL); | |
| 259 SET_STRING("AUDIO_PLAYER_OPEN_PLAY_LIST_BUTTON_LABEL", | 257 SET_STRING("AUDIO_PLAYER_OPEN_PLAY_LIST_BUTTON_LABEL", |
| 260 IDS_AUDIO_PLAYER_OPEN_PLAY_LIST_BUTTON_LABEL); | 258 IDS_AUDIO_PLAYER_OPEN_PLAY_LIST_BUTTON_LABEL); |
| 261 } | 259 } |
| 262 | 260 |
| 263 void AddStringsForCloudImport(base::DictionaryValue* dict) { | 261 void AddStringsForCloudImport(base::DictionaryValue* dict) { |
| 264 SET_STRING("CLOUD_IMPORT_TITLE", IDS_FILE_BROWSER_CLOUD_IMPORT_TITLE); | 262 SET_STRING("CLOUD_IMPORT_TITLE", IDS_FILE_BROWSER_CLOUD_IMPORT_TITLE); |
| 265 SET_STRING("CLOUD_IMPORT_DESTINATION_FOLDER", | 263 SET_STRING("CLOUD_IMPORT_DESTINATION_FOLDER", |
| 266 IDS_FILE_BROWSER_CLOUD_DESTINATION_FOLDER); | 264 IDS_FILE_BROWSER_CLOUD_DESTINATION_FOLDER); |
| 267 SET_STRING("CLOUD_IMPORT_DESCRIPTION", | 265 SET_STRING("CLOUD_IMPORT_DESCRIPTION", |
| 268 IDS_FILE_BROWSER_CLOUD_IMPORT_DESCRIPTION); | 266 IDS_FILE_BROWSER_CLOUD_IMPORT_DESCRIPTION); |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber)); | 622 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber)); |
| 625 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault()); | 623 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault()); |
| 626 | 624 |
| 627 const std::string& app_locale = g_browser_process->GetApplicationLocale(); | 625 const std::string& app_locale = g_browser_process->GetApplicationLocale(); |
| 628 webui::SetLoadTimeDataDefaults(app_locale, dict); | 626 webui::SetLoadTimeDataDefaults(app_locale, dict); |
| 629 | 627 |
| 630 return true; | 628 return true; |
| 631 } | 629 } |
| 632 | 630 |
| 633 } // namespace extensions | 631 } // namespace extensions |
| OLD | NEW |