Commit d3369d28 authored by Eric Armbruster's avatar Eric Armbruster 🍁
Browse files

Apply title capitalization to all actions

https://develop.kde.org/hig/style/writing/capitalization/
parent ab66b019
Pipeline #223149 passed with stage
in 17 minutes and 46 seconds
......@@ -126,11 +126,11 @@ KateFileTree::KateFileTree(QWidget *parent)
connect(m_filelistCloseDocument, &QAction::triggered, this, &KateFileTree::slotDocumentClose);
m_filelistCloseDocument->setWhatsThis(i18n("Close the current document."));
m_filelistExpandRecursive = new QAction(QIcon::fromTheme(QStringLiteral("view-list-tree")), i18nc("@action:inmenu", "Expand recursively"), this);
m_filelistExpandRecursive = new QAction(QIcon::fromTheme(QStringLiteral("view-list-tree")), i18nc("@action:inmenu", "Expand Recursively"), this);
connect(m_filelistExpandRecursive, &QAction::triggered, this, &KateFileTree::slotExpandRecursive);
m_filelistExpandRecursive->setWhatsThis(i18n("Expand the file list sub tree recursively."));
m_filelistCollapseRecursive = new QAction(QIcon::fromTheme(QStringLiteral("view-list-tree")), i18nc("@action:inmenu", "Collapse recursively"), this);
m_filelistCollapseRecursive = new QAction(QIcon::fromTheme(QStringLiteral("view-list-tree")), i18nc("@action:inmenu", "Collapse Recursively"), this);
connect(m_filelistCollapseRecursive, &QAction::triggered, this, &KateFileTree::slotCollapseRecursive);
m_filelistCollapseRecursive->setWhatsThis(i18n("Collapse the file list sub tree recursively."));
......
......@@ -105,17 +105,17 @@ void KateSQLView::setupActions()
KActionCollection *collection = actionCollection();
action = collection->addAction(QStringLiteral("connection_create"));
action->setText(i18nc("@action:inmenu", "Add connection..."));
action->setText(i18nc("@action:inmenu", "Add Connection..."));
action->setIcon(QIcon::fromTheme(QStringLiteral("list-add")));
connect(action, &QAction::triggered, this, &KateSQLView::slotConnectionCreate);
action = collection->addAction(QStringLiteral("connection_remove"));
action->setText(i18nc("@action:inmenu", "Remove connection"));
action->setText(i18nc("@action:inmenu", "Remove Connection"));
action->setIcon(QIcon::fromTheme(QStringLiteral("list-remove")));
connect(action, &QAction::triggered, this, &KateSQLView::slotConnectionRemove);
action = collection->addAction(QStringLiteral("connection_edit"));
action->setText(i18nc("@action:inmenu", "Edit connection..."));
action->setText(i18nc("@action:inmenu", "Edit Connection..."));
action->setIcon(QIcon::fromTheme(QStringLiteral("configure")));
connect(action, &QAction::triggered, this, &KateSQLView::slotConnectionEdit);
......@@ -130,7 +130,7 @@ void KateSQLView::setupActions()
wa->setDefaultWidget(m_connectionsComboBox);
action = collection->addAction(QStringLiteral("query_run"));
action->setText(i18nc("@action:inmenu", "Run query"));
action->setText(i18nc("@action:inmenu", "Run Query"));
action->setIcon(QIcon::fromTheme(QStringLiteral("quickopen")));
connect(action, &QAction::triggered, this, &KateSQLView::slotRunQuery);
......
......@@ -673,32 +673,32 @@ public:
// diagnostics
m_diagnostics = actionCollection()->addAction(QStringLiteral("lspclient_diagnostics"), this, &self_type::displayOptionChanged);
m_diagnostics->setText(i18n("Show diagnostics notifications"));
m_diagnostics->setText(i18n("Show Diagnostics Notifications"));
m_diagnostics->setCheckable(true);
m_diagnosticsHighlight = actionCollection()->addAction(QStringLiteral("lspclient_diagnostics_highlight"), this, &self_type::displayOptionChanged);
m_diagnosticsHighlight->setText(i18n("Show diagnostics highlights"));
m_diagnosticsHighlight->setText(i18n("Show Diagnostics Highlights"));
m_diagnosticsHighlight->setCheckable(true);
m_diagnosticsMark = actionCollection()->addAction(QStringLiteral("lspclient_diagnostics_mark"), this, &self_type::displayOptionChanged);
m_diagnosticsMark->setText(i18n("Show diagnostics marks"));
m_diagnosticsMark->setText(i18n("Show Diagnostics Marks"));
m_diagnosticsMark->setCheckable(true);
m_diagnosticsHover = actionCollection()->addAction(QStringLiteral("lspclient_diagnostics_hover"), this, &self_type::displayOptionChanged);
m_diagnosticsHover->setText(i18n("Show diagnostics on hover"));
m_diagnosticsHover->setText(i18n("Show Diagnostics on Hover"));
m_diagnosticsHover->setCheckable(true);
m_diagnosticsSwitch = actionCollection()->addAction(QStringLiteral("lspclient_diagnostic_switch"), this, &self_type::switchToDiagnostics);
m_diagnosticsSwitch->setText(i18n("Switch to diagnostics tab"));
m_diagnosticsSwitch->setText(i18n("Switch to Diagnostics Tab"));
// messages
m_messages = actionCollection()->addAction(QStringLiteral("lspclient_messages"), this, &self_type::displayOptionChanged);
m_messages->setText(i18n("Show messages"));
m_messages->setText(i18n("Show Messages"));
m_messages->setCheckable(true);
// extra
m_memoryUsage = actionCollection()->addAction(QStringLiteral("lspclient_clangd_memoryusage"), this, &self_type::clangdMemoryUsage);
m_memoryUsage->setText(i18n("Server memory usage"));
m_memoryUsage->setText(i18n("Server Memory Usage"));
// server control and misc actions
m_closeDynamic = actionCollection()->addAction(QStringLiteral("lspclient_close_dynamic"), this, &self_type::closeDynamic);
m_closeDynamic->setText(i18n("Close all dynamic reference tabs"));
m_closeDynamic->setText(i18n("Close All Dynamic Reference Tabs"));
m_restartServer = actionCollection()->addAction(QStringLiteral("lspclient_restart_server"), this, &self_type::restartCurrent);
m_restartServer->setText(i18n("Restart LSP Server"));
m_restartAll = actionCollection()->addAction(QStringLiteral("lspclient_restart_all"), this, &self_type::restartAll);
......
......@@ -228,7 +228,7 @@ GitWidget::GitWidget(KateProject *project, KTextEditor::MainWindow *mainWindow,
m_commitBtn->setToolTip(commitText);
m_commitBtn->setMinimumHeight(16);
const QString &pushText = i18n("Git push");
const QString &pushText = i18n("Git Push");
m_pushBtn = toolButton();
auto a = ac->addAction(QStringLiteral("vcs_push"), this, [this]() {
PushPullDialog ppd(m_mainWin, m_activeGitDirPath);
......@@ -240,7 +240,7 @@ GitWidget::GitWidget(KateProject *project, KTextEditor::MainWindow *mainWindow,
a->setToolTip(pushText);
m_pushBtn->setDefaultAction(a);
const QString &pullText = i18n("Git pull");
const QString &pullText = i18n("Git Pull");
m_pullBtn = toolButton(QStringLiteral("vcs-pull"), pullText);
a = ac->addAction(QStringLiteral("vcs_pull"), this, [this]() {
PushPullDialog ppd(m_mainWin, m_activeGitDirPath);
......@@ -1018,7 +1018,7 @@ void GitWidget::buildMenu(KActionCollection *ac)
branchCompareFiles(branch, QString());
});
a->setIcon(QIcon::fromTheme(QStringLiteral("vcs-diff")));
a->setText(i18n("Compare Branch with ..."));
a->setText(i18n("Compare Branch with..."));
m_gitMenu->addAction(a);
auto stashMenu = m_gitMenu->addAction(QIcon::fromTheme(QStringLiteral("vcs-stash")), i18n("Stash"));
......@@ -1167,11 +1167,11 @@ void GitWidget::treeViewContextMenuEvent(QContextMenuEvent *e)
const bool staged = statusItemType == GitStatusModel::NodeStage;
const bool untracked = statusItemType == GitStatusModel::NodeUntrack;
auto openFile = menu.addAction(i18n("Open file"));
auto showDiffAct = untracked ? nullptr : menu.addAction(QIcon::fromTheme(QStringLiteral("vcs-diff")), i18n("Show raw diff"));
auto launchDifftoolAct = untracked ? nullptr : menu.addAction(QIcon::fromTheme(QStringLiteral("kdiff3")), i18n("Show in external git diff tool"));
auto openFile = menu.addAction(i18n("Open File"));
auto showDiffAct = untracked ? nullptr : menu.addAction(QIcon::fromTheme(QStringLiteral("vcs-diff")), i18n("Show Raw Diff"));
auto launchDifftoolAct = untracked ? nullptr : menu.addAction(QIcon::fromTheme(QStringLiteral("kdiff3")), i18n("Show in External Git Diff Tool"));
auto openAtHead = untracked ? nullptr : menu.addAction(i18n("Open at HEAD"));
auto stageAct = staged ? menu.addAction(i18n("Unstage file")) : menu.addAction(i18n("Stage file"));
auto stageAct = staged ? menu.addAction(i18n("Unstage File")) : menu.addAction(i18n("Stage File"));
auto discardAct = staged ? nullptr : untracked ? menu.addAction(i18n("Remove")) : menu.addAction(i18n("Discard"));
if (discardAct) {
discardAct->setIcon(QIcon::fromTheme(QStringLiteral("edit-delete-remove")));
......@@ -1210,7 +1210,7 @@ void GitWidget::treeViewContextMenuEvent(QContextMenuEvent *e)
} else if (treeItem == GitStatusModel::NodeStage) {
QMenu menu;
auto stage = menu.addAction(i18n("Unstage All"));
auto diff = menu.addAction(i18n("Show diff"));
auto diff = menu.addAction(i18n("Show Diff"));
auto model = m_treeView->model();
bool disable = model->rowCount(idx) == 0;
stage->setDisabled(disable);
......
......@@ -339,7 +339,7 @@ KatePluginSearchView::KatePluginSearchView(KTextEditor::Plugin *plugin, KTextEdi
connect(a, &QAction::triggered, this, &KatePluginSearchView::openSearchView);
a = actionCollection()->addAction(QStringLiteral("search_in_files_new_tab"));
a->setText(i18n("Find in Files (in new tab)"));
a->setText(i18n("Find in Files (in a New Tab)"));
// first add tab, then open search view, since open search view switches to show the search options
connect(a, &QAction::triggered, this, &KatePluginSearchView::addTab);
connect(a, &QAction::triggered, this, &KatePluginSearchView::openSearchView);
......
Supports Markdown
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