From 078c4f9cd9d108e0952f021ee264d25922e6c1a4 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 16 Jan 2014 05:39:57 +0000 Subject: [PATCH] fix text in 'document already exists' dialog --- static/js/uploadDocumentDialog.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/static/js/uploadDocumentDialog.js b/static/js/uploadDocumentDialog.js index 023e661b2..8f7ef8b52 100644 --- a/static/js/uploadDocumentDialog.js +++ b/static/js/uploadDocumentDialog.js @@ -89,9 +89,10 @@ pandora.ui.uploadDocumentDialog = function(files, callback) { }, function(result) { if (result.data.items.length) { var id = result.data.items[0].name + '.' + result.data.items[0].extension; - valid && errorDialog(filename == id - ? Ox._('The file {0} already exists', [filename]) - : Ox._('The file {0} already exists as {1}', [filename, id]) + valid && errorDialog( + filename == id + ? Ox._('The file "{0}" already exists.', [filename]) + : Ox._('The file "{0}" already exists as "{1}".', [filename, id]) ).open(); valid = false; }