Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/gui/FoldersGui/accountfolderscontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ void AccountFoldersController::buildMenuActions()
connect(_chooseSync, &QAction::triggered, this, &AccountFoldersController::onChooseSync);
}

//: This shows as 'Remove folder sync' or 'Remove Space sync'
QString removeSyncString = tr("Remove %1 sync").arg(CommonStrings::space());
_removeSync = new QAction(removeSyncString, this);
_removeSync->setObjectName("removeFolderSyncAction");
Expand Down
2 changes: 2 additions & 0 deletions src/gui/FoldersGui/accountfoldersview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ AccountFoldersView::AccountFoldersView(QWidget *parent)
void AccountFoldersView::buildView()
{
QVBoxLayout *mainLayout = new QVBoxLayout();
//: This shows as 'Folder sync' or 'Space sync'
QString titleString = tr("%1 sync").arg(CommonStrings::capSpace());
QLabel *titleLabel = new QLabel(titleString, this);
QFont f = titleLabel->font();
Expand All @@ -67,6 +68,7 @@ void AccountFoldersView::buildView()
description->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
buttonLineLayout->addWidget(description, 0, Qt::AlignLeft);

//: This shows as 'Add new folder sync…' or 'Add new Space sync…'
QString addSyncString = tr("Add new %1 sync…").arg(CommonStrings::space());
_addFolderButton = new QPushButton(addSyncString, this);
_addFolderButton->setObjectName("addFolderSyncButton");
Expand Down
7 changes: 3 additions & 4 deletions src/gui/FoldersGui/folderitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,9 @@ QVariant FolderItem::data(int role) const
case Qt::DisplayRole:
return _folder->displayName();
case Qt::AccessibleTextRole: {
QString accessible = _folder->displayName();
accessible.append(tr(" sync status "));
accessible.append(_statusString);
return accessible;
//: Accessible text, read out by a screen reader.
//~ The first argument is the displayed name of the folder.
return tr("%1, sync status: %2").arg(_folder->displayName(), _statusString);
}
case Qt::DecorationRole:
return _image;
Expand Down
3 changes: 1 addition & 2 deletions src/gui/FoldersGui/folderitemupdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ void FolderItemUpdater::onSyncStateChanged()
we " "can't update a known total size using these progress values becausethey are never negative, to indicate a removal"; QStandardItem
*errorItem = new QStandardItem(errorIcon, longError);
*/
QString accessibleError = tr("Sync error: ");
accessibleError.append(error);
QString accessibleError = tr("Sync error: %1").arg(error);
errorItem->setData(accessibleError, Qt::AccessibleTextRole);

QStandardItem *emptyEditorItem = new QStandardItem();
Expand Down