mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Use ellipsis everywhere instead of three dots
Better for screen readers etc.
This commit is contained in:
parent
cf3a570afc
commit
4d930992c4
|
@ -1651,7 +1651,7 @@ void DolphinMainWindow::setupActions()
|
||||||
connect(moveToOtherViewAction, &QAction::triggered, this, &DolphinMainWindow::moveToInactiveSplitView);
|
connect(moveToOtherViewAction, &QAction::triggered, this, &DolphinMainWindow::moveToInactiveSplitView);
|
||||||
|
|
||||||
QAction *showFilterBar = actionCollection()->addAction(QStringLiteral("show_filter_bar"));
|
QAction *showFilterBar = actionCollection()->addAction(QStringLiteral("show_filter_bar"));
|
||||||
showFilterBar->setText(i18nc("@action:inmenu Tools", "Filter..."));
|
showFilterBar->setText(i18nc("@action:inmenu Tools", "Filter…"));
|
||||||
showFilterBar->setToolTip(i18nc("@info:tooltip", "Show Filter Bar"));
|
showFilterBar->setToolTip(i18nc("@info:tooltip", "Show Filter Bar"));
|
||||||
showFilterBar->setWhatsThis(xi18nc("@info:whatsthis",
|
showFilterBar->setWhatsThis(xi18nc("@info:whatsthis",
|
||||||
"This opens the "
|
"This opens the "
|
||||||
|
@ -1675,7 +1675,7 @@ void DolphinMainWindow::setupActions()
|
||||||
connect(toggleFilter, &QAction::triggered, this, &DolphinMainWindow::toggleFilterBar);
|
connect(toggleFilter, &QAction::triggered, this, &DolphinMainWindow::toggleFilterBar);
|
||||||
|
|
||||||
QAction *searchAction = KStandardAction::find(this, &DolphinMainWindow::find, actionCollection());
|
QAction *searchAction = KStandardAction::find(this, &DolphinMainWindow::find, actionCollection());
|
||||||
searchAction->setText(i18n("Search..."));
|
searchAction->setText(i18n("Search…"));
|
||||||
searchAction->setToolTip(i18nc("@info:tooltip", "Search for files and folders"));
|
searchAction->setToolTip(i18nc("@info:tooltip", "Search for files and folders"));
|
||||||
searchAction->setWhatsThis(xi18nc("@info:whatsthis find",
|
searchAction->setWhatsThis(xi18nc("@info:whatsthis find",
|
||||||
"<para>This helps you "
|
"<para>This helps you "
|
||||||
|
|
|
@ -146,16 +146,16 @@ void DolphinPart::createActions()
|
||||||
connect(m_newFileMenu->menu(), &QMenu::aboutToShow, this, &DolphinPart::updateNewMenu);
|
connect(m_newFileMenu->menu(), &QMenu::aboutToShow, this, &DolphinPart::updateNewMenu);
|
||||||
|
|
||||||
QAction *editMimeTypeAction = actionCollection()->addAction(QStringLiteral("editMimeType"));
|
QAction *editMimeTypeAction = actionCollection()->addAction(QStringLiteral("editMimeType"));
|
||||||
editMimeTypeAction->setText(i18nc("@action:inmenu Edit", "&Edit File Type..."));
|
editMimeTypeAction->setText(i18nc("@action:inmenu Edit", "&Edit File Type…"));
|
||||||
connect(editMimeTypeAction, &QAction::triggered, this, &DolphinPart::slotEditMimeType);
|
connect(editMimeTypeAction, &QAction::triggered, this, &DolphinPart::slotEditMimeType);
|
||||||
|
|
||||||
QAction *selectItemsMatching = actionCollection()->addAction(QStringLiteral("select_items_matching"));
|
QAction *selectItemsMatching = actionCollection()->addAction(QStringLiteral("select_items_matching"));
|
||||||
selectItemsMatching->setText(i18nc("@action:inmenu Edit", "Select Items Matching..."));
|
selectItemsMatching->setText(i18nc("@action:inmenu Edit", "Select Items Matching…"));
|
||||||
actionCollection()->setDefaultShortcut(selectItemsMatching, Qt::CTRL | Qt::Key_S);
|
actionCollection()->setDefaultShortcut(selectItemsMatching, Qt::CTRL | Qt::Key_S);
|
||||||
connect(selectItemsMatching, &QAction::triggered, this, &DolphinPart::slotSelectItemsMatchingPattern);
|
connect(selectItemsMatching, &QAction::triggered, this, &DolphinPart::slotSelectItemsMatchingPattern);
|
||||||
|
|
||||||
QAction *unselectItemsMatching = actionCollection()->addAction(QStringLiteral("unselect_items_matching"));
|
QAction *unselectItemsMatching = actionCollection()->addAction(QStringLiteral("unselect_items_matching"));
|
||||||
unselectItemsMatching->setText(i18nc("@action:inmenu Edit", "Unselect Items Matching..."));
|
unselectItemsMatching->setText(i18nc("@action:inmenu Edit", "Unselect Items Matching…"));
|
||||||
connect(unselectItemsMatching, &QAction::triggered, this, &DolphinPart::slotUnselectItemsMatchingPattern);
|
connect(unselectItemsMatching, &QAction::triggered, this, &DolphinPart::slotUnselectItemsMatchingPattern);
|
||||||
|
|
||||||
KStandardAction::selectAll(m_view, &DolphinView::selectAll, actionCollection());
|
KStandardAction::selectAll(m_view, &DolphinView::selectAll, actionCollection());
|
||||||
|
@ -187,7 +187,7 @@ void DolphinPart::createActions()
|
||||||
|
|
||||||
// Tools menu
|
// Tools menu
|
||||||
m_findFileAction = KStandardAction::find(this, &DolphinPart::slotFindFile, actionCollection());
|
m_findFileAction = KStandardAction::find(this, &DolphinPart::slotFindFile, actionCollection());
|
||||||
m_findFileAction->setText(i18nc("@action:inmenu Tools", "Find File..."));
|
m_findFileAction->setText(i18nc("@action:inmenu Tools", "Find File…"));
|
||||||
|
|
||||||
#ifndef Q_OS_WIN
|
#ifndef Q_OS_WIN
|
||||||
if (KAuthorized::authorize(QStringLiteral("shell_access"))) {
|
if (KAuthorized::authorize(QStringLiteral("shell_access"))) {
|
||||||
|
|
|
@ -634,7 +634,7 @@ void DolphinViewContainer::updateStatusBar()
|
||||||
void DolphinViewContainer::updateDirectoryLoadingProgress(int percent)
|
void DolphinViewContainer::updateDirectoryLoadingProgress(int percent)
|
||||||
{
|
{
|
||||||
if (m_statusBar->progressText().isEmpty()) {
|
if (m_statusBar->progressText().isEmpty()) {
|
||||||
m_statusBar->setProgressText(i18nc("@info:progress", "Loading folder..."));
|
m_statusBar->setProgressText(i18nc("@info:progress", "Loading folder…"));
|
||||||
}
|
}
|
||||||
m_statusBar->setProgress(percent);
|
m_statusBar->setProgress(percent);
|
||||||
}
|
}
|
||||||
|
@ -642,7 +642,7 @@ void DolphinViewContainer::updateDirectoryLoadingProgress(int percent)
|
||||||
void DolphinViewContainer::updateDirectorySortingProgress(int percent)
|
void DolphinViewContainer::updateDirectorySortingProgress(int percent)
|
||||||
{
|
{
|
||||||
if (m_statusBar->progressText().isEmpty()) {
|
if (m_statusBar->progressText().isEmpty()) {
|
||||||
m_statusBar->setProgressText(i18nc("@info:progress", "Sorting..."));
|
m_statusBar->setProgressText(i18nc("@info:progress", "Sorting…"));
|
||||||
}
|
}
|
||||||
m_statusBar->setProgress(percent);
|
m_statusBar->setProgress(percent);
|
||||||
}
|
}
|
||||||
|
@ -653,7 +653,7 @@ void DolphinViewContainer::slotDirectoryLoadingStarted()
|
||||||
// Search KIO-slaves usually don't provide any progress information. Give
|
// Search KIO-slaves usually don't provide any progress information. Give
|
||||||
// a hint to the user that a searching is done:
|
// a hint to the user that a searching is done:
|
||||||
updateStatusBar();
|
updateStatusBar();
|
||||||
m_statusBar->setProgressText(i18nc("@info", "Searching..."));
|
m_statusBar->setProgressText(i18nc("@info", "Searching…"));
|
||||||
m_statusBar->setProgress(-1);
|
m_statusBar->setProgress(-1);
|
||||||
} else {
|
} else {
|
||||||
// Trigger an undetermined progress indication. The progress
|
// Trigger an undetermined progress indication. The progress
|
||||||
|
|
|
@ -31,7 +31,7 @@ FilterBar::FilterBar(QWidget *parent)
|
||||||
m_filterInput = new QLineEdit(this);
|
m_filterInput = new QLineEdit(this);
|
||||||
m_filterInput->setLayoutDirection(Qt::LeftToRight);
|
m_filterInput->setLayoutDirection(Qt::LeftToRight);
|
||||||
m_filterInput->setClearButtonEnabled(true);
|
m_filterInput->setClearButtonEnabled(true);
|
||||||
m_filterInput->setPlaceholderText(i18n("Filter..."));
|
m_filterInput->setPlaceholderText(i18n("Filter…"));
|
||||||
connect(m_filterInput, &QLineEdit::textChanged, this, &FilterBar::filterChanged);
|
connect(m_filterInput, &QLineEdit::textChanged, this, &FilterBar::filterChanged);
|
||||||
setFocusProxy(m_filterInput);
|
setFocusProxy(m_filterInput);
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ void TreeViewContextMenu::open(const QPoint &pos)
|
||||||
popup->addSeparator();
|
popup->addSeparator();
|
||||||
|
|
||||||
// insert 'Rename'
|
// insert 'Rename'
|
||||||
QAction *renameAction = new QAction(i18nc("@action:inmenu", "Rename..."), this);
|
QAction *renameAction = new QAction(i18nc("@action:inmenu", "Rename…"), this);
|
||||||
renameAction->setEnabled(capabilities.supportsMoving());
|
renameAction->setEnabled(capabilities.supportsMoving());
|
||||||
renameAction->setIcon(QIcon::fromTheme(QStringLiteral("edit-rename")));
|
renameAction->setIcon(QIcon::fromTheme(QStringLiteral("edit-rename")));
|
||||||
connect(renameAction, &QAction::triggered, this, &TreeViewContextMenu::rename);
|
connect(renameAction, &QAction::triggered, this, &TreeViewContextMenu::rename);
|
||||||
|
|
|
@ -165,7 +165,7 @@ void InformationPanel::showContextMenu(const QPoint &pos)
|
||||||
showHoveredAction->setCheckable(true);
|
showHoveredAction->setCheckable(true);
|
||||||
showHoveredAction->setChecked(InformationPanelSettings::showHovered());
|
showHoveredAction->setChecked(InformationPanelSettings::showHovered());
|
||||||
|
|
||||||
QAction *configureAction = popup.addAction(i18nc("@action:inmenu", "Configure..."));
|
QAction *configureAction = popup.addAction(i18nc("@action:inmenu", "Configure…"));
|
||||||
configureAction->setIcon(QIcon::fromTheme(QStringLiteral("configure")));
|
configureAction->setIcon(QIcon::fromTheme(QStringLiteral("configure")));
|
||||||
if (m_inConfigurationMode) {
|
if (m_inConfigurationMode) {
|
||||||
configureAction->setEnabled(false);
|
configureAction->setEnabled(false);
|
||||||
|
|
|
@ -327,7 +327,7 @@ void DolphinSearchBox::init()
|
||||||
{
|
{
|
||||||
// Create search box
|
// Create search box
|
||||||
m_searchInput = new QLineEdit(this);
|
m_searchInput = new QLineEdit(this);
|
||||||
m_searchInput->setPlaceholderText(i18n("Search..."));
|
m_searchInput->setPlaceholderText(i18n("Search…"));
|
||||||
m_searchInput->installEventFilter(this);
|
m_searchInput->installEventFilter(this);
|
||||||
m_searchInput->setClearButtonEnabled(true);
|
m_searchInput->setClearButtonEnabled(true);
|
||||||
m_searchInput->setFont(QFontDatabase::systemFont(QFontDatabase::GeneralFont));
|
m_searchInput->setFont(QFontDatabase::systemFont(QFontDatabase::GeneralFont));
|
||||||
|
|
|
@ -66,7 +66,7 @@ ContextMenuSettingsPage::ContextMenuSettingsPage(QWidget *parent, const KActionC
|
||||||
this);
|
this);
|
||||||
label->setWordWrap(true);
|
label->setWordWrap(true);
|
||||||
m_searchLineEdit = new QLineEdit(this);
|
m_searchLineEdit = new QLineEdit(this);
|
||||||
m_searchLineEdit->setPlaceholderText(i18nc("@label:textbox", "Search..."));
|
m_searchLineEdit->setPlaceholderText(i18nc("@label:textbox", "Search…"));
|
||||||
connect(m_searchLineEdit, &QLineEdit::textChanged, this, [this](const QString &filter) {
|
connect(m_searchLineEdit, &QLineEdit::textChanged, this, [this](const QString &filter) {
|
||||||
m_sortModel->setFilterFixedString(filter);
|
m_sortModel->setFilterFixedString(filter);
|
||||||
});
|
});
|
||||||
|
@ -93,7 +93,7 @@ ContextMenuSettingsPage::ContextMenuSettingsPage(QWidget *parent, const KActionC
|
||||||
|
|
||||||
#ifndef Q_OS_WIN
|
#ifndef Q_OS_WIN
|
||||||
using NewStuffButton = KNSWidgets::Button;
|
using NewStuffButton = KNSWidgets::Button;
|
||||||
auto *downloadButton = new NewStuffButton(i18nc("@action:button", "Download New Services..."), QStringLiteral("servicemenu.knsrc"), this);
|
auto *downloadButton = new NewStuffButton(i18nc("@action:button", "Download New Services…"), QStringLiteral("servicemenu.knsrc"), this);
|
||||||
connect(downloadButton, &NewStuffButton::dialogFinished, this, [this](const auto &changedEntries) {
|
connect(downloadButton, &NewStuffButton::dialogFinished, this, [this](const auto &changedEntries) {
|
||||||
if (!changedEntries.isEmpty()) {
|
if (!changedEntries.isEmpty()) {
|
||||||
m_serviceModel->clear();
|
m_serviceModel->clear();
|
||||||
|
|
|
@ -29,7 +29,7 @@ DolphinFontRequester::DolphinFontRequester(QWidget *parent)
|
||||||
m_modeCombo->addItem(i18nc("@item:inlistbox Font", "Custom Font"));
|
m_modeCombo->addItem(i18nc("@item:inlistbox Font", "Custom Font"));
|
||||||
connect(m_modeCombo, &QComboBox::activated, this, &DolphinFontRequester::changeMode);
|
connect(m_modeCombo, &QComboBox::activated, this, &DolphinFontRequester::changeMode);
|
||||||
|
|
||||||
m_chooseFontButton = new QPushButton(i18nc("@action:button Choose font", "Choose..."), this);
|
m_chooseFontButton = new QPushButton(i18nc("@action:button Choose font", "Choose…"), this);
|
||||||
connect(m_chooseFontButton, &QPushButton::clicked, this, &DolphinFontRequester::openFontDialog);
|
connect(m_chooseFontButton, &QPushButton::clicked, this, &DolphinFontRequester::openFontDialog);
|
||||||
|
|
||||||
changeMode(m_modeCombo->currentIndex());
|
changeMode(m_modeCombo->currentIndex());
|
||||||
|
|
|
@ -2343,7 +2343,7 @@ void DolphinView::slotSwipeUp()
|
||||||
|
|
||||||
void DolphinView::showLoadingPlaceholder()
|
void DolphinView::showLoadingPlaceholder()
|
||||||
{
|
{
|
||||||
m_placeholderLabel->setText(i18n("Loading..."));
|
m_placeholderLabel->setText(i18n("Loading…"));
|
||||||
m_placeholderLabel->setVisible(true);
|
m_placeholderLabel->setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ void DolphinViewActionHandler::createActions(SelectionMode::ActionTextHelper *ac
|
||||||
// This action doesn't appear in the GUI, it's for the shortcut only.
|
// This action doesn't appear in the GUI, it's for the shortcut only.
|
||||||
// KNewFileMenu takes care of the GUI stuff.
|
// KNewFileMenu takes care of the GUI stuff.
|
||||||
QAction *newDirAction = m_actionCollection->addAction(QStringLiteral("create_dir"));
|
QAction *newDirAction = m_actionCollection->addAction(QStringLiteral("create_dir"));
|
||||||
newDirAction->setText(i18nc("@action", "Create Folder..."));
|
newDirAction->setText(i18nc("@action", "Create Folder…"));
|
||||||
m_actionCollection->setDefaultShortcuts(newDirAction, KStandardShortcut::createFolder());
|
m_actionCollection->setDefaultShortcuts(newDirAction, KStandardShortcut::createFolder());
|
||||||
newDirAction->setIcon(QIcon::fromTheme(QStringLiteral("folder-new")));
|
newDirAction->setIcon(QIcon::fromTheme(QStringLiteral("folder-new")));
|
||||||
newDirAction->setEnabled(false); // Will be enabled in slotWriteStateChanged(bool) if the current URL is writable
|
newDirAction->setEnabled(false); // Will be enabled in slotWriteStateChanged(bool) if the current URL is writable
|
||||||
|
@ -327,7 +327,7 @@ void DolphinViewActionHandler::createActions(SelectionMode::ActionTextHelper *ac
|
||||||
connect(showHiddenFiles, &KToggleAction::triggered, this, &DolphinViewActionHandler::toggleShowHiddenFiles);
|
connect(showHiddenFiles, &KToggleAction::triggered, this, &DolphinViewActionHandler::toggleShowHiddenFiles);
|
||||||
|
|
||||||
QAction *adjustViewProps = m_actionCollection->addAction(QStringLiteral("view_properties"));
|
QAction *adjustViewProps = m_actionCollection->addAction(QStringLiteral("view_properties"));
|
||||||
adjustViewProps->setText(i18nc("@action:inmenu View", "Adjust View Display Style..."));
|
adjustViewProps->setText(i18nc("@action:inmenu View", "Adjust View Display Style…"));
|
||||||
adjustViewProps->setIcon(QIcon::fromTheme(QStringLiteral("view-choose")));
|
adjustViewProps->setIcon(QIcon::fromTheme(QStringLiteral("view-choose")));
|
||||||
adjustViewProps->setWhatsThis(i18nc("@info:whatsthis",
|
adjustViewProps->setWhatsThis(i18nc("@info:whatsthis",
|
||||||
"This opens a window "
|
"This opens a window "
|
||||||
|
|
|
@ -218,7 +218,7 @@ void VersionControlObserver::updateItemStates()
|
||||||
|
|
||||||
if (!itemStates.isEmpty()) {
|
if (!itemStates.isEmpty()) {
|
||||||
if (!m_silentUpdate) {
|
if (!m_silentUpdate) {
|
||||||
Q_EMIT infoMessage(i18nc("@info:status", "Updating version information..."));
|
Q_EMIT infoMessage(i18nc("@info:status", "Updating version information…"));
|
||||||
}
|
}
|
||||||
m_updateItemStatesThread = new UpdateItemStatesThread(m_plugin, itemStates);
|
m_updateItemStatesThread = new UpdateItemStatesThread(m_plugin, itemStates);
|
||||||
connect(m_updateItemStatesThread, &UpdateItemStatesThread::finished, this, &VersionControlObserver::slotThreadFinished);
|
connect(m_updateItemStatesThread, &UpdateItemStatesThread::finished, this, &VersionControlObserver::slotThreadFinished);
|
||||||
|
|
Loading…
Reference in a new issue