Commit 8d08e647 authored by iseki@chromium.org's avatar iseki@chromium.org

Update .exe and .dmg file error messages.

Modify error message because previous message is less information.

BUG=399333

TEST=manually

Review URL: https://codereview.chromium.org/455273002

Cr-Commit-Position: refs/heads/master@{#288923}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288923 0039d316-1c4b-4281-b951-d872f2087c98
parent 153be9da
......@@ -760,8 +760,10 @@ Press any key to continue exploring.
<ph name="BEGIN_LINK_HELP">&lt;a target='_blank' href='$2'&gt;<ex>&lt;a target='_blank' href='$2'&gt;</ex></ph>Learn More<ph name="END_LINK_HELP">&lt;/a&gt;<ex>&lt;/a&gt;</ex></ph>
</message>
<message name="IDS_FILE_BROWSER_NO_ACTION_FOR_EXECUTABLE" desc="Message shown when user tries to open a windows executable file, which we can't handle.">
This file type is not supported. Please visit the <ph name="BEGIN_LINK">&lt;a target='_blank' href='$1'&gt;<ex>&lt;a target='_blank' href='$1'&gt;</ex></ph>Chrome Web Store<ph name="END_LINK">&lt;/a&gt;<ex>&lt;/a&gt;</ex></ph> to find a similar app.
<ph name="BEGIN_LINK_HELP">&lt;a target='_blank' href='$2'&gt;<ex>&lt;a target='_blank' href='$2'&gt;</ex></ph>Learn More<ph name="END_LINK_HELP">&lt;/a&gt;<ex>&lt;/a&gt;</ex></ph>
This file is designed for a PC using Windows software. This is not compatible with your device which runs Chrome OS. Please search the <ph name="BEGIN_LINK">&lt;a target='_blank' href='$1'&gt;<ex>&lt;a target='_blank' href='$1'&gt;</ex></ph>Chrome Web Store<ph name="END_LINK">&lt;/a&gt;<ex>&lt;/a&gt;</ex></ph> for a suitable replacement app.<ph name="BEGIN_LINK_HELP">&lt;a target='_blank' href='$2'&gt;<ex>&lt;a target='_blank' href='$2'&gt;</ex></ph>Learn More<ph name="END_LINK_HELP">&lt;/a&gt;<ex>&lt;/a&gt;</ex></ph>
</message>
<message name="IDS_FILE_BROWSER_NO_ACTION_FOR_DMG" desc="Message shown when user tries to open a windows executable file, which we can't handle.">
This file is designed for a computer using Macintosh software. This is not compatible with your device which runs Chrome OS. Please search the <ph name="BEGIN_LINK">&lt;a target='_blank' href='$1'&gt;<ex>&lt;a target='_blank' href='$1'&gt;</ex></ph>Chrome Web Store<ph name="END_LINK">&lt;/a&gt;<ex>&lt;/a&gt;</ex></ph> for a suitable replacement app.<ph name="BEGIN_LINK_HELP">&lt;a target='_blank' href='$2'&gt;<ex>&lt;a target='_blank' href='$2'&gt;</ex></ph>Learn More<ph name="END_LINK_HELP">&lt;/a&gt;<ex>&lt;/a&gt;</ex></ph>
</message>
<message name="IDS_FILE_BROWSER_NO_ACTION_FOR_CRX_TITLE" desc="Message shown when a user tries to open a *.crx file, which we don't handle in Files.app.">
Wait just a sec
......
......@@ -388,6 +388,7 @@ bool FileBrowserPrivateGetStringsFunction::RunSync() {
SET_STRING("NO_ACTION_FOR_FILE", IDS_FILE_BROWSER_NO_ACTION_FOR_FILE);
SET_STRING("NO_ACTION_FOR_EXECUTABLE",
IDS_FILE_BROWSER_NO_ACTION_FOR_EXECUTABLE);
SET_STRING("NO_ACTION_FOR_DMG", IDS_FILE_BROWSER_NO_ACTION_FOR_DMG);
SET_STRING("NO_ACTION_FOR_CRX", IDS_FILE_BROWSER_NO_ACTION_FOR_CRX);
SET_STRING("NO_ACTION_FOR_CRX_TITLE",
IDS_FILE_BROWSER_NO_ACTION_FOR_CRX_TITLE);
......
......@@ -335,6 +335,9 @@ FileTasks.prototype.executeDefaultInternal_ = function(entries, opt_callback) {
case '.exe':
textMessageId = 'NO_ACTION_FOR_EXECUTABLE';
break;
case '.dmg':
textMessageId = 'NO_ACTION_FOR_DMG';
break;
case '.crx':
textMessageId = 'NO_ACTION_FOR_CRX';
titleMessageId = 'NO_ACTION_FOR_CRX_TITLE';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment