Use ellipsis character instead of three dots in UI strings

This commit is contained in:
Friedrich W. H. Kossebau authored and Christoph Cullmann committed 2024-05-07 13:34:21 +00:00
1 parent 4c6141d38d
commit 4c5b1ff826
5 files changed
+11 -9

No files matched your search

+2 -2
View File
@@ -1037,7 +1037,7 @@ void KEditToolBarWidgetPrivate::setupLayout()
activeListSearchLine->setPlaceholderText(i18n("Filter"));
// "change icon" button
m_changeIcon = new QPushButton(i18nc("@action:button", "Change &Icon..."), m_widget);
m_changeIcon = new QPushButton(i18nc("@action:button", "Change &Icon…"), m_widget);
m_changeIcon->setIcon(QIcon::fromTheme(QStringLiteral("preferences-desktop-icons")));
m_changeIcon->setEnabled(m_activeList->currentItem());
@@ -1046,7 +1046,7 @@ void KEditToolBarWidgetPrivate::setupLayout()
});
// "change icon text" button
m_changeIconText = new QPushButton(i18nc("@action:button", "Change Te&xt..."), m_widget);
m_changeIconText = new QPushButton(i18nc("@action:button", "Change Te&xt…"), m_widget);
m_changeIconText->setIcon(QIcon::fromTheme(QStringLiteral("edit-rename")));
m_changeIconText->setEnabled(m_activeList->currentItem() != nullptr);
+4 -2
View File
@@ -28,6 +28,8 @@
#include <KGlobalAccel>
#endif
static constexpr QStringView inputRecordingMarkupSuffix(u" …");
static bool shortcutsConflictWith(const QList<QKeySequence> &shortcuts, const QKeySequence &needle)
{
if (needle.isEmpty()) {
@@ -378,7 +380,7 @@ void KKeySequenceWidgetPrivate::doneRecording()
{
keyButton->setDown(false);
stealActions.clear();
keyButton->setText(keyButton->text().chopped(strlen(" ...")));
keyButton->setText(keyButton->text().chopped(inputRecordingMarkupSuffix.size()));
q->setKeySequence(recorder->currentKeySequence(), KKeySequenceWidget::Validate);
updateShortcutDisplay();
}
@@ -397,7 +399,7 @@ void KKeySequenceWidgetPrivate::updateShortcutDisplay()
if (recorder->isRecording()) {
// make it clear that input is still going on
s.append(QLatin1String(" ..."));
s.append(inputRecordingMarkupSuffix);
}
s = QLatin1Char(' ') + s + QLatin1Char(' ');
+1 -1
View File
@@ -221,7 +221,7 @@ void KMenuMenuHandler::showContextMenu(QMenu *menu, const QPoint &pos)
m_popupAction = action;
m_contextMenu = new QMenu;
m_contextMenu->addAction(i18nc("@action:inmenu", "Configure Shortcut..."), this, &KMenuMenuHandler::slotSetShortcut);
m_contextMenu->addAction(i18nc("@action:inmenu", "Configure Shortcut…"), this, &KMenuMenuHandler::slotSetShortcut);
KMainWindow *window = qobject_cast<KMainWindow *>(m_builder->widget());
if (window) {
+3 -3
View File
@@ -44,7 +44,7 @@ KShortcutSchemesEditor::KShortcutSchemesEditor(KShortcutsDialog *parent)
schemesLabel->setBuddy(m_schemesList);
l->addWidget(m_schemesList);
m_newScheme = new QPushButton(QIcon::fromTheme(QStringLiteral("document-new")), i18nc("@action:button", "New..."));
m_newScheme = new QPushButton(QIcon::fromTheme(QStringLiteral("document-new")), i18nc("@action:button", "New…"));
l->addWidget(m_newScheme);
m_deleteScheme = new QPushButton(QIcon::fromTheme(QStringLiteral("edit-delete")), i18nc("@action:button", "Delete"));
@@ -59,11 +59,11 @@ KShortcutSchemesEditor::KShortcutSchemesEditor(KShortcutsDialog *parent)
this,
&KShortcutSchemesEditor::saveAsDefaultsForScheme);
m_moreActionsMenu->addAction(QIcon::fromTheme(QStringLiteral("document-export")),
i18nc("@action:inmenu", "Export Scheme..."),
i18nc("@action:inmenu", "Export Scheme…"),
this,
&KShortcutSchemesEditor::exportShortcutsScheme);
m_moreActionsMenu->addAction(QIcon::fromTheme(QStringLiteral("document-import")),
i18nc("@action:inmenu", "Import Scheme..."),
i18nc("@action:inmenu", "Import Scheme…"),
this,
&KShortcutSchemesEditor::importShortcutsScheme);
moreActions->setMenu(m_moreActionsMenu);
+1 -1
View File
@@ -217,7 +217,7 @@ void TestWindow::slotGoGoGoo()
void TestWindow::slotSave()
{
qApp->beep();
statusBar->showMessage(QStringLiteral("Saving properties..."));
statusBar->showMessage(QStringLiteral("Saving properties…"));
}
void TestWindow::slotPrint()