Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Unified Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 9808012: More strings for GData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/extensions/file_browser_private_api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/file_manager.js
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js
index 89532ab57aebcff10a7d4cf5dfb8bbff28cb822f..1e8237fd59dd9ce3f03041b37372c29c0b838cc5 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -2462,7 +2462,11 @@ FileManager.prototype = {
if (!this.isAvaliableOffline_(props[i], FileType.getType(urls[i]))) {
this.alert.showHtml(
str('OFFLINE_HEADER'),
- strf('OFFLINE_MESSAGE', str('OFFLINE_COLUMN_LABEL')));
+ strf(
+ urls.length == 1 ?
+ 'OFFLINE_MESSAGE' :
+ 'OFFLINE_MESSAGE_PLURAL',
+ str('OFFLINE_COLUMN_LABEL')));
return;
}
}
@@ -3174,7 +3178,16 @@ FileManager.prototype = {
};
FileManager.prototype.onPinClick_ = function(checkbox, entry, event) {
+ var self = this;
function callback(props) {
+ if (props.errorCode) {
+ // TODO(serya): Do not show the message if unpin failed.
+ cacheEntryDateAndSize(entry, function() {
+ self.alert.showHtml(str('GDATA_OUT_OF_SPACE_HEADER'),
+ strf('GDATA_OUT_OF_SPACE_MESSAGE',
+ util.bytesToSi(entry.cachedSize_)));
+ });
+ }
checkbox.checked = entry.gdata_.isPinned = props[0].isPinned;
}
« no previous file with comments | « chrome/browser/chromeos/extensions/file_browser_private_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698