Commit 7614755f authored by Nate Graham's avatar Nate Graham 🔩

Make "Rename..." and "Delete" menu items' text better and more consistent

parent 75d55ab1
...@@ -92,7 +92,7 @@ KateFileTree::KateFileTree(QWidget *parent): QTreeView(parent) ...@@ -92,7 +92,7 @@ KateFileTree::KateFileTree(QWidget *parent): QTreeView(parent)
connect(m_filelistCopyFilename, &QAction::triggered, this, &KateFileTree::slotCopyFilename); connect(m_filelistCopyFilename, &QAction::triggered, this, &KateFileTree::slotCopyFilename);
m_filelistCopyFilename->setWhatsThis(i18n("Copy path and filename to the clipboard.")); m_filelistCopyFilename->setWhatsThis(i18n("Copy path and filename to the clipboard."));
m_filelistRenameFile = new QAction(QIcon::fromTheme(QStringLiteral("edit-rename")), i18nc("@action:inmenu", "Rename File"), this); m_filelistRenameFile = new QAction(QIcon::fromTheme(QStringLiteral("edit-rename")), i18nc("@action:inmenu", "Rename..."), this);
connect(m_filelistRenameFile, &QAction::triggered, this, &KateFileTree::slotRenameFile); connect(m_filelistRenameFile, &QAction::triggered, this, &KateFileTree::slotRenameFile);
m_filelistRenameFile->setWhatsThis(i18n("Rename the selected file.")); m_filelistRenameFile->setWhatsThis(i18n("Rename the selected file."));
...@@ -102,7 +102,7 @@ KateFileTree::KateFileTree(QWidget *parent): QTreeView(parent) ...@@ -102,7 +102,7 @@ KateFileTree::KateFileTree(QWidget *parent): QTreeView(parent)
m_filelistPrintDocumentPreview = KStandardAction::printPreview(this, SLOT(slotPrintDocumentPreview()), this); m_filelistPrintDocumentPreview = KStandardAction::printPreview(this, SLOT(slotPrintDocumentPreview()), this);
m_filelistPrintDocumentPreview->setWhatsThis(i18n("Show print preview of current document")); m_filelistPrintDocumentPreview->setWhatsThis(i18n("Show print preview of current document"));
m_filelistDeleteDocument = new QAction(QIcon::fromTheme(QStringLiteral("edit-delete")), i18nc("@action:inmenu", "Delete Document"), this); m_filelistDeleteDocument = new QAction(QIcon::fromTheme(QStringLiteral("edit-delete")), i18nc("@action:inmenu", "Delete"), this);
connect(m_filelistDeleteDocument, &QAction::triggered, this, &KateFileTree::slotDocumentDelete); connect(m_filelistDeleteDocument, &QAction::triggered, this, &KateFileTree::slotDocumentDelete);
m_filelistDeleteDocument->setWhatsThis(i18n("Close and delete selected file from storage.")); m_filelistDeleteDocument->setWhatsThis(i18n("Close and delete selected file from storage."));
......
...@@ -329,7 +329,7 @@ void KateMainWindow::setupActions() ...@@ -329,7 +329,7 @@ void KateMainWindow::setupActions()
a = actionCollection()->addAction(QStringLiteral("file_rename")); a = actionCollection()->addAction(QStringLiteral("file_rename"));
a->setIcon(QIcon::fromTheme(QStringLiteral("edit-rename"))); a->setIcon(QIcon::fromTheme(QStringLiteral("edit-rename")));
a->setText(i18nc("@action:inmenu", "Rename File...")); a->setText(i18nc("@action:inmenu", "Rename..."));
connect(a, &QAction::triggered, KateApp::self()->documentManager(), connect(a, &QAction::triggered, KateApp::self()->documentManager(),
[this]() { [this]() {
auto&& view = viewManager()->activeView(); auto&& view = viewManager()->activeView();
...@@ -339,7 +339,7 @@ void KateMainWindow::setupActions() ...@@ -339,7 +339,7 @@ void KateMainWindow::setupActions()
a = actionCollection()->addAction(QStringLiteral("file_delete")); a = actionCollection()->addAction(QStringLiteral("file_delete"));
a->setIcon(QIcon::fromTheme(QStringLiteral("edit-delete"))); a->setIcon(QIcon::fromTheme(QStringLiteral("edit-delete")));
a->setText(i18nc("@action:inmenu", "Delete File")); a->setText(i18nc("@action:inmenu", "Delete"));
connect(a, &QAction::triggered, KateApp::self()->documentManager(), connect(a, &QAction::triggered, KateApp::self()->documentManager(),
[this]() { [this]() {
auto&& view = viewManager()->activeView(); auto&& view = viewManager()->activeView();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment