make dialog (attachment, file exists) translatable (#1079)

* make dialog (attachment, file exists) translatable

Dialog (attachment, file exists) translatable

Signed-off-by: Markus Eckstein eckstein-markus@gmx.de

* Commit suggestion

Signed-off-by: Markus Eckstein eckstein-markus@gmx.de

Co-Authored-By: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
cloud2018
2019-06-07 07:54:49 +02:00
committed by Julius Härtl
parent e3201ee21a
commit f645f73993

View File

@@ -80,8 +80,8 @@ export default class FileService {
});
if (typeof existingFile !== 'undefined') {
OC.dialogs.confirm(
`A file with the name ${fileItem.file.name} already exists. Do you want to overwrite it?`,
'File already exists',
t('deck', `A file with the name ${fileItem.file.name} already exists. Do you want to overwrite it?`),
t('deck', 'File already exists'),
function (result) {
if (result) {
self.runUpload(fileItem, existingFile.id);