forked from 0x2620/pandora
fix text in 'document already exists' dialog
This commit is contained in:
parent
634b8f799b
commit
078c4f9cd9
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue