[utilities/kate] /: Rename Copy File Path to Copy Location and change icon

Christoph Cullmann null at kde.org
Sat Jul 9 17:19:21 BST 2022


Git commit 7fa9fb9f925b9db40b6a79372b7ed5d9bef61c40 by Christoph Cullmann, on behalf of Eric Armbruster.
Committed on 09/07/2022 at 16:19.
Pushed by cullmann into branch 'master'.

Rename Copy File Path to Copy Location and change icon

This is to be consistent with other Dolphin.

M  +1    -1    addons/filetree/katefiletree.cpp
M  +1    -1    addons/project/kateprojecttreeviewcontextmenu.cpp
M  +2    -2    apps/lib/katemainwindow.cpp
M  +1    -1    doc/kate/plugins.docbook

https://invent.kde.org/utilities/kate/commit/7fa9fb9f925b9db40b6a79372b7ed5d9bef61c40

diff --git a/addons/filetree/katefiletree.cpp b/addons/filetree/katefiletree.cpp
index 9ff245c35..6dd4e8cf7 100644
--- a/addons/filetree/katefiletree.cpp
+++ b/addons/filetree/katefiletree.cpp
@@ -133,7 +133,7 @@ KateFileTree::KateFileTree(QWidget *parent)
     connect(m_filelistOpenContainingFolder, &QAction::triggered, this, &KateFileTree::slotOpenContainingFolder);
     m_filelistOpenContainingFolder->setWhatsThis(i18n("Open the folder this file is located in."));
 
-    m_filelistCopyFilename = new QAction(QIcon::fromTheme(QStringLiteral("edit-copy")), i18nc("@action:inmenu", "Copy File Path"), this);
+    m_filelistCopyFilename = new QAction(QIcon::fromTheme(QStringLiteral("edit-copy-path")), i18nc("@action:inmenu", "Copy Location"), this);
     connect(m_filelistCopyFilename, &QAction::triggered, this, &KateFileTree::slotCopyFilename);
     m_filelistCopyFilename->setWhatsThis(i18n("Copy path and filename to the clipboard."));
 
diff --git a/addons/project/kateprojecttreeviewcontextmenu.cpp b/addons/project/kateprojecttreeviewcontextmenu.cpp
index aae9ffd00..8938a2373 100644
--- a/addons/project/kateprojecttreeviewcontextmenu.cpp
+++ b/addons/project/kateprojecttreeviewcontextmenu.cpp
@@ -62,7 +62,7 @@ void KateProjectTreeViewContextMenu::exec(const QString &filename, const QModelI
     /**
      * Copy Path, always available, put that to the top
      */
-    QAction *copyAction = menu.addAction(QIcon::fromTheme(QStringLiteral("edit-copy")), i18n("Copy File Path"));
+    QAction *copyAction = menu.addAction(QIcon::fromTheme(QStringLiteral("edit-copy-path")), i18n("Copy Location"));
 
     QAction *addFile = nullptr;
     QAction *addFolder = nullptr;
diff --git a/apps/lib/katemainwindow.cpp b/apps/lib/katemainwindow.cpp
index 2e1ec8e2c..56a800500 100644
--- a/apps/lib/katemainwindow.cpp
+++ b/apps/lib/katemainwindow.cpp
@@ -312,8 +312,8 @@ void KateMainWindow::setupActions()
     a->setWhatsThis(i18n("Reload all open documents."));
 
     a = actionCollection()->addAction(QStringLiteral("file_copy_filepath"));
-    a->setIcon(QIcon::fromTheme(QStringLiteral("edit-copy")));
-    a->setText(i18n("Copy File &Path"));
+    a->setIcon(QIcon::fromTheme(QStringLiteral("edit-copy-path")));
+    a->setText(i18n("Copy Location"));
     connect(a, &QAction::triggered, KateApp::self()->documentManager(), [this]() {
         auto &&view = viewManager()->activeView();
         KateFileActions::copyFilePathToClipboard(view->document());
diff --git a/doc/kate/plugins.docbook b/doc/kate/plugins.docbook
index c9b4e3a76..ee987b9e3 100644
--- a/doc/kate/plugins.docbook
+++ b/doc/kate/plugins.docbook
@@ -1410,7 +1410,7 @@ active frame, click the document name in the list.</para>
 <para>The context menu has some common actions from the <guimenu>File</guimenu> menu.</para>
 
 <para>Additionally there are filemanager actions to rename or delete the file. With
-<guimenuitem>Copy File Path</guimenuitem> you can copy the full path of the document
+<guimenuitem>Copy Location</guimenuitem> you can copy the full path of the document
 to the clipboard.</para>
 
 <para>You can sort the list in a few different ways by right clicking the



More information about the kde-doc-english mailing list