fix text in 'document already exists' dialog

This commit is contained in:
rolux 2014-01-16 05:39:57 +00:00
parent 634b8f799b
commit 078c4f9cd9

View file

@ -89,9 +89,10 @@ pandora.ui.uploadDocumentDialog = function(files, callback) {
}, function(result) { }, function(result) {
if (result.data.items.length) { if (result.data.items.length) {
var id = result.data.items[0].name + '.' + result.data.items[0].extension; var id = result.data.items[0].name + '.' + result.data.items[0].extension;
valid && errorDialog(filename == id valid && errorDialog(
? Ox._('The file {0} already exists', [filename]) filename == id
: Ox._('The file {0} already exists as {1}', [filename, id]) ? Ox._('The file "{0}" already exists.', [filename])
: Ox._('The file "{0}" already exists as "{1}".', [filename, id])
).open(); ).open();
valid = false; valid = false;
} }