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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 SET_STRING("DRIVE_WELCOME_DISMISS", IDS_FILE_BROWSER_DRIVE_WELCOME_DISMISS); | 141 SET_STRING("DRIVE_WELCOME_DISMISS", IDS_FILE_BROWSER_DRIVE_WELCOME_DISMISS); |
142 SET_STRING("DRIVE_WELCOME_TEXT_LONG", | 142 SET_STRING("DRIVE_WELCOME_TEXT_LONG", |
143 IDS_FILE_BROWSER_DRIVE_WELCOME_TEXT_LONG); | 143 IDS_FILE_BROWSER_DRIVE_WELCOME_TEXT_LONG); |
144 SET_STRING("DRIVE_WELCOME_TEXT_SHORT", | 144 SET_STRING("DRIVE_WELCOME_TEXT_SHORT", |
145 IDS_FILE_BROWSER_DRIVE_WELCOME_TEXT_SHORT); | 145 IDS_FILE_BROWSER_DRIVE_WELCOME_TEXT_SHORT); |
146 SET_STRING("DRIVE_WELCOME_TITLE", IDS_FILE_BROWSER_DRIVE_WELCOME_TITLE); | 146 SET_STRING("DRIVE_WELCOME_TITLE", IDS_FILE_BROWSER_DRIVE_WELCOME_TITLE); |
147 SET_STRING("DRIVE_WELCOME_TITLE_ALTERNATIVE", | 147 SET_STRING("DRIVE_WELCOME_TITLE_ALTERNATIVE", |
148 IDS_FILE_BROWSER_DRIVE_WELCOME_TITLE_ALTERNATIVE); | 148 IDS_FILE_BROWSER_DRIVE_WELCOME_TITLE_ALTERNATIVE); |
149 SET_STRING("DRIVE_WELCOME_TITLE_ALTERNATIVE_1TB", | 149 SET_STRING("DRIVE_WELCOME_TITLE_ALTERNATIVE_1TB", |
150 IDS_FILE_BROWSER_DRIVE_WELCOME_TITLE_ALTERNATIVE_1TB); | 150 IDS_FILE_BROWSER_DRIVE_WELCOME_TITLE_ALTERNATIVE_1TB); |
| 151 SET_STRING("SYNC_DELETE_WITHOUT_PERMISSION_ERROR", |
| 152 IDS_FILE_BROWSER_SYNC_DELETE_WITHOUT_PERMISSION_ERROR); |
| 153 SET_STRING("SYNC_FILE_NAME", IDS_FILE_BROWSER_SYNC_FILE_NAME); |
| 154 SET_STRING("SYNC_FILE_NUMBER", IDS_FILE_BROWSER_SYNC_FILE_NUMBER); |
| 155 SET_STRING("SYNC_MISC_ERROR", IDS_FILE_BROWSER_SYNC_MISC_ERROR); |
| 156 SET_STRING("SYNC_PROGRESS_SUMMARY", IDS_FILE_BROWSER_SYNC_PROGRESS_SUMMARY); |
| 157 SET_STRING("SYNC_SERVICE_UNAVAILABLE_ERROR", |
| 158 IDS_FILE_BROWSER_SYNC_SERVICE_UNAVAILABLE_ERROR); |
151 } | 159 } |
152 | 160 |
153 void AddStringsForGallery(base::DictionaryValue* dict) { | 161 void AddStringsForGallery(base::DictionaryValue* dict) { |
154 SET_STRING("GALLERY_ASPECT_RATIO_16_9", | 162 SET_STRING("GALLERY_ASPECT_RATIO_16_9", |
155 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_16_9); | 163 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_16_9); |
156 SET_STRING("GALLERY_ASPECT_RATIO_1_1", | 164 SET_STRING("GALLERY_ASPECT_RATIO_1_1", |
157 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_1_1); | 165 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_1_1); |
158 SET_STRING("GALLERY_ASPECT_RATIO_4_6", | 166 SET_STRING("GALLERY_ASPECT_RATIO_4_6", |
159 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_4_6); | 167 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_4_6); |
160 SET_STRING("GALLERY_ASPECT_RATIO_5_7", | 168 SET_STRING("GALLERY_ASPECT_RATIO_5_7", |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 SET_STRING("VIDEO_PLAYER_PLAYING_ON", IDS_VIDEO_PLAYER_PLAYING_ON); | 222 SET_STRING("VIDEO_PLAYER_PLAYING_ON", IDS_VIDEO_PLAYER_PLAYING_ON); |
215 SET_STRING("VIDEO_PLAYER_PLAY_ON", IDS_VIDEO_PLAYER_PLAY_ON); | 223 SET_STRING("VIDEO_PLAYER_PLAY_ON", IDS_VIDEO_PLAYER_PLAY_ON); |
216 SET_STRING("VIDEO_PLAYER_PLAY_THIS_COMPUTER", | 224 SET_STRING("VIDEO_PLAYER_PLAY_THIS_COMPUTER", |
217 IDS_VIDEO_PLAYER_PLAY_THIS_COMPUTER); | 225 IDS_VIDEO_PLAYER_PLAY_THIS_COMPUTER); |
218 SET_STRING("VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED", | 226 SET_STRING("VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED", |
219 IDS_VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED); | 227 IDS_VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED); |
220 SET_STRING("VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED_FOR_CAST", | 228 SET_STRING("VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED_FOR_CAST", |
221 IDS_VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED_FOR_CAST); | 229 IDS_VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED_FOR_CAST); |
222 } | 230 } |
223 | 231 |
224 } // namespace | 232 void AddStringsForAudioPlayer(base::DictionaryValue* dict) { |
225 | |
226 namespace extensions { | |
227 | |
228 FileManagerPrivateGetStringsFunction::FileManagerPrivateGetStringsFunction() { | |
229 } | |
230 | |
231 FileManagerPrivateGetStringsFunction::~FileManagerPrivateGetStringsFunction() { | |
232 } | |
233 | |
234 bool FileManagerPrivateGetStringsFunction::RunSync() { | |
235 base::DictionaryValue* dict = new base::DictionaryValue(); | |
236 SetResult(dict); | |
237 | |
238 AddStringsForDrive(dict); | |
239 AddStringsForFileTypes(dict); | |
240 AddStringsForGallery(dict); | |
241 AddStringsForVideoPlayer(dict); | |
242 | |
243 SET_STRING("ACTION_LISTEN", IDS_FILE_BROWSER_ACTION_LISTEN); | |
244 SET_STRING("ACTION_OPEN", IDS_FILE_BROWSER_ACTION_OPEN); | |
245 SET_STRING("ACTION_OPEN_GDOC", IDS_FILE_BROWSER_ACTION_OPEN_GDOC); | |
246 SET_STRING("ACTION_OPEN_GSHEET", IDS_FILE_BROWSER_ACTION_OPEN_GSHEET); | |
247 SET_STRING("ACTION_OPEN_GSLIDES", IDS_FILE_BROWSER_ACTION_OPEN_GSLIDES); | |
248 SET_STRING("ACTION_VIEW", IDS_FILE_BROWSER_ACTION_VIEW); | |
249 SET_STRING("ACTION_WATCH", IDS_FILE_BROWSER_ACTION_WATCH); | |
250 SET_STRING("ADD_NEW_SERVICES_BUTTON_LABEL", | |
251 IDS_FILE_BROWSER_ADD_NEW_SERVICES_BUTTON_LABEL); | |
252 SET_STRING("ALL_FILES_FILTER", IDS_FILE_BROWSER_ALL_FILES_FILTER); | |
253 SET_STRING("ARCHIVE_DIRECTORY_LABEL", | |
254 IDS_FILE_BROWSER_ARCHIVE_DIRECTORY_LABEL); | |
255 SET_STRING("ARCHIVE_MOUNT_FAILED", IDS_FILE_BROWSER_ARCHIVE_MOUNT_FAILED); | |
256 SET_STRING("AUDIO_ERROR", IDS_FILE_BROWSER_AUDIO_ERROR); | 233 SET_STRING("AUDIO_ERROR", IDS_FILE_BROWSER_AUDIO_ERROR); |
257 SET_STRING("AUDIO_OFFLINE", IDS_FILE_BROWSER_AUDIO_OFFLINE); | 234 SET_STRING("AUDIO_OFFLINE", IDS_FILE_BROWSER_AUDIO_OFFLINE); |
258 SET_STRING("AUDIO_PLAYER_DEFAULT_ARTIST", | 235 SET_STRING("AUDIO_PLAYER_DEFAULT_ARTIST", |
259 IDS_FILE_BROWSER_AUDIO_PLAYER_DEFAULT_ARTIST); | 236 IDS_FILE_BROWSER_AUDIO_PLAYER_DEFAULT_ARTIST); |
260 SET_STRING("AUDIO_PLAYER_TITLE", IDS_FILE_BROWSER_AUDIO_PLAYER_TITLE); | 237 SET_STRING("AUDIO_PLAYER_TITLE", IDS_FILE_BROWSER_AUDIO_PLAYER_TITLE); |
261 SET_STRING("CALCULATING_SIZE", IDS_FILE_BROWSER_CALCULATING_SIZE); | 238 } |
262 SET_STRING("CANCEL_LABEL", IDS_FILE_BROWSER_CANCEL_LABEL); | |
263 SET_STRING("CHANGE_DEFAULT_CAPTION", IDS_FILE_BROWSER_CHANGE_DEFAULT_CAPTION); | |
264 SET_STRING("CHANGE_DEFAULT_MENU_ITEM", | |
265 IDS_FILE_BROWSER_CHANGE_DEFAULT_MENU_ITEM); | |
266 SET_STRING("CLOSE_VOLUME_BUTTON_LABEL", | |
267 IDS_FILE_BROWSER_CLOSE_VOLUME_BUTTON_LABEL); | |
268 | 239 |
269 SET_STRING("CLOUD_IMPORT_TITLE", | 240 void AddStringsForCloudImport(base::DictionaryValue* dict) { |
270 IDS_FILE_BROWSER_CLOUD_IMPORT_TITLE); | 241 SET_STRING("CLOUD_IMPORT_TITLE", IDS_FILE_BROWSER_CLOUD_IMPORT_TITLE); |
271 SET_STRING("CLOUD_IMPORT_DESTINATION_FOLDER", | 242 SET_STRING("CLOUD_IMPORT_DESTINATION_FOLDER", |
272 IDS_FILE_BROWSER_CLOUD_DESTINATION_FOLDER); | 243 IDS_FILE_BROWSER_CLOUD_DESTINATION_FOLDER); |
273 SET_STRING("CLOUD_IMPORT_DESCRIPTION", | 244 SET_STRING("CLOUD_IMPORT_DESCRIPTION", |
274 IDS_FILE_BROWSER_CLOUD_IMPORT_DESCRIPTION); | 245 IDS_FILE_BROWSER_CLOUD_IMPORT_DESCRIPTION); |
275 SET_STRING("CLOUD_IMPORT_START", | 246 SET_STRING("CLOUD_IMPORT_START", IDS_FILE_BROWSER_CLOUD_IMPORT_START); |
276 IDS_FILE_BROWSER_CLOUD_IMPORT_START); | |
277 SET_STRING("CLOUD_IMPORT_SHOW_DETAILS", | 247 SET_STRING("CLOUD_IMPORT_SHOW_DETAILS", |
278 IDS_FILE_BROWSER_CLOUD_IMPORT_SHOW_DETAILS); | 248 IDS_FILE_BROWSER_CLOUD_IMPORT_SHOW_DETAILS); |
279 SET_STRING("CLOUD_IMPORT_COMMAND", | 249 SET_STRING("CLOUD_IMPORT_COMMAND", IDS_FILE_BROWSER_CLOUD_IMPORT_COMMAND); |
280 IDS_FILE_BROWSER_CLOUD_IMPORT_COMMAND); | |
281 SET_STRING("CLOUD_IMPORT_CANCEL_COMMAND", | 250 SET_STRING("CLOUD_IMPORT_CANCEL_COMMAND", |
282 IDS_FILE_BROWSER_CLOUD_IMPORT_CANCEL_COMMAND); | 251 IDS_FILE_BROWSER_CLOUD_IMPORT_CANCEL_COMMAND); |
283 | 252 |
284 SET_STRING("CLOUD_IMPORT_STATUS_READY", | 253 SET_STRING("CLOUD_IMPORT_STATUS_READY", |
285 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_DONE); | 254 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_DONE); |
286 SET_STRING("CLOUD_IMPORT_STATUS_IMPORTING", | 255 SET_STRING("CLOUD_IMPORT_STATUS_IMPORTING", |
287 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_IMPORTING); | 256 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_IMPORTING); |
288 SET_STRING("CLOUD_IMPORT_STATUS_INSUFFICIENT_SPACE", | 257 SET_STRING("CLOUD_IMPORT_STATUS_INSUFFICIENT_SPACE", |
289 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_INSUFFICIENT_SPACE); | 258 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_INSUFFICIENT_SPACE); |
290 SET_STRING("CLOUD_IMPORT_STATUS_NO_MEDIA", | 259 SET_STRING("CLOUD_IMPORT_STATUS_NO_MEDIA", |
(...skipping 10 matching lines...) Expand all Loading... |
301 SET_STRING("CLOUD_IMPORT_TOOLTIP_IMPORTING", | 270 SET_STRING("CLOUD_IMPORT_TOOLTIP_IMPORTING", |
302 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_IMPORTING); | 271 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_IMPORTING); |
303 SET_STRING("CLOUD_IMPORT_TOOLTIP_INSUFFICIENT_SPACE", | 272 SET_STRING("CLOUD_IMPORT_TOOLTIP_INSUFFICIENT_SPACE", |
304 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_INSUFFICIENT_SPACE); | 273 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_INSUFFICIENT_SPACE); |
305 SET_STRING("CLOUD_IMPORT_TOOLTIP_NO_MEDIA", | 274 SET_STRING("CLOUD_IMPORT_TOOLTIP_NO_MEDIA", |
306 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_NO_MEDIA); | 275 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_NO_MEDIA); |
307 SET_STRING("CLOUD_IMPORT_TOOLTIP_READY", | 276 SET_STRING("CLOUD_IMPORT_TOOLTIP_READY", |
308 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_READY); | 277 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_READY); |
309 SET_STRING("CLOUD_IMPORT_TOOLTIP_SCANNING", | 278 SET_STRING("CLOUD_IMPORT_TOOLTIP_SCANNING", |
310 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_SCANNING); | 279 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_SCANNING); |
| 280 } |
311 | 281 |
| 282 void AddStringsForCrUiMenuItemShortcuts(base::DictionaryValue* dict) { |
| 283 // Shortcut key names: used from cr.ui.MenuItem.updateShortcut_. |
| 284 SET_STRING("SHORTCUT_ALT", IDS_FILE_BROWSER_SHORTCUT_ALT); |
| 285 SET_STRING("SHORTCUT_CTRL", IDS_FILE_BROWSER_SHORTCUT_CTRL); |
| 286 SET_STRING("SHORTCUT_ENTER", IDS_FILE_BROWSER_SHORTCUT_ENTER); |
| 287 SET_STRING("SHORTCUT_META", IDS_FILE_BROWSER_SHORTCUT_META); |
| 288 SET_STRING("SHORTCUT_SHIFT", IDS_FILE_BROWSER_SHORTCUT_SHIFT); |
| 289 SET_STRING("SHORTCUT_SPACE", IDS_FILE_BROWSER_SHORTCUT_SPACE); |
| 290 } |
| 291 |
| 292 void AddStringsForFileErrors(base::DictionaryValue* dict) { |
| 293 SET_STRING("FILE_ERROR_GENERIC", IDS_FILE_BROWSER_FILE_ERROR_GENERIC); |
| 294 SET_STRING("FILE_ERROR_INVALID_MODIFICATION", |
| 295 IDS_FILE_BROWSER_FILE_ERROR_INVALID_MODIFICATION); |
| 296 SET_STRING("FILE_ERROR_INVALID_STATE", |
| 297 IDS_FILE_BROWSER_FILE_ERROR_INVALID_STATE); |
| 298 SET_STRING("FILE_ERROR_NOT_FOUND", IDS_FILE_BROWSER_FILE_ERROR_NOT_FOUND); |
| 299 SET_STRING("FILE_ERROR_NOT_READABLE", |
| 300 IDS_FILE_BROWSER_FILE_ERROR_NOT_READABLE); |
| 301 SET_STRING("FILE_ERROR_NO_MODIFICATION_ALLOWED", |
| 302 IDS_FILE_BROWSER_FILE_ERROR_NO_MODIFICATION_ALLOWED); |
| 303 SET_STRING("FILE_ERROR_PATH_EXISTS", IDS_FILE_BROWSER_FILE_ERROR_PATH_EXISTS); |
| 304 SET_STRING("FILE_ERROR_QUOTA_EXCEEDED", |
| 305 IDS_FILE_BROWSER_FILE_ERROR_QUOTA_EXCEEDED); |
| 306 SET_STRING("FILE_ERROR_SECURITY", IDS_FILE_BROWSER_FILE_ERROR_SECURITY); |
| 307 } |
| 308 |
| 309 } // namespace |
| 310 |
| 311 namespace extensions { |
| 312 |
| 313 FileManagerPrivateGetStringsFunction::FileManagerPrivateGetStringsFunction() { |
| 314 } |
| 315 |
| 316 FileManagerPrivateGetStringsFunction::~FileManagerPrivateGetStringsFunction() { |
| 317 } |
| 318 |
| 319 bool FileManagerPrivateGetStringsFunction::RunSync() { |
| 320 base::DictionaryValue* dict = new base::DictionaryValue(); |
| 321 SetResult(dict); |
| 322 |
| 323 AddStringsForDrive(dict); |
| 324 AddStringsForFileTypes(dict); |
| 325 AddStringsForGallery(dict); |
| 326 AddStringsForVideoPlayer(dict); |
| 327 AddStringsForAudioPlayer(dict); |
| 328 AddStringsForCloudImport(dict); |
| 329 AddStringsForCrUiMenuItemShortcuts(dict); |
| 330 AddStringsForFileErrors(dict); |
| 331 |
| 332 SET_STRING("ACTION_LISTEN", IDS_FILE_BROWSER_ACTION_LISTEN); |
| 333 SET_STRING("ACTION_OPEN", IDS_FILE_BROWSER_ACTION_OPEN); |
| 334 SET_STRING("ACTION_OPEN_GDOC", IDS_FILE_BROWSER_ACTION_OPEN_GDOC); |
| 335 SET_STRING("ACTION_OPEN_GSHEET", IDS_FILE_BROWSER_ACTION_OPEN_GSHEET); |
| 336 SET_STRING("ACTION_OPEN_GSLIDES", IDS_FILE_BROWSER_ACTION_OPEN_GSLIDES); |
| 337 SET_STRING("ACTION_VIEW", IDS_FILE_BROWSER_ACTION_VIEW); |
| 338 SET_STRING("ACTION_WATCH", IDS_FILE_BROWSER_ACTION_WATCH); |
| 339 SET_STRING("ADD_NEW_SERVICES_BUTTON_LABEL", |
| 340 IDS_FILE_BROWSER_ADD_NEW_SERVICES_BUTTON_LABEL); |
| 341 SET_STRING("ALL_FILES_FILTER", IDS_FILE_BROWSER_ALL_FILES_FILTER); |
| 342 SET_STRING("ARCHIVE_DIRECTORY_LABEL", |
| 343 IDS_FILE_BROWSER_ARCHIVE_DIRECTORY_LABEL); |
| 344 SET_STRING("ARCHIVE_MOUNT_FAILED", IDS_FILE_BROWSER_ARCHIVE_MOUNT_FAILED); |
| 345 SET_STRING("CALCULATING_SIZE", IDS_FILE_BROWSER_CALCULATING_SIZE); |
| 346 SET_STRING("CANCEL_LABEL", IDS_FILE_BROWSER_CANCEL_LABEL); |
| 347 SET_STRING("CHANGE_DEFAULT_CAPTION", IDS_FILE_BROWSER_CHANGE_DEFAULT_CAPTION); |
| 348 SET_STRING("CHANGE_DEFAULT_MENU_ITEM", |
| 349 IDS_FILE_BROWSER_CHANGE_DEFAULT_MENU_ITEM); |
| 350 SET_STRING("CLOSE_VOLUME_BUTTON_LABEL", |
| 351 IDS_FILE_BROWSER_CLOSE_VOLUME_BUTTON_LABEL); |
312 SET_STRING("CONFIGURE_VOLUME_BUTTON_LABEL", | 352 SET_STRING("CONFIGURE_VOLUME_BUTTON_LABEL", |
313 IDS_FILE_BROWSER_CONFIGURE_VOLUME_BUTTON_LABEL); | 353 IDS_FILE_BROWSER_CONFIGURE_VOLUME_BUTTON_LABEL); |
314 SET_STRING("CONFIRM_MOBILE_DATA_USE", | 354 SET_STRING("CONFIRM_MOBILE_DATA_USE", |
315 IDS_FILE_BROWSER_CONFIRM_MOBILE_DATA_USE); | 355 IDS_FILE_BROWSER_CONFIRM_MOBILE_DATA_USE); |
316 SET_STRING("CONFIRM_MOBILE_DATA_USE_PLURAL", | 356 SET_STRING("CONFIRM_MOBILE_DATA_USE_PLURAL", |
317 IDS_FILE_BROWSER_CONFIRM_MOBILE_DATA_USE_PLURAL); | 357 IDS_FILE_BROWSER_CONFIRM_MOBILE_DATA_USE_PLURAL); |
318 SET_STRING("CONFIRM_OVERWRITE_FILE", IDS_FILE_BROWSER_CONFIRM_OVERWRITE_FILE); | 358 SET_STRING("CONFIRM_OVERWRITE_FILE", IDS_FILE_BROWSER_CONFIRM_OVERWRITE_FILE); |
319 SET_STRING("CONFLICT_DIALOG_APPLY_TO_ALL", | 359 SET_STRING("CONFLICT_DIALOG_APPLY_TO_ALL", |
320 IDS_FILE_BROWSER_CONFLICT_DIALOG_APPLY_TO_ALL); | 360 IDS_FILE_BROWSER_CONFLICT_DIALOG_APPLY_TO_ALL); |
321 SET_STRING("CONFLICT_DIALOG_KEEP_BOTH", | 361 SET_STRING("CONFLICT_DIALOG_KEEP_BOTH", |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 SET_STRING("ERROR_PROGRESS_SUMMARY_PLURAL", | 419 SET_STRING("ERROR_PROGRESS_SUMMARY_PLURAL", |
380 IDS_FILE_BROWSER_ERROR_PROGRESS_SUMMARY_PLURAL); | 420 IDS_FILE_BROWSER_ERROR_PROGRESS_SUMMARY_PLURAL); |
381 SET_STRING("ERROR_RENAMING", IDS_FILE_BROWSER_ERROR_RENAMING); | 421 SET_STRING("ERROR_RENAMING", IDS_FILE_BROWSER_ERROR_RENAMING); |
382 SET_STRING("ERROR_RESERVED_NAME", IDS_FILE_BROWSER_ERROR_RESERVED_NAME); | 422 SET_STRING("ERROR_RESERVED_NAME", IDS_FILE_BROWSER_ERROR_RESERVED_NAME); |
383 SET_STRING("ERROR_WHITESPACE_NAME", IDS_FILE_BROWSER_ERROR_WHITESPACE_NAME); | 423 SET_STRING("ERROR_WHITESPACE_NAME", IDS_FILE_BROWSER_ERROR_WHITESPACE_NAME); |
384 SET_STRING("EXTERNAL_STORAGE_DISABLED_MESSAGE", | 424 SET_STRING("EXTERNAL_STORAGE_DISABLED_MESSAGE", |
385 IDS_EXTERNAL_STORAGE_DISABLED_MESSAGE); | 425 IDS_EXTERNAL_STORAGE_DISABLED_MESSAGE); |
386 SET_STRING("FAILED_SPACE_INFO", IDS_FILE_BROWSER_FAILED_SPACE_INFO); | 426 SET_STRING("FAILED_SPACE_INFO", IDS_FILE_BROWSER_FAILED_SPACE_INFO); |
387 SET_STRING("FILENAME_LABEL", IDS_FILE_BROWSER_FILENAME_LABEL); | 427 SET_STRING("FILENAME_LABEL", IDS_FILE_BROWSER_FILENAME_LABEL); |
388 SET_STRING("FILE_ALREADY_EXISTS", IDS_FILE_BROWSER_FILE_ALREADY_EXISTS); | 428 SET_STRING("FILE_ALREADY_EXISTS", IDS_FILE_BROWSER_FILE_ALREADY_EXISTS); |
389 SET_STRING("FILE_ERROR_GENERIC", IDS_FILE_BROWSER_FILE_ERROR_GENERIC); | |
390 SET_STRING("FILE_ERROR_INVALID_MODIFICATION", | |
391 IDS_FILE_BROWSER_FILE_ERROR_INVALID_MODIFICATION); | |
392 SET_STRING("FILE_ERROR_INVALID_STATE", | |
393 IDS_FILE_BROWSER_FILE_ERROR_INVALID_STATE); | |
394 SET_STRING("FILE_ERROR_NOT_FOUND", IDS_FILE_BROWSER_FILE_ERROR_NOT_FOUND); | |
395 SET_STRING("FILE_ERROR_NOT_READABLE", | |
396 IDS_FILE_BROWSER_FILE_ERROR_NOT_READABLE); | |
397 SET_STRING("FILE_ERROR_NO_MODIFICATION_ALLOWED", | |
398 IDS_FILE_BROWSER_FILE_ERROR_NO_MODIFICATION_ALLOWED); | |
399 SET_STRING("FILE_ERROR_PATH_EXISTS", IDS_FILE_BROWSER_FILE_ERROR_PATH_EXISTS); | |
400 SET_STRING("FILE_ERROR_QUOTA_EXCEEDED", | |
401 IDS_FILE_BROWSER_FILE_ERROR_QUOTA_EXCEEDED); | |
402 SET_STRING("FILE_ERROR_SECURITY", IDS_FILE_BROWSER_FILE_ERROR_SECURITY); | |
403 SET_STRING("FORMATTING_FINISHED_FAILURE_MESSAGE", | 429 SET_STRING("FORMATTING_FINISHED_FAILURE_MESSAGE", |
404 IDS_FORMATTING_FINISHED_FAILURE_MESSAGE); | 430 IDS_FORMATTING_FINISHED_FAILURE_MESSAGE); |
405 SET_STRING("FORMATTING_FINISHED_SUCCESS_MESSAGE", | 431 SET_STRING("FORMATTING_FINISHED_SUCCESS_MESSAGE", |
406 IDS_FORMATTING_FINISHED_SUCCESS_MESSAGE); | 432 IDS_FORMATTING_FINISHED_SUCCESS_MESSAGE); |
407 SET_STRING("FORMATTING_OF_DEVICE_FAILED_TITLE", | 433 SET_STRING("FORMATTING_OF_DEVICE_FAILED_TITLE", |
408 IDS_FORMATTING_OF_DEVICE_FAILED_TITLE); | 434 IDS_FORMATTING_OF_DEVICE_FAILED_TITLE); |
409 SET_STRING("FORMATTING_OF_DEVICE_FINISHED_TITLE", | 435 SET_STRING("FORMATTING_OF_DEVICE_FINISHED_TITLE", |
410 IDS_FORMATTING_OF_DEVICE_FINISHED_TITLE); | 436 IDS_FORMATTING_OF_DEVICE_FINISHED_TITLE); |
411 SET_STRING("FORMATTING_OF_DEVICE_PENDING_MESSAGE", | 437 SET_STRING("FORMATTING_OF_DEVICE_PENDING_MESSAGE", |
412 IDS_FORMATTING_OF_DEVICE_PENDING_MESSAGE); | 438 IDS_FORMATTING_OF_DEVICE_PENDING_MESSAGE); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 IDS_FILE_BROWSER_TOGGLE_HIDDEN_FILES_COMMAND_LABEL); | 528 IDS_FILE_BROWSER_TOGGLE_HIDDEN_FILES_COMMAND_LABEL); |
503 SET_STRING("SHARE_BUTTON_LABEL", IDS_FILE_BROWSER_SHARE_BUTTON_LABEL); | 529 SET_STRING("SHARE_BUTTON_LABEL", IDS_FILE_BROWSER_SHARE_BUTTON_LABEL); |
504 SET_STRING("CHANGE_TO_LISTVIEW_BUTTON_LABEL", | 530 SET_STRING("CHANGE_TO_LISTVIEW_BUTTON_LABEL", |
505 IDS_FILE_BROWSER_CHANGE_TO_LISTVIEW_BUTTON_LABEL); | 531 IDS_FILE_BROWSER_CHANGE_TO_LISTVIEW_BUTTON_LABEL); |
506 SET_STRING("CHANGE_TO_THUMBNAILVIEW_BUTTON_LABEL", | 532 SET_STRING("CHANGE_TO_THUMBNAILVIEW_BUTTON_LABEL", |
507 IDS_FILE_BROWSER_CHANGE_TO_THUMBNAILVIEW_BUTTON_LABEL); | 533 IDS_FILE_BROWSER_CHANGE_TO_THUMBNAILVIEW_BUTTON_LABEL); |
508 SET_STRING("CANCEL_SELECTION_BUTTON_LABEL", | 534 SET_STRING("CANCEL_SELECTION_BUTTON_LABEL", |
509 IDS_FILE_BROWSER_CANCEL_SELECTION_BUTTON_LABEL); | 535 IDS_FILE_BROWSER_CANCEL_SELECTION_BUTTON_LABEL); |
510 SET_STRING("SHARE_ERROR", IDS_FILE_BROWSER_SHARE_ERROR); | 536 SET_STRING("SHARE_ERROR", IDS_FILE_BROWSER_SHARE_ERROR); |
511 | 537 |
512 // Shortcut key names: used from cr.ui.MenuItem.updateShortcut_. | |
513 SET_STRING("SHORTCUT_ALT", IDS_FILE_BROWSER_SHORTCUT_ALT); | |
514 SET_STRING("SHORTCUT_CTRL", IDS_FILE_BROWSER_SHORTCUT_CTRL); | |
515 SET_STRING("SHORTCUT_ENTER", IDS_FILE_BROWSER_SHORTCUT_ENTER); | |
516 SET_STRING("SHORTCUT_META", IDS_FILE_BROWSER_SHORTCUT_META); | |
517 SET_STRING("SHORTCUT_SHIFT", IDS_FILE_BROWSER_SHORTCUT_SHIFT); | |
518 SET_STRING("SHORTCUT_SPACE", IDS_FILE_BROWSER_SHORTCUT_SPACE); | |
519 | |
520 SET_STRING("SIZE_BYTES", IDS_FILE_BROWSER_SIZE_BYTES); | 538 SET_STRING("SIZE_BYTES", IDS_FILE_BROWSER_SIZE_BYTES); |
521 SET_STRING("SIZE_COLUMN_LABEL", IDS_FILE_BROWSER_SIZE_COLUMN_LABEL); | 539 SET_STRING("SIZE_COLUMN_LABEL", IDS_FILE_BROWSER_SIZE_COLUMN_LABEL); |
522 SET_STRING("SIZE_GB", IDS_FILE_BROWSER_SIZE_GB); | 540 SET_STRING("SIZE_GB", IDS_FILE_BROWSER_SIZE_GB); |
523 SET_STRING("SIZE_KB", IDS_FILE_BROWSER_SIZE_KB); | 541 SET_STRING("SIZE_KB", IDS_FILE_BROWSER_SIZE_KB); |
524 SET_STRING("SIZE_MB", IDS_FILE_BROWSER_SIZE_MB); | 542 SET_STRING("SIZE_MB", IDS_FILE_BROWSER_SIZE_MB); |
525 SET_STRING("SIZE_PB", IDS_FILE_BROWSER_SIZE_PB); | 543 SET_STRING("SIZE_PB", IDS_FILE_BROWSER_SIZE_PB); |
526 SET_STRING("SIZE_TB", IDS_FILE_BROWSER_SIZE_TB); | 544 SET_STRING("SIZE_TB", IDS_FILE_BROWSER_SIZE_TB); |
527 SET_STRING("SPACE_AVAILABLE", IDS_FILE_BROWSER_SPACE_AVAILABLE); | 545 SET_STRING("SPACE_AVAILABLE", IDS_FILE_BROWSER_SPACE_AVAILABLE); |
528 SET_STRING("STATUS_COLUMN_LABEL", IDS_FILE_BROWSER_STATUS_COLUMN_LABEL); | 546 SET_STRING("STATUS_COLUMN_LABEL", IDS_FILE_BROWSER_STATUS_COLUMN_LABEL); |
529 SET_STRING("SUGGEST_DIALOG_INSTALLATION_FAILED", | 547 SET_STRING("SUGGEST_DIALOG_INSTALLATION_FAILED", |
530 IDS_FILE_BROWSER_SUGGEST_DIALOG_INSTALLATION_FAILED); | 548 IDS_FILE_BROWSER_SUGGEST_DIALOG_INSTALLATION_FAILED); |
531 SET_STRING("SUGGEST_DIALOG_LINK_TO_WEBSTORE", | 549 SET_STRING("SUGGEST_DIALOG_LINK_TO_WEBSTORE", |
532 IDS_FILE_BROWSER_SUGGEST_DIALOG_LINK_TO_WEBSTORE); | 550 IDS_FILE_BROWSER_SUGGEST_DIALOG_LINK_TO_WEBSTORE); |
533 SET_STRING("SUGGEST_DIALOG_TITLE", IDS_FILE_BROWSER_SUGGEST_DIALOG_TITLE); | 551 SET_STRING("SUGGEST_DIALOG_TITLE", IDS_FILE_BROWSER_SUGGEST_DIALOG_TITLE); |
534 SET_STRING("SUGGEST_DIALOG_FOR_PROVIDERS_TITLE", | 552 SET_STRING("SUGGEST_DIALOG_FOR_PROVIDERS_TITLE", |
535 IDS_FILE_BROWSER_SUGGEST_DIALOG_FOR_PROVIDERS_TITLE); | 553 IDS_FILE_BROWSER_SUGGEST_DIALOG_FOR_PROVIDERS_TITLE); |
536 SET_STRING("SYNC_DELETE_WITHOUT_PERMISSION_ERROR", | |
537 IDS_FILE_BROWSER_SYNC_DELETE_WITHOUT_PERMISSION_ERROR); | |
538 SET_STRING("SYNC_FILE_NAME", IDS_FILE_BROWSER_SYNC_FILE_NAME); | |
539 SET_STRING("SYNC_FILE_NUMBER", IDS_FILE_BROWSER_SYNC_FILE_NUMBER); | |
540 SET_STRING("SYNC_MISC_ERROR", IDS_FILE_BROWSER_SYNC_MISC_ERROR); | |
541 SET_STRING("SYNC_PROGRESS_SUMMARY", IDS_FILE_BROWSER_SYNC_PROGRESS_SUMMARY); | |
542 SET_STRING("SYNC_SERVICE_UNAVAILABLE_ERROR", | |
543 IDS_FILE_BROWSER_SYNC_SERVICE_UNAVAILABLE_ERROR); | |
544 SET_STRING("THUMBNAIL_VIEW_TOOLTIP", IDS_FILE_BROWSER_THUMBNAIL_VIEW_TOOLTIP); | 554 SET_STRING("THUMBNAIL_VIEW_TOOLTIP", IDS_FILE_BROWSER_THUMBNAIL_VIEW_TOOLTIP); |
545 SET_STRING("TIME_TODAY", IDS_FILE_BROWSER_TIME_TODAY); | 555 SET_STRING("TIME_TODAY", IDS_FILE_BROWSER_TIME_TODAY); |
546 SET_STRING("TIME_YESTERDAY", IDS_FILE_BROWSER_TIME_YESTERDAY); | 556 SET_STRING("TIME_YESTERDAY", IDS_FILE_BROWSER_TIME_YESTERDAY); |
547 SET_STRING("TRANSFER_PROGRESS_SUMMARY", | 557 SET_STRING("TRANSFER_PROGRESS_SUMMARY", |
548 IDS_FILE_BROWSER_TRANSFER_PROGRESS_SUMMARY); | 558 IDS_FILE_BROWSER_TRANSFER_PROGRESS_SUMMARY); |
549 SET_STRING("TYPE_COLUMN_LABEL", IDS_FILE_BROWSER_TYPE_COLUMN_LABEL); | 559 SET_STRING("TYPE_COLUMN_LABEL", IDS_FILE_BROWSER_TYPE_COLUMN_LABEL); |
550 SET_STRING("UNKNOWN_FILESYSTEM_WARNING", | 560 SET_STRING("UNKNOWN_FILESYSTEM_WARNING", |
551 IDS_FILE_BROWSER_UNKNOWN_FILESYSTEM_WARNING); | 561 IDS_FILE_BROWSER_UNKNOWN_FILESYSTEM_WARNING); |
552 SET_STRING("UNMOUNT_DEVICE_BUTTON_LABEL", | 562 SET_STRING("UNMOUNT_DEVICE_BUTTON_LABEL", |
553 IDS_FILE_BROWSER_UNMOUNT_DEVICE_BUTTON_LABEL); | 563 IDS_FILE_BROWSER_UNMOUNT_DEVICE_BUTTON_LABEL); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber)); | 608 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber)); |
599 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault()); | 609 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault()); |
600 | 610 |
601 const std::string& app_locale = g_browser_process->GetApplicationLocale(); | 611 const std::string& app_locale = g_browser_process->GetApplicationLocale(); |
602 webui::SetLoadTimeDataDefaults(app_locale, dict); | 612 webui::SetLoadTimeDataDefaults(app_locale, dict); |
603 | 613 |
604 return true; | 614 return true; |
605 } | 615 } |
606 | 616 |
607 } // namespace extensions | 617 } // namespace extensions |
OLD | NEW |