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
3 // found in the LICENSE file.
5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_strings.h"
7 #include "base/strings/stringprintf.h"
8 #include "base/sys_info.h"
9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/chromeos/file_manager/open_with_browser.h"
11 #include "chrome/grit/generated_resources.h"
12 #include "chromeos/system/statistics_provider.h"
13 #include "extensions/common/extension_l10n_util.h"
14 #include "ui/base/l10n/l10n_util.h"
15 #include "ui/base/webui/web_ui_util.h"
16 #include "ui/strings/grit/app_locale_settings.h"
20 // Location of the page to buy more storage for Google Drive.
21 const char kGoogleDriveBuyStorageUrl
[] =
22 "https://www.google.com/settings/storage";
24 // Location of the overview page about Google Drive.
25 const char kGoogleDriveOverviewUrl
[] =
26 "https://support.google.com/chromeos/?p=filemanager_drive";
28 // Location of Google drive redeem page.
29 const char kGoogleDriveRedeemUrl
[] =
30 "http://www.google.com/intl/en/chrome/devices/goodies.html"
31 "?utm_source=filesapp&utm_medium=banner&utm_campaign=gsg";
33 // Location of Google Drive specific help.
34 const char kGoogleDriveHelpUrl
[] =
35 "https://support.google.com/chromeos/?p=filemanager_drivehelp";
37 // Location of Google Drive root.
38 const char kGoogleDriveRootUrl
[] = "https://drive.google.com";
41 const char kHelpURLFormat
[] = "https://support.google.com/chromebook/answer/%d";
43 // Location of the help page for low space warning in the downloads directory.
44 const int kDownloadsLowSpaceWarningHelpNumber
= 1061547;
46 // Location of Files App specific help.
47 const int kFilesAppHelpNumber
= 1056323;
49 // Location of the help page about connecting to Google Drive.
50 const int kGoogleDriveErrorHelpNumber
= 2649458;
52 // Location of the help page about no-action-available files.
53 const int kNoActionForFileHelpNumber
= 1700055;
55 #define SET_STRING(id, idr) dict->SetString(id, l10n_util::GetStringUTF16(idr))
57 void AddStringsForFileTypes(base::DictionaryValue
* dict
) {
58 // TODO(crbug.com/438921): Rename string IDs to something like
59 // FILE_TYPE_WHATEVER.
60 SET_STRING("AUDIO_FILE_TYPE", IDS_FILE_BROWSER_AUDIO_FILE_TYPE
);
61 SET_STRING("EXCEL_FILE_TYPE", IDS_FILE_BROWSER_EXCEL_FILE_TYPE
);
62 SET_STRING("FOLDER", IDS_FILE_BROWSER_FOLDER
);
63 SET_STRING("GDOC_DOCUMENT_FILE_TYPE",
64 IDS_FILE_BROWSER_GDOC_DOCUMENT_FILE_TYPE
);
65 SET_STRING("GDRAW_DOCUMENT_FILE_TYPE",
66 IDS_FILE_BROWSER_GDRAW_DOCUMENT_FILE_TYPE
);
67 SET_STRING("GENERIC_FILE_TYPE", IDS_FILE_BROWSER_GENERIC_FILE_TYPE
);
68 SET_STRING("GFORM_DOCUMENT_FILE_TYPE",
69 IDS_FILE_BROWSER_GFORM_DOCUMENT_FILE_TYPE
);
70 SET_STRING("GLINK_DOCUMENT_FILE_TYPE",
71 IDS_FILE_BROWSER_GLINK_DOCUMENT_FILE_TYPE
);
72 SET_STRING("GMAP_DOCUMENT_FILE_TYPE",
73 IDS_FILE_BROWSER_GMAP_DOCUMENT_FILE_TYPE
);
74 SET_STRING("GSHEET_DOCUMENT_FILE_TYPE",
75 IDS_FILE_BROWSER_GSHEET_DOCUMENT_FILE_TYPE
);
76 SET_STRING("GSLIDES_DOCUMENT_FILE_TYPE",
77 IDS_FILE_BROWSER_GSLIDES_DOCUMENT_FILE_TYPE
);
78 SET_STRING("GTABLE_DOCUMENT_FILE_TYPE",
79 IDS_FILE_BROWSER_GTABLE_DOCUMENT_FILE_TYPE
);
80 SET_STRING("HTML_DOCUMENT_FILE_TYPE",
81 IDS_FILE_BROWSER_HTML_DOCUMENT_FILE_TYPE
);
82 SET_STRING("IMAGE_FILE_TYPE", IDS_FILE_BROWSER_IMAGE_FILE_TYPE
);
83 SET_STRING("NO_EXTENSION_FILE_TYPE", IDS_FILE_BROWSER_NO_EXTENSION_FILE_TYPE
);
84 SET_STRING("PDF_DOCUMENT_FILE_TYPE", IDS_FILE_BROWSER_PDF_DOCUMENT_FILE_TYPE
);
85 SET_STRING("PLAIN_TEXT_FILE_TYPE", IDS_FILE_BROWSER_PLAIN_TEXT_FILE_TYPE
);
86 SET_STRING("POWERPOINT_PRESENTATION_FILE_TYPE",
87 IDS_FILE_BROWSER_POWERPOINT_PRESENTATION_FILE_TYPE
);
88 SET_STRING("RAR_ARCHIVE_FILE_TYPE", IDS_FILE_BROWSER_RAR_ARCHIVE_FILE_TYPE
);
89 SET_STRING("TAR_ARCHIVE_FILE_TYPE", IDS_FILE_BROWSER_TAR_ARCHIVE_FILE_TYPE
);
90 SET_STRING("TAR_BZIP2_ARCHIVE_FILE_TYPE",
91 IDS_FILE_BROWSER_TAR_BZIP2_ARCHIVE_FILE_TYPE
);
92 SET_STRING("TAR_GZIP_ARCHIVE_FILE_TYPE",
93 IDS_FILE_BROWSER_TAR_GZIP_ARCHIVE_FILE_TYPE
);
94 SET_STRING("VIDEO_FILE_TYPE", IDS_FILE_BROWSER_VIDEO_FILE_TYPE
);
95 SET_STRING("WORD_DOCUMENT_FILE_TYPE",
96 IDS_FILE_BROWSER_WORD_DOCUMENT_FILE_TYPE
);
97 SET_STRING("ZIP_ARCHIVE_FILE_TYPE", IDS_FILE_BROWSER_ZIP_ARCHIVE_FILE_TYPE
);
100 void AddStringsForDrive(base::DictionaryValue
* dict
) {
101 SET_STRING("DRIVE_BUY_MORE_SPACE", IDS_FILE_BROWSER_DRIVE_BUY_MORE_SPACE
);
102 SET_STRING("DRIVE_BUY_MORE_SPACE_LINK",
103 IDS_FILE_BROWSER_DRIVE_BUY_MORE_SPACE_LINK
);
104 SET_STRING("DRIVE_CANNOT_REACH", IDS_FILE_BROWSER_DRIVE_CANNOT_REACH
);
105 SET_STRING("DRIVE_DIRECTORY_LABEL", IDS_FILE_BROWSER_DRIVE_DIRECTORY_LABEL
);
106 SET_STRING("DRIVE_LEARN_MORE", IDS_FILE_BROWSER_DRIVE_LEARN_MORE
);
107 SET_STRING("DRIVE_LOADING", IDS_FILE_BROWSER_DRIVE_LOADING
);
108 SET_STRING("DRIVE_MENU_HELP", IDS_FILE_BROWSER_DRIVE_MENU_HELP
);
109 SET_STRING("DRIVE_MOBILE_CONNECTION_OPTION",
110 IDS_FILE_BROWSER_DRIVE_MOBILE_CONNECTION_OPTION
);
111 SET_STRING("DRIVE_MY_DRIVE_LABEL", IDS_FILE_BROWSER_DRIVE_MY_DRIVE_LABEL
);
112 SET_STRING("DRIVE_NOT_REACHED", IDS_FILE_BROWSER_DRIVE_NOT_REACHED
);
113 SET_STRING("DRIVE_OFFLINE_COLLECTION_LABEL",
114 IDS_FILE_BROWSER_DRIVE_OFFLINE_COLLECTION_LABEL
);
115 SET_STRING("DRIVE_OUT_OF_SPACE_HEADER",
116 IDS_FILE_BROWSER_DRIVE_OUT_OF_SPACE_HEADER
);
117 SET_STRING("DRIVE_OUT_OF_SPACE_MESSAGE",
118 IDS_FILE_BROWSER_DRIVE_OUT_OF_SPACE_MESSAGE
);
119 SET_STRING("DRIVE_RECENT_COLLECTION_LABEL",
120 IDS_FILE_BROWSER_DRIVE_RECENT_COLLECTION_LABEL
);
121 SET_STRING("DRIVE_SERVER_OUT_OF_SPACE_HEADER",
122 IDS_FILE_BROWSER_DRIVE_SERVER_OUT_OF_SPACE_HEADER
);
123 SET_STRING("DRIVE_SERVER_OUT_OF_SPACE_MESSAGE",
124 IDS_FILE_BROWSER_DRIVE_SERVER_OUT_OF_SPACE_MESSAGE
);
125 SET_STRING("DRIVE_SHARED_WITH_ME_COLLECTION_LABEL",
126 IDS_FILE_BROWSER_DRIVE_SHARED_WITH_ME_COLLECTION_LABEL
);
127 SET_STRING("DRIVE_SHARE_TYPE_CAN_COMMENT",
128 IDS_FILE_BROWSER_DRIVE_SHARE_TYPE_CAN_COMMENT
);
129 SET_STRING("DRIVE_SHARE_TYPE_CAN_EDIT",
130 IDS_FILE_BROWSER_DRIVE_SHARE_TYPE_CAN_EDIT
);
131 SET_STRING("DRIVE_SHARE_TYPE_CAN_VIEW",
132 IDS_FILE_BROWSER_DRIVE_SHARE_TYPE_CAN_VIEW
);
133 SET_STRING("DRIVE_SHOW_HOSTED_FILES_OPTION",
134 IDS_FILE_BROWSER_DRIVE_SHOW_HOSTED_FILES_OPTION
);
135 SET_STRING("DRIVE_SPACE_AVAILABLE_LONG",
136 IDS_FILE_BROWSER_DRIVE_SPACE_AVAILABLE_LONG
);
137 SET_STRING("DRIVE_VISIT_DRIVE_GOOGLE_COM",
138 IDS_FILE_BROWSER_DRIVE_VISIT_DRIVE_GOOGLE_COM
);
139 SET_STRING("DRIVE_WELCOME_CHECK_ELIGIBILITY",
140 IDS_FILE_BROWSER_DRIVE_WELCOME_CHECK_ELIGIBILITY
);
141 SET_STRING("DRIVE_WELCOME_DISMISS", IDS_FILE_BROWSER_DRIVE_WELCOME_DISMISS
);
142 SET_STRING("DRIVE_WELCOME_TEXT_LONG",
143 IDS_FILE_BROWSER_DRIVE_WELCOME_TEXT_LONG
);
144 SET_STRING("DRIVE_WELCOME_TEXT_SHORT",
145 IDS_FILE_BROWSER_DRIVE_WELCOME_TEXT_SHORT
);
146 SET_STRING("DRIVE_WELCOME_TITLE", IDS_FILE_BROWSER_DRIVE_WELCOME_TITLE
);
147 SET_STRING("DRIVE_WELCOME_TITLE_ALTERNATIVE",
148 IDS_FILE_BROWSER_DRIVE_WELCOME_TITLE_ALTERNATIVE
);
149 SET_STRING("DRIVE_WELCOME_TITLE_ALTERNATIVE_1TB",
150 IDS_FILE_BROWSER_DRIVE_WELCOME_TITLE_ALTERNATIVE_1TB
);
153 void AddStringsForGallery(base::DictionaryValue
* dict
) {
154 SET_STRING("GALLERY_ASPECT_RATIO_16_9",
155 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_16_9
);
156 SET_STRING("GALLERY_ASPECT_RATIO_1_1",
157 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_1_1
);
158 SET_STRING("GALLERY_ASPECT_RATIO_4_6",
159 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_4_6
);
160 SET_STRING("GALLERY_ASPECT_RATIO_5_7",
161 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_5_7
);
162 SET_STRING("GALLERY_ASPECT_RATIO_6_4",
163 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_6_4
);
164 SET_STRING("GALLERY_ASPECT_RATIO_7_5",
165 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_7_5
);
166 SET_STRING("GALLERY_ASPECT_RATIO_9_16",
167 IDS_FILE_BROWSER_GALLERY_ASPECT_RATIO_9_16
);
168 SET_STRING("GALLERY_AUTOFIX", IDS_FILE_BROWSER_GALLERY_AUTOFIX
);
169 SET_STRING("GALLERY_BRIGHTNESS", IDS_FILE_BROWSER_GALLERY_BRIGHTNESS
);
170 SET_STRING("GALLERY_CANCEL_LABEL", IDS_FILE_BROWSER_CANCEL_LABEL
);
171 SET_STRING("GALLERY_CONFIRM_DELETE_ONE", IDS_FILE_BROWSER_CONFIRM_DELETE_ONE
);
172 SET_STRING("GALLERY_CONFIRM_DELETE_SOME",
173 IDS_FILE_BROWSER_CONFIRM_DELETE_SOME
);
174 SET_STRING("GALLERY_CONTRAST", IDS_FILE_BROWSER_GALLERY_CONTRAST
);
175 SET_STRING("GALLERY_CROP", IDS_FILE_BROWSER_GALLERY_CROP
);
176 SET_STRING("GALLERY_DELETE", IDS_FILE_BROWSER_GALLERY_DELETE
);
177 SET_STRING("GALLERY_EDIT", IDS_FILE_BROWSER_GALLERY_EDIT
);
178 SET_STRING("GALLERY_ENTER_WHEN_DONE",
179 IDS_FILE_BROWSER_GALLERY_ENTER_WHEN_DONE
);
180 SET_STRING("GALLERY_EXPOSURE", IDS_FILE_BROWSER_GALLERY_EXPOSURE
);
181 SET_STRING("GALLERY_FILE_EXISTS", IDS_FILE_BROWSER_GALLERY_FILE_EXISTS
);
182 SET_STRING("GALLERY_FILE_HIDDEN_NAME", IDS_FILE_BROWSER_ERROR_HIDDEN_NAME
);
183 SET_STRING("GALLERY_FIXED", IDS_FILE_BROWSER_GALLERY_FIXED
);
184 SET_STRING("GALLERY_IMAGE_ERROR", IDS_FILE_BROWSER_GALLERY_IMAGE_ERROR
);
185 SET_STRING("GALLERY_IMAGE_OFFLINE", IDS_FILE_BROWSER_GALLERY_IMAGE_OFFLINE
);
186 SET_STRING("GALLERY_IMAGE_TOO_BIG_ERROR",
187 IDS_FILE_BROWSER_GALLERY_IMAGE_TOO_BIG_ERROR
);
188 SET_STRING("GALLERY_ITEMS_SELECTED", IDS_FILE_BROWSER_GALLERY_ITEMS_SELECTED
);
189 SET_STRING("GALLERY_MOSAIC", IDS_FILE_BROWSER_GALLERY_MOSAIC
);
190 SET_STRING("GALLERY_NO_IMAGES", IDS_FILE_BROWSER_GALLERY_NO_IMAGES
);
191 SET_STRING("GALLERY_OK_LABEL", IDS_FILE_BROWSER_OK_LABEL
);
192 SET_STRING("GALLERY_OVERWRITE_BUBBLE",
193 IDS_FILE_BROWSER_GALLERY_OVERWRITE_BUBBLE
);
194 SET_STRING("GALLERY_OVERWRITE_ORIGINAL",
195 IDS_FILE_BROWSER_GALLERY_OVERWRITE_ORIGINAL
);
196 SET_STRING("GALLERY_PRINT", IDS_FILE_BROWSER_GALLERY_PRINT
);
197 SET_STRING("GALLERY_READONLY_WARNING",
198 IDS_FILE_BROWSER_GALLERY_READONLY_WARNING
);
199 SET_STRING("GALLERY_REDO", IDS_FILE_BROWSER_GALLERY_REDO
);
200 SET_STRING("GALLERY_ROTATE_LEFT", IDS_FILE_BROWSER_GALLERY_ROTATE_LEFT
);
201 SET_STRING("GALLERY_ROTATE_RIGHT", IDS_FILE_BROWSER_GALLERY_ROTATE_RIGHT
);
202 SET_STRING("GALLERY_SAVED", IDS_FILE_BROWSER_GALLERY_SAVED
);
203 SET_STRING("GALLERY_SHARE", IDS_FILE_BROWSER_GALLERY_SHARE
);
204 SET_STRING("GALLERY_SLIDE", IDS_FILE_BROWSER_GALLERY_SLIDE
);
205 SET_STRING("GALLERY_SLIDESHOW", IDS_FILE_BROWSER_GALLERY_SLIDESHOW
);
206 SET_STRING("GALLERY_UNDO", IDS_FILE_BROWSER_GALLERY_UNDO
);
207 SET_STRING("GALLERY_VIDEO_OFFLINE", IDS_FILE_BROWSER_GALLERY_VIDEO_OFFLINE
);
210 void AddStringsForVideoPlayer(base::DictionaryValue
* dict
) {
211 SET_STRING("VIDEO_PLAYER_LOOPED_MODE", IDS_VIDEO_PLAYER_LOOPED_MODE
);
212 SET_STRING("VIDEO_PLAYER_PLAYBACK_ERROR", IDS_VIDEO_PLAYER_PLAYBACK_ERROR
);
213 SET_STRING("VIDEO_PLAYER_PLAYING_ON", IDS_VIDEO_PLAYER_PLAYING_ON
);
214 SET_STRING("VIDEO_PLAYER_PLAY_ON", IDS_VIDEO_PLAYER_PLAY_ON
);
215 SET_STRING("VIDEO_PLAYER_PLAY_THIS_COMPUTER",
216 IDS_VIDEO_PLAYER_PLAY_THIS_COMPUTER
);
217 SET_STRING("VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED",
218 IDS_VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED
);
219 SET_STRING("VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED_FOR_CAST",
220 IDS_VIDEO_PLAYER_VIDEO_FILE_UNSUPPORTED_FOR_CAST
);
225 namespace extensions
{
227 FileManagerPrivateGetStringsFunction::FileManagerPrivateGetStringsFunction() {
230 FileManagerPrivateGetStringsFunction::~FileManagerPrivateGetStringsFunction() {
233 bool FileManagerPrivateGetStringsFunction::RunSync() {
234 base::DictionaryValue
* dict
= new base::DictionaryValue();
237 AddStringsForDrive(dict
);
238 AddStringsForFileTypes(dict
);
239 AddStringsForGallery(dict
);
240 AddStringsForVideoPlayer(dict
);
242 SET_STRING("ACTION_LISTEN", IDS_FILE_BROWSER_ACTION_LISTEN
);
243 SET_STRING("ACTION_OPEN", IDS_FILE_BROWSER_ACTION_OPEN
);
244 SET_STRING("ACTION_OPEN_GDOC", IDS_FILE_BROWSER_ACTION_OPEN_GDOC
);
245 SET_STRING("ACTION_OPEN_GSHEET", IDS_FILE_BROWSER_ACTION_OPEN_GSHEET
);
246 SET_STRING("ACTION_OPEN_GSLIDES", IDS_FILE_BROWSER_ACTION_OPEN_GSLIDES
);
247 SET_STRING("ACTION_VIEW", IDS_FILE_BROWSER_ACTION_VIEW
);
248 SET_STRING("ACTION_WATCH", IDS_FILE_BROWSER_ACTION_WATCH
);
249 SET_STRING("ALL_FILES_FILTER", IDS_FILE_BROWSER_ALL_FILES_FILTER
);
250 SET_STRING("ARCHIVE_DIRECTORY_LABEL",
251 IDS_FILE_BROWSER_ARCHIVE_DIRECTORY_LABEL
);
252 SET_STRING("ARCHIVE_MOUNT_FAILED", IDS_FILE_BROWSER_ARCHIVE_MOUNT_FAILED
);
253 SET_STRING("AUDIO_ERROR", IDS_FILE_BROWSER_AUDIO_ERROR
);
254 SET_STRING("AUDIO_OFFLINE", IDS_FILE_BROWSER_AUDIO_OFFLINE
);
255 SET_STRING("AUDIO_PLAYER_DEFAULT_ARTIST",
256 IDS_FILE_BROWSER_AUDIO_PLAYER_DEFAULT_ARTIST
);
257 SET_STRING("AUDIO_PLAYER_TITLE", IDS_FILE_BROWSER_AUDIO_PLAYER_TITLE
);
258 SET_STRING("CALCULATING_SIZE", IDS_FILE_BROWSER_CALCULATING_SIZE
);
259 SET_STRING("CANCEL_LABEL", IDS_FILE_BROWSER_CANCEL_LABEL
);
260 SET_STRING("CHANGE_DEFAULT_CAPTION", IDS_FILE_BROWSER_CHANGE_DEFAULT_CAPTION
);
261 SET_STRING("CHANGE_DEFAULT_MENU_ITEM",
262 IDS_FILE_BROWSER_CHANGE_DEFAULT_MENU_ITEM
);
263 SET_STRING("CLOSE_VOLUME_BUTTON_LABEL",
264 IDS_FILE_BROWSER_CLOSE_VOLUME_BUTTON_LABEL
);
266 SET_STRING("CLOUD_IMPORT_TITLE",
267 IDS_FILE_BROWSER_CLOUD_IMPORT_TITLE
);
268 SET_STRING("CLOUD_IMPORT_DESTINATION_FOLDER",
269 IDS_FILE_BROWSER_CLOUD_DESTINATION_FOLDER
);
270 SET_STRING("CLOUD_IMPORT_DESCRIPTION",
271 IDS_FILE_BROWSER_CLOUD_IMPORT_DESCRIPTION
);
272 SET_STRING("CLOUD_IMPORT_START",
273 IDS_FILE_BROWSER_CLOUD_IMPORT_START
);
274 SET_STRING("CLOUD_IMPORT_SHOW_DETAILS",
275 IDS_FILE_BROWSER_CLOUD_IMPORT_SHOW_DETAILS
);
276 SET_STRING("CLOUD_IMPORT_COMMAND",
277 IDS_FILE_BROWSER_CLOUD_IMPORT_COMMAND
);
279 SET_STRING("CLOUD_IMPORT_STATUS_READY",
280 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_DONE
);
281 SET_STRING("CLOUD_IMPORT_STATUS_IMPORTING",
282 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_IMPORTING
);
283 SET_STRING("CLOUD_IMPORT_STATUS_INSUFFICIENT_SPACE",
284 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_INSUFFICIENT_SPACE
);
285 SET_STRING("CLOUD_IMPORT_STATUS_NO_MEDIA",
286 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_NO_MEDIA
);
287 SET_STRING("CLOUD_IMPORT_STATUS_READY",
288 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_READY
);
289 SET_STRING("CLOUD_IMPORT_STATUS_SCANNING",
290 IDS_FILE_BROWSER_CLOUD_IMPORT_STATUS_SCANNING
);
291 SET_STRING("CLOUD_IMPORT_ITEMS_REMAINING",
292 IDS_FILE_BROWSER_CLOUD_IMPORT_ITEMS_REMAINING
);
294 SET_STRING("CLOUD_IMPORT_TOOLTIP_READY",
295 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_DONE
);
296 SET_STRING("CLOUD_IMPORT_TOOLTIP_IMPORTING",
297 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_IMPORTING
);
298 SET_STRING("CLOUD_IMPORT_TOOLTIP_INSUFFICIENT_SPACE",
299 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_INSUFFICIENT_SPACE
);
300 SET_STRING("CLOUD_IMPORT_TOOLTIP_NO_MEDIA",
301 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_NO_MEDIA
);
302 SET_STRING("CLOUD_IMPORT_TOOLTIP_READY",
303 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_READY
);
304 SET_STRING("CLOUD_IMPORT_TOOLTIP_SCANNING",
305 IDS_FILE_BROWSER_CLOUD_IMPORT_TOOLTIP_SCANNING
);
307 SET_STRING("CONFIRM_MOBILE_DATA_USE",
308 IDS_FILE_BROWSER_CONFIRM_MOBILE_DATA_USE
);
309 SET_STRING("CONFIRM_MOBILE_DATA_USE_PLURAL",
310 IDS_FILE_BROWSER_CONFIRM_MOBILE_DATA_USE_PLURAL
);
311 SET_STRING("CONFIRM_OVERWRITE_FILE", IDS_FILE_BROWSER_CONFIRM_OVERWRITE_FILE
);
312 SET_STRING("CONFLICT_DIALOG_APPLY_TO_ALL",
313 IDS_FILE_BROWSER_CONFLICT_DIALOG_APPLY_TO_ALL
);
314 SET_STRING("CONFLICT_DIALOG_KEEP_BOTH",
315 IDS_FILE_BROWSER_CONFLICT_DIALOG_KEEP_BOTH
);
316 SET_STRING("CONFLICT_DIALOG_MESSAGE",
317 IDS_FILE_BROWSER_CONFLICT_DIALOG_MESSAGE
);
318 SET_STRING("CONFLICT_DIALOG_REPLACE",
319 IDS_FILE_BROWSER_CONFLICT_DIALOG_REPLACE
);
320 SET_STRING("COPY_BUTTON_LABEL", IDS_FILE_BROWSER_COPY_BUTTON_LABEL
);
321 SET_STRING("COPY_FILESYSTEM_ERROR", IDS_FILE_BROWSER_COPY_FILESYSTEM_ERROR
);
322 SET_STRING("COPY_FILE_NAME", IDS_FILE_BROWSER_COPY_FILE_NAME
);
323 SET_STRING("COPY_ITEMS_REMAINING", IDS_FILE_BROWSER_COPY_ITEMS_REMAINING
);
324 SET_STRING("COPY_PROGRESS_SUMMARY", IDS_FILE_BROWSER_COPY_PROGRESS_SUMMARY
);
325 SET_STRING("COPY_SOURCE_NOT_FOUND_ERROR",
326 IDS_FILE_BROWSER_COPY_SOURCE_NOT_FOUND_ERROR
);
327 SET_STRING("COPY_TARGET_EXISTS_ERROR",
328 IDS_FILE_BROWSER_COPY_TARGET_EXISTS_ERROR
);
329 SET_STRING("COPY_UNEXPECTED_ERROR", IDS_FILE_BROWSER_COPY_UNEXPECTED_ERROR
);
330 SET_STRING("CREATE_FOLDER_SHORTCUT_BUTTON_LABEL",
331 IDS_FILE_BROWSER_CREATE_FOLDER_SHORTCUT_BUTTON_LABEL
);
332 SET_STRING("CUT_BUTTON_LABEL", IDS_FILE_BROWSER_CUT_BUTTON_LABEL
);
333 SET_STRING("DATE_COLUMN_LABEL", IDS_FILE_BROWSER_DATE_COLUMN_LABEL
);
334 SET_STRING("DEFAULT_ACTION_LABEL", IDS_FILE_BROWSER_DEFAULT_ACTION_LABEL
);
335 SET_STRING("DEFAULT_NEW_FOLDER_NAME",
336 IDS_FILE_BROWSER_DEFAULT_NEW_FOLDER_NAME
);
337 SET_STRING("DELETE_BUTTON_LABEL", IDS_FILE_BROWSER_DELETE_BUTTON_LABEL
);
338 SET_STRING("DELETE_ERROR", IDS_FILE_BROWSER_DELETE_ERROR
);
339 SET_STRING("DELETE_FILE_NAME", IDS_FILE_BROWSER_DELETE_FILE_NAME
);
340 SET_STRING("DELETE_ITEMS_REMAINING", IDS_FILE_BROWSER_DELETE_ITEMS_REMAINING
);
341 SET_STRING("DELETE_PROGRESS_SUMMARY",
342 IDS_FILE_BROWSER_DELETE_PROGRESS_SUMMARY
);
343 SET_STRING("DETAIL_VIEW_TOOLTIP", IDS_FILE_BROWSER_DETAIL_VIEW_TOOLTIP
);
344 SET_STRING("DEVICE_HARD_UNPLUGGED_MESSAGE",
345 IDS_DEVICE_HARD_UNPLUGGED_MESSAGE
);
346 SET_STRING("DEVICE_HARD_UNPLUGGED_TITLE", IDS_DEVICE_HARD_UNPLUGGED_TITLE
);
347 SET_STRING("DEVICE_UNKNOWN_BUTTON_LABEL", IDS_DEVICE_UNKNOWN_BUTTON_LABEL
);
348 SET_STRING("DEVICE_UNKNOWN_DEFAULT_MESSAGE",
349 IDS_DEVICE_UNKNOWN_DEFAULT_MESSAGE
);
350 SET_STRING("DEVICE_UNKNOWN_MESSAGE", IDS_DEVICE_UNKNOWN_MESSAGE
);
351 SET_STRING("DEVICE_UNSUPPORTED_DEFAULT_MESSAGE",
352 IDS_DEVICE_UNSUPPORTED_DEFAULT_MESSAGE
);
353 SET_STRING("DEVICE_UNSUPPORTED_MESSAGE", IDS_DEVICE_UNSUPPORTED_MESSAGE
);
354 SET_STRING("DIRECTORY_ALREADY_EXISTS",
355 IDS_FILE_BROWSER_DIRECTORY_ALREADY_EXISTS
);
356 SET_STRING("DISABLED_MOBILE_SYNC_NOTIFICATION_ENABLE_BUTTON",
357 IDS_FILE_BROWSER_DISABLED_MOBILE_SYNC_NOTIFICATION_ENABLE_BUTTON
);
358 SET_STRING("DISABLED_MOBILE_SYNC_NOTIFICATION_MESSAGE",
359 IDS_FILE_BROWSER_DISABLED_MOBILE_SYNC_NOTIFICATION_MESSAGE
);
360 SET_STRING("DOWNLOADS_DIRECTORY_LABEL",
361 IDS_FILE_BROWSER_DOWNLOADS_DIRECTORY_LABEL
);
362 SET_STRING("DOWNLOADS_DIRECTORY_WARNING",
363 IDS_FILE_BROWSER_DOWNLOADS_DIRECTORY_WARNING
);
364 SET_STRING("DRAGGING_MULTIPLE_ITEMS",
365 IDS_FILE_BROWSER_DRAGGING_MULTIPLE_ITEMS
);
366 SET_STRING("ERROR_CREATING_FOLDER", IDS_FILE_BROWSER_ERROR_CREATING_FOLDER
);
367 SET_STRING("ERROR_HIDDEN_NAME", IDS_FILE_BROWSER_ERROR_HIDDEN_NAME
);
368 SET_STRING("ERROR_INVALID_CHARACTER",
369 IDS_FILE_BROWSER_ERROR_INVALID_CHARACTER
);
370 SET_STRING("ERROR_LONG_NAME", IDS_FILE_BROWSER_ERROR_LONG_NAME
);
371 SET_STRING("ERROR_PROGRESS_SUMMARY", IDS_FILE_BROWSER_ERROR_PROGRESS_SUMMARY
);
372 SET_STRING("ERROR_PROGRESS_SUMMARY_PLURAL",
373 IDS_FILE_BROWSER_ERROR_PROGRESS_SUMMARY_PLURAL
);
374 SET_STRING("ERROR_RENAMING", IDS_FILE_BROWSER_ERROR_RENAMING
);
375 SET_STRING("ERROR_RESERVED_NAME", IDS_FILE_BROWSER_ERROR_RESERVED_NAME
);
376 SET_STRING("ERROR_WHITESPACE_NAME", IDS_FILE_BROWSER_ERROR_WHITESPACE_NAME
);
377 SET_STRING("EXTERNAL_STORAGE_DISABLED_MESSAGE",
378 IDS_EXTERNAL_STORAGE_DISABLED_MESSAGE
);
379 SET_STRING("FAILED_SPACE_INFO", IDS_FILE_BROWSER_FAILED_SPACE_INFO
);
380 SET_STRING("FILENAME_LABEL", IDS_FILE_BROWSER_FILENAME_LABEL
);
381 SET_STRING("FILE_ALREADY_EXISTS", IDS_FILE_BROWSER_FILE_ALREADY_EXISTS
);
382 SET_STRING("FILE_ERROR_GENERIC", IDS_FILE_BROWSER_FILE_ERROR_GENERIC
);
383 SET_STRING("FILE_ERROR_INVALID_MODIFICATION",
384 IDS_FILE_BROWSER_FILE_ERROR_INVALID_MODIFICATION
);
385 SET_STRING("FILE_ERROR_INVALID_STATE",
386 IDS_FILE_BROWSER_FILE_ERROR_INVALID_STATE
);
387 SET_STRING("FILE_ERROR_NOT_FOUND", IDS_FILE_BROWSER_FILE_ERROR_NOT_FOUND
);
388 SET_STRING("FILE_ERROR_NOT_READABLE",
389 IDS_FILE_BROWSER_FILE_ERROR_NOT_READABLE
);
390 SET_STRING("FILE_ERROR_NO_MODIFICATION_ALLOWED",
391 IDS_FILE_BROWSER_FILE_ERROR_NO_MODIFICATION_ALLOWED
);
392 SET_STRING("FILE_ERROR_PATH_EXISTS", IDS_FILE_BROWSER_FILE_ERROR_PATH_EXISTS
);
393 SET_STRING("FILE_ERROR_QUOTA_EXCEEDED",
394 IDS_FILE_BROWSER_FILE_ERROR_QUOTA_EXCEEDED
);
395 SET_STRING("FILE_ERROR_SECURITY", IDS_FILE_BROWSER_FILE_ERROR_SECURITY
);
396 SET_STRING("FORMATTING_FINISHED_FAILURE_MESSAGE",
397 IDS_FORMATTING_FINISHED_FAILURE_MESSAGE
);
398 SET_STRING("FORMATTING_FINISHED_SUCCESS_MESSAGE",
399 IDS_FORMATTING_FINISHED_SUCCESS_MESSAGE
);
400 SET_STRING("FORMATTING_OF_DEVICE_FAILED_TITLE",
401 IDS_FORMATTING_OF_DEVICE_FAILED_TITLE
);
402 SET_STRING("FORMATTING_OF_DEVICE_FINISHED_TITLE",
403 IDS_FORMATTING_OF_DEVICE_FINISHED_TITLE
);
404 SET_STRING("FORMATTING_OF_DEVICE_PENDING_MESSAGE",
405 IDS_FORMATTING_OF_DEVICE_PENDING_MESSAGE
);
406 SET_STRING("FORMATTING_OF_DEVICE_PENDING_TITLE",
407 IDS_FORMATTING_OF_DEVICE_PENDING_TITLE
);
408 SET_STRING("FORMATTING_WARNING", IDS_FILE_BROWSER_FORMATTING_WARNING
);
409 SET_STRING("FORMAT_DEVICE_BUTTON_LABEL",
410 IDS_FILE_BROWSER_FORMAT_DEVICE_BUTTON_LABEL
);
411 SET_STRING("GEAR_BUTTON_TOOLTIP", IDS_FILE_BROWSER_GEAR_BUTTON_TOOLTIP
);
412 SET_STRING("HOSTED_OFFLINE_MESSAGE", IDS_FILE_BROWSER_HOSTED_OFFLINE_MESSAGE
);
413 SET_STRING("HOSTED_OFFLINE_MESSAGE_PLURAL",
414 IDS_FILE_BROWSER_HOSTED_OFFLINE_MESSAGE_PLURAL
);
415 SET_STRING("MANY_DIRECTORIES_SELECTED",
416 IDS_FILE_BROWSER_MANY_DIRECTORIES_SELECTED
);
417 SET_STRING("MANY_ENTRIES_SELECTED", IDS_FILE_BROWSER_MANY_ENTRIES_SELECTED
);
418 SET_STRING("MANY_FILES_SELECTED", IDS_FILE_BROWSER_MANY_FILES_SELECTED
);
419 SET_STRING("MORE_ACTIONS", IDS_FILE_BROWSER_MORE_ACTIONS
);
420 SET_STRING("MOUNT_ARCHIVE", IDS_FILE_BROWSER_MOUNT_ARCHIVE
);
421 SET_STRING("MOVE_FILESYSTEM_ERROR", IDS_FILE_BROWSER_MOVE_FILESYSTEM_ERROR
);
422 SET_STRING("MOVE_FILE_NAME", IDS_FILE_BROWSER_MOVE_FILE_NAME
);
423 SET_STRING("MOVE_ITEMS_REMAINING", IDS_FILE_BROWSER_MOVE_ITEMS_REMAINING
);
424 SET_STRING("MOVE_PROGRESS_SUMMARY", IDS_FILE_BROWSER_MOVE_PROGRESS_SUMMARY
);
425 SET_STRING("MOVE_SOURCE_NOT_FOUND_ERROR",
426 IDS_FILE_BROWSER_MOVE_SOURCE_NOT_FOUND_ERROR
);
427 SET_STRING("MOVE_TARGET_EXISTS_ERROR",
428 IDS_FILE_BROWSER_MOVE_TARGET_EXISTS_ERROR
);
429 SET_STRING("MOVE_UNEXPECTED_ERROR", IDS_FILE_BROWSER_MOVE_UNEXPECTED_ERROR
);
430 SET_STRING("MULTIPART_DEVICE_UNSUPPORTED_DEFAULT_MESSAGE",
431 IDS_MULTIPART_DEVICE_UNSUPPORTED_DEFAULT_MESSAGE
);
432 SET_STRING("MULTIPART_DEVICE_UNSUPPORTED_MESSAGE",
433 IDS_MULTIPART_DEVICE_UNSUPPORTED_MESSAGE
);
434 SET_STRING("MULTI_PROFILE_SHARE_DIALOG_MESSAGE",
435 IDS_FILE_BROWSER_MULTI_PROFILE_SHARE_DIALOG_MESSAGE
);
436 SET_STRING("MULTI_PROFILE_SHARE_DIALOG_MESSAGE_PLURAL",
437 IDS_FILE_BROWSER_MULTI_PROFILE_SHARE_DIALOG_MESSAGE_PLURAL
);
438 SET_STRING("MULTI_PROFILE_SHARE_DIALOG_TITLE",
439 IDS_FILE_BROWSER_MULTI_PROFILE_SHARE_DIALOG_TITLE
);
440 SET_STRING("MULTI_PROFILE_SHARE_DIALOG_TITLE_PLURAL",
441 IDS_FILE_BROWSER_MULTI_PROFILE_SHARE_DIALOG_TITLE_PLURAL
);
442 SET_STRING("NAME_COLUMN_LABEL", IDS_FILE_BROWSER_NAME_COLUMN_LABEL
);
443 SET_STRING("NEW_FOLDER_BUTTON_LABEL",
444 IDS_FILE_BROWSER_NEW_FOLDER_BUTTON_LABEL
);
445 SET_STRING("NEW_WINDOW_BUTTON_LABEL",
446 IDS_FILE_BROWSER_NEW_WINDOW_BUTTON_LABEL
);
447 SET_STRING("NO_ACTION_FOR_CRX", IDS_FILE_BROWSER_NO_ACTION_FOR_CRX
);
448 SET_STRING("NO_ACTION_FOR_CRX_TITLE",
449 IDS_FILE_BROWSER_NO_ACTION_FOR_CRX_TITLE
);
450 SET_STRING("NO_ACTION_FOR_DMG", IDS_FILE_BROWSER_NO_ACTION_FOR_DMG
);
451 SET_STRING("NO_ACTION_FOR_EXECUTABLE",
452 IDS_FILE_BROWSER_NO_ACTION_FOR_EXECUTABLE
);
453 SET_STRING("NO_ACTION_FOR_FILE", IDS_FILE_BROWSER_NO_ACTION_FOR_FILE
);
454 SET_STRING("OFFLINE_COLUMN_LABEL", IDS_FILE_BROWSER_OFFLINE_COLUMN_LABEL
);
455 SET_STRING("OFFLINE_HEADER", IDS_FILE_BROWSER_OFFLINE_HEADER
);
456 SET_STRING("OFFLINE_MESSAGE", IDS_FILE_BROWSER_OFFLINE_MESSAGE
);
457 SET_STRING("OFFLINE_MESSAGE_PLURAL", IDS_FILE_BROWSER_OFFLINE_MESSAGE_PLURAL
);
458 SET_STRING("OK_LABEL", IDS_FILE_BROWSER_OK_LABEL
);
459 SET_STRING("OPEN_IN_OTHER_DESKTOP_MESSAGE",
460 IDS_FILE_BROWSER_OPEN_IN_OTHER_DESKTOP_MESSAGE
);
461 SET_STRING("OPEN_IN_OTHER_DESKTOP_MESSAGE_PLURAL",
462 IDS_FILE_BROWSER_OPEN_IN_OTHER_DESKTOP_MESSAGE_PLURAL
);
463 SET_STRING("OPEN_LABEL", IDS_FILE_BROWSER_OPEN_LABEL
);
464 SET_STRING("OPEN_WITH_BUTTON_LABEL", IDS_FILE_BROWSER_OPEN_WITH_BUTTON_LABEL
);
465 SET_STRING("PASTE_BUTTON_LABEL", IDS_FILE_BROWSER_PASTE_BUTTON_LABEL
);
466 SET_STRING("PASTE_INTO_FOLDER_BUTTON_LABEL",
467 IDS_FILE_BROWSER_PASTE_INTO_FOLDER_BUTTON_LABEL
);
468 SET_STRING("PREPARING_LABEL", IDS_FILE_BROWSER_PREPARING_LABEL
);
469 SET_STRING("REMOVABLE_DEVICE_DETECTION_TITLE",
470 IDS_REMOVABLE_DEVICE_DETECTION_TITLE
);
471 SET_STRING("REMOVABLE_DEVICE_IMPORT_BUTTON_LABEL",
472 IDS_REMOVABLE_DEVICE_IMPORT_BUTTON_LABEL
);
473 SET_STRING("REMOVABLE_DEVICE_IMPORT_MESSAGE",
474 IDS_REMOVABLE_DEVICE_IMPORT_MESSAGE
);
475 SET_STRING("REMOVABLE_DEVICE_NAVIGATION_BUTTON_LABEL",
476 IDS_REMOVABLE_DEVICE_NAVIGATION_BUTTON_LABEL
);
477 SET_STRING("REMOVABLE_DEVICE_NAVIGATION_MESSAGE",
478 IDS_REMOVABLE_DEVICE_NAVIGATION_MESSAGE
);
479 SET_STRING("REMOVABLE_DIRECTORY_LABEL",
480 IDS_FILE_BROWSER_REMOVABLE_DIRECTORY_LABEL
);
481 SET_STRING("REMOVE_FOLDER_SHORTCUT_BUTTON_LABEL",
482 IDS_FILE_BROWSER_REMOVE_FOLDER_SHORTCUT_BUTTON_LABEL
);
483 SET_STRING("RENAME_BUTTON_LABEL", IDS_FILE_BROWSER_RENAME_BUTTON_LABEL
);
484 SET_STRING("SAVE_LABEL", IDS_FILE_BROWSER_SAVE_LABEL
);
485 SET_STRING("SEARCH_DRIVE_HTML", IDS_FILE_BROWSER_SEARCH_DRIVE_HTML
);
486 SET_STRING("SEARCH_NO_MATCHING_FILES_HTML",
487 IDS_FILE_BROWSER_SEARCH_NO_MATCHING_FILES_HTML
);
488 SET_STRING("SEARCH_TEXT_LABEL", IDS_FILE_BROWSER_SEARCH_TEXT_LABEL
);
489 SET_STRING("TASKS_BUTTON_LABEL", IDS_FILE_BROWSER_TASKS_BUTTON_LABEL
);
490 SET_STRING("SHARE_BUTTON_LABEL", IDS_FILE_BROWSER_SHARE_BUTTON_LABEL
);
491 SET_STRING("CHANGE_TO_LISTVIEW_BUTTON_LABEL",
492 IDS_FILE_BROWSER_CHANGE_TO_LISTVIEW_BUTTON_LABEL
);
493 SET_STRING("CHANGE_TO_THUMBNAILVIEW_BUTTON_LABEL",
494 IDS_FILE_BROWSER_CHANGE_TO_THUMBNAILVIEW_BUTTON_LABEL
);
495 SET_STRING("CANCEL_SELECTION_BUTTON_LABEL",
496 IDS_FILE_BROWSER_CANCEL_SELECTION_BUTTON_LABEL
);
497 SET_STRING("SHARE_ERROR", IDS_FILE_BROWSER_SHARE_ERROR
);
499 // Shortcut key names: used from cr.ui.MenuItem.updateShortcut_.
500 SET_STRING("SHORTCUT_ALT", IDS_FILE_BROWSER_SHORTCUT_ALT
);
501 SET_STRING("SHORTCUT_CTRL", IDS_FILE_BROWSER_SHORTCUT_CTRL
);
502 SET_STRING("SHORTCUT_ENTER", IDS_FILE_BROWSER_SHORTCUT_ENTER
);
503 SET_STRING("SHORTCUT_META", IDS_FILE_BROWSER_SHORTCUT_META
);
504 SET_STRING("SHORTCUT_SHIFT", IDS_FILE_BROWSER_SHORTCUT_SHIFT
);
505 SET_STRING("SHORTCUT_SPACE", IDS_FILE_BROWSER_SHORTCUT_SPACE
);
507 SET_STRING("SIZE_BYTES", IDS_FILE_BROWSER_SIZE_BYTES
);
508 SET_STRING("SIZE_COLUMN_LABEL", IDS_FILE_BROWSER_SIZE_COLUMN_LABEL
);
509 SET_STRING("SIZE_GB", IDS_FILE_BROWSER_SIZE_GB
);
510 SET_STRING("SIZE_KB", IDS_FILE_BROWSER_SIZE_KB
);
511 SET_STRING("SIZE_MB", IDS_FILE_BROWSER_SIZE_MB
);
512 SET_STRING("SIZE_PB", IDS_FILE_BROWSER_SIZE_PB
);
513 SET_STRING("SIZE_TB", IDS_FILE_BROWSER_SIZE_TB
);
514 SET_STRING("SPACE_AVAILABLE", IDS_FILE_BROWSER_SPACE_AVAILABLE
);
515 SET_STRING("STATUS_COLUMN_LABEL", IDS_FILE_BROWSER_STATUS_COLUMN_LABEL
);
516 SET_STRING("SUGGEST_DIALOG_INSTALLATION_FAILED",
517 IDS_FILE_BROWSER_SUGGEST_DIALOG_INSTALLATION_FAILED
);
518 SET_STRING("SUGGEST_DIALOG_LINK_TO_WEBSTORE",
519 IDS_FILE_BROWSER_SUGGEST_DIALOG_LINK_TO_WEBSTORE
);
520 SET_STRING("SUGGEST_DIALOG_TITLE", IDS_FILE_BROWSER_SUGGEST_DIALOG_TITLE
);
521 SET_STRING("SYNC_DELETE_WITHOUT_PERMISSION_ERROR",
522 IDS_FILE_BROWSER_SYNC_DELETE_WITHOUT_PERMISSION_ERROR
);
523 SET_STRING("SYNC_FILE_NAME", IDS_FILE_BROWSER_SYNC_FILE_NAME
);
524 SET_STRING("SYNC_FILE_NUMBER", IDS_FILE_BROWSER_SYNC_FILE_NUMBER
);
525 SET_STRING("SYNC_MISC_ERROR", IDS_FILE_BROWSER_SYNC_MISC_ERROR
);
526 SET_STRING("SYNC_PROGRESS_SUMMARY", IDS_FILE_BROWSER_SYNC_PROGRESS_SUMMARY
);
527 SET_STRING("SYNC_SERVICE_UNAVAILABLE_ERROR",
528 IDS_FILE_BROWSER_SYNC_SERVICE_UNAVAILABLE_ERROR
);
529 SET_STRING("THUMBNAIL_VIEW_TOOLTIP", IDS_FILE_BROWSER_THUMBNAIL_VIEW_TOOLTIP
);
530 SET_STRING("TIME_TODAY", IDS_FILE_BROWSER_TIME_TODAY
);
531 SET_STRING("TIME_YESTERDAY", IDS_FILE_BROWSER_TIME_YESTERDAY
);
532 SET_STRING("TRANSFER_PROGRESS_SUMMARY",
533 IDS_FILE_BROWSER_TRANSFER_PROGRESS_SUMMARY
);
534 SET_STRING("TYPE_COLUMN_LABEL", IDS_FILE_BROWSER_TYPE_COLUMN_LABEL
);
535 SET_STRING("UNKNOWN_FILESYSTEM_WARNING",
536 IDS_FILE_BROWSER_UNKNOWN_FILESYSTEM_WARNING
);
537 SET_STRING("UNMOUNT_DEVICE_BUTTON_LABEL",
538 IDS_FILE_BROWSER_UNMOUNT_DEVICE_BUTTON_LABEL
);
539 SET_STRING("UNMOUNT_FAILED", IDS_FILE_BROWSER_UNMOUNT_FAILED
);
540 SET_STRING("UNSUPPORTED_FILESYSTEM_WARNING",
541 IDS_FILE_BROWSER_UNSUPPORTED_FILESYSTEM_WARNING
);
542 SET_STRING("UPLOAD_LABEL", IDS_FILE_BROWSER_UPLOAD_LABEL
);
543 SET_STRING("VIEW_TYPE_LABEL", IDS_FILE_BROWSER_VIEW_TYPE_LABEL
);
544 SET_STRING("VISIT_DESKTOP_OF_USER", IDS_VISIT_DESKTOP_OF_LRU_USER
);
545 SET_STRING("WAITING_FOR_SPACE_INFO", IDS_FILE_BROWSER_WAITING_FOR_SPACE_INFO
);
546 SET_STRING("WEB_FONT_FAMILY", IDS_WEB_FONT_FAMILY
);
547 SET_STRING("WEB_FONT_SIZE", IDS_WEB_FONT_SIZE
);
548 SET_STRING("ZIP_FILESYSTEM_ERROR", IDS_FILE_BROWSER_ZIP_FILESYSTEM_ERROR
);
549 SET_STRING("ZIP_FILE_NAME", IDS_FILE_BROWSER_ZIP_FILE_NAME
);
550 SET_STRING("ZIP_ITEMS_REMAINING", IDS_FILE_BROWSER_ZIP_ITEMS_REMAINING
);
551 SET_STRING("ZIP_PROGRESS_SUMMARY", IDS_FILE_BROWSER_ZIP_PROGRESS_SUMMARY
);
552 SET_STRING("ZIP_SELECTION_BUTTON_LABEL",
553 IDS_FILE_BROWSER_ZIP_SELECTION_BUTTON_LABEL
);
554 SET_STRING("ZIP_TARGET_EXISTS_ERROR",
555 IDS_FILE_BROWSER_ZIP_TARGET_EXISTS_ERROR
);
556 SET_STRING("ZIP_UNEXPECTED_ERROR", IDS_FILE_BROWSER_ZIP_UNEXPECTED_ERROR
);
559 dict
->SetBoolean("PDF_VIEW_ENABLED",
560 file_manager::util::ShouldBeOpenedWithPlugin(
561 GetProfile(), FILE_PATH_LITERAL(".pdf")));
562 dict
->SetBoolean("SWF_VIEW_ENABLED",
563 file_manager::util::ShouldBeOpenedWithPlugin(
564 GetProfile(), FILE_PATH_LITERAL(".swf")));
565 dict
->SetString("CHROMEOS_RELEASE_BOARD",
566 base::SysInfo::GetLsbReleaseBoard());
568 "DOWNLOADS_LOW_SPACE_WARNING_HELP_URL",
569 base::StringPrintf(kHelpURLFormat
, kDownloadsLowSpaceWarningHelpNumber
));
570 dict
->SetString("FILES_APP_HELP_URL",
571 base::StringPrintf(kHelpURLFormat
, kFilesAppHelpNumber
));
573 dict
->SetString("GOOGLE_DRIVE_BUY_STORAGE_URL", kGoogleDriveBuyStorageUrl
);
575 "GOOGLE_DRIVE_ERROR_HELP_URL",
576 base::StringPrintf(kHelpURLFormat
, kGoogleDriveErrorHelpNumber
));
577 dict
->SetString("GOOGLE_DRIVE_HELP_URL", kGoogleDriveHelpUrl
);
578 dict
->SetString("GOOGLE_DRIVE_OVERVIEW_URL", kGoogleDriveOverviewUrl
);
579 dict
->SetString("GOOGLE_DRIVE_REDEEM_URL", kGoogleDriveRedeemUrl
);
580 dict
->SetString("GOOGLE_DRIVE_ROOT_URL", kGoogleDriveRootUrl
);
582 "NO_ACTION_FOR_FILE_URL",
583 base::StringPrintf(kHelpURLFormat
, kNoActionForFileHelpNumber
));
584 dict
->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault());
586 const std::string
& app_locale
= g_browser_process
->GetApplicationLocale();
587 webui::SetLoadTimeDataDefaults(app_locale
, dict
);
592 } // namespace extensions