|
|
|
@ -395,7 +395,7 @@ void Dolphin::createFolder()
|
|
|
|
|
|
|
|
|
|
// TODO: provide message type hint
|
|
|
|
|
if (ok) {
|
|
|
|
|
statusBar->setMessage(i18n("Created folder %1.").tqarg(url.path()),
|
|
|
|
|
statusBar->setMessage(i18n("Created folder %1.").arg(url.path()),
|
|
|
|
|
DolphinStatusBar::OperationCompleted);
|
|
|
|
|
|
|
|
|
|
DolphinCommand command(DolphinCommand::CreateFolder, KURL::List(), url);
|
|
|
|
@ -405,11 +405,11 @@ void Dolphin::createFolder()
|
|
|
|
|
// Creating of the folder has been failed. Check whether the creating
|
|
|
|
|
// has been failed because a folder with the same name exists...
|
|
|
|
|
if (KIO::NetAccess::exists(url, true, this)) {
|
|
|
|
|
statusBar->setMessage(i18n("A folder named %1 already exists.").tqarg(url.path()),
|
|
|
|
|
statusBar->setMessage(i18n("A folder named %1 already exists.").arg(url.path()),
|
|
|
|
|
DolphinStatusBar::Error);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
statusBar->setMessage(i18n("Creating of folder %1 failed.").tqarg(url.path()),
|
|
|
|
|
statusBar->setMessage(i18n("Creating of folder %1 failed.").arg(url.path()),
|
|
|
|
|
DolphinStatusBar::Error);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -490,7 +490,7 @@ void Dolphin::createFile()
|
|
|
|
|
const TQString destPath(viewURL.prettyURL() + "/" + KIO::encodeFileName(name));
|
|
|
|
|
const KURL destURL(destPath);
|
|
|
|
|
if (KIO::NetAccess::exists(destURL, false, this)) {
|
|
|
|
|
statusBar->setMessage(i18n("A file named %1 already exists.").tqarg(name),
|
|
|
|
|
statusBar->setMessage(i18n("A file named %1 already exists.").arg(name),
|
|
|
|
|
DolphinStatusBar::Error);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -500,7 +500,7 @@ void Dolphin::createFile()
|
|
|
|
|
KIO::CopyJob* job = KIO::copyAs(sourceURL, destURL);
|
|
|
|
|
job->setDefaultPermissions(true);
|
|
|
|
|
if (KIO::NetAccess::synchronousRun(job, this)) {
|
|
|
|
|
statusBar->setMessage(i18n("Created file %1.").tqarg(name),
|
|
|
|
|
statusBar->setMessage(i18n("Created file %1.").arg(name),
|
|
|
|
|
DolphinStatusBar::OperationCompleted);
|
|
|
|
|
|
|
|
|
|
KURL::List list;
|
|
|
|
@ -510,7 +510,7 @@ void Dolphin::createFile()
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
statusBar->setMessage(i18n("Creating of file %1 failed.").tqarg(name),
|
|
|
|
|
statusBar->setMessage(i18n("Creating of file %1 failed.").arg(name),
|
|
|
|
|
DolphinStatusBar::Error);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -539,11 +539,11 @@ void Dolphin::deleteItems()
|
|
|
|
|
|
|
|
|
|
TQString text;
|
|
|
|
|
if (itemCount > 1) {
|
|
|
|
|
text = i18n("Do you really want to delete the %1 selected items?").tqarg(itemCount);
|
|
|
|
|
text = i18n("Do you really want to delete the %1 selected items?").arg(itemCount);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
const KURL& url = list.first();
|
|
|
|
|
text = i18n("Do you really want to delete '%1'?").tqarg(url.fileName());
|
|
|
|
|
text = i18n("Do you really want to delete '%1'?").arg(url.fileName());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const bool del = KMessageBox::warningContinueCancel(this,
|
|
|
|
@ -715,7 +715,7 @@ void Dolphin::updatePasteAction()
|
|
|
|
|
pasteAction->setText(i18n("Paste 1 File"));
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
pasteAction->setText(i18n("Paste %1 Files").tqarg(count));
|
|
|
|
|
pasteAction->setText(i18n("Paste %1 Files").arg(count));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|