replace message -> article

This commit is contained in:
Martin Rotter 2021-06-22 07:20:37 +02:00
parent f0ef4329f9
commit fa31189357
19 changed files with 68 additions and 68 deletions

View File

@ -138,8 +138,8 @@ void MessagesModel::loadMessages(RootItem* item) {
<< "Loading of messages from item '" << "Loading of messages from item '"
<< item->title() << "' failed."; << item->title() << "' failed.";
qApp->showGuiMessage(Notification::Event::GeneralEvent, qApp->showGuiMessage(Notification::Event::GeneralEvent,
tr("Loading of messages from item '%1' failed.").arg(item->title()), tr("Loading of articles from item '%1' failed.").arg(item->title()),
tr("Loading of messages failed, maybe messages could not be downloaded."), tr("Loading of articles failed, maybe messages could not be downloaded."),
QSystemTrayIcon::MessageIcon::Critical, QSystemTrayIcon::MessageIcon::Critical,
true); true);
} }
@ -246,24 +246,24 @@ void MessagesModel::setupHeaderData() {
/*: Tooltip for indication of presence of enclosures.*/ tr("Has enclosures"); /*: Tooltip for indication of presence of enclosures.*/ tr("Has enclosures");
m_tooltipData m_tooltipData
<< tr("ID of the message.") << tr("ID of the article.")
<< tr("Is message read?") << tr("Is article read?")
<< tr("Is message important?") << tr("Is article important?")
<< tr("Is message deleted?") << tr("Is article deleted?")
<< tr("Is message permanently deleted from recycle bin?") << tr("Is article permanently deleted from recycle bin?")
<< tr("ID of feed which this message belongs to.") << tr("ID of feed which this article belongs to.")
<< tr("Title of the message.") << tr("Title of the article.")
<< tr("Url of the message.") << tr("Url of the article.")
<< tr("Author of the message.") << tr("Author of the article.")
<< tr("Creation date of the message.") << tr("Creation date of the article.")
<< tr("Contents of the message.") << tr("Contents of the article.")
<< tr("List of attachments.") << tr("List of attachments.")
<< tr("Score of the message.") << tr("Score of the article.")
<< tr("Account ID of the message.") << tr("Account ID of the article.")
<< tr("Custom ID of the message") << tr("Custom ID of the article")
<< tr("Custom hash of the message.") << tr("Custom hash of the article.")
<< tr("Custom ID of feed of the message.") << tr("Custom ID of feed of the article.")
<< tr("Indication of enclosures presence within the message."); << tr("Indication of enclosures presence within the article.");
} }
Qt::ItemFlags MessagesModel::flags(const QModelIndex& index) const { Qt::ItemFlags MessagesModel::flags(const QModelIndex& index) const {

View File

@ -22,12 +22,12 @@ void DatabaseCleaner::purgeDatabaseData(const CleanerOrders& which_data) {
if (which_data.m_removeReadMessages) { if (which_data.m_removeReadMessages) {
progress += difference; progress += difference;
emit purgeProgress(progress, tr("Removing read messages...")); emit purgeProgress(progress, tr("Removing read articles..."));
// Remove read messages. // Remove read messages.
result &= purgeReadMessages(database); result &= purgeReadMessages(database);
progress += difference; progress += difference;
emit purgeProgress(progress, tr("Read messages purged...")); emit purgeProgress(progress, tr("Read articles purged..."));
} }
if (which_data.m_removeRecycleBin) { if (which_data.m_removeRecycleBin) {
@ -42,22 +42,22 @@ void DatabaseCleaner::purgeDatabaseData(const CleanerOrders& which_data) {
if (which_data.m_removeOldMessages) { if (which_data.m_removeOldMessages) {
progress += difference; progress += difference;
emit purgeProgress(progress, tr("Removing old messages...")); emit purgeProgress(progress, tr("Removing old articles..."));
// Remove old messages. // Remove old messages.
result &= purgeOldMessages(database, which_data.m_barrierForRemovingOldMessagesInDays); result &= purgeOldMessages(database, which_data.m_barrierForRemovingOldMessagesInDays);
progress += difference; progress += difference;
emit purgeProgress(progress, tr("Old messages purged...")); emit purgeProgress(progress, tr("Old articles purged..."));
} }
if (which_data.m_removeStarredMessages) { if (which_data.m_removeStarredMessages) {
progress += difference; progress += difference;
emit purgeProgress(progress, tr("Removing starred messages...")); emit purgeProgress(progress, tr("Removing starred articles..."));
// Remove old messages. // Remove old messages.
result &= purgeStarredMessages(database); result &= purgeStarredMessages(database);
progress += difference; progress += difference;
emit purgeProgress(progress, tr("Starred messages purged...")); emit purgeProgress(progress, tr("Starred articles purged..."));
} }
result &= DatabaseQueries::purgeLeftoverLabelAssignments(database); result &= DatabaseQueries::purgeLeftoverLabelAssignments(database);

View File

@ -1920,7 +1920,7 @@ bool DatabaseQueries::deleteCategory(const QSqlDatabase& db, int id) {
MessageFilter* DatabaseQueries::addMessageFilter(const QSqlDatabase& db, const QString& title, MessageFilter* DatabaseQueries::addMessageFilter(const QSqlDatabase& db, const QString& title,
const QString& script) { const QString& script) {
if (!db.driver()->hasFeature(QSqlDriver::DriverFeature::LastInsertId)) { if (!db.driver()->hasFeature(QSqlDriver::DriverFeature::LastInsertId)) {
throw ApplicationException(QObject::tr("Cannot insert message filter, because current database cannot return last inserted row ID.")); throw ApplicationException(QObject::tr("Cannot insert article filter, because current database cannot return last inserted row ID."));
} }
QSqlQuery q(db); QSqlQuery q(db);

View File

@ -138,7 +138,7 @@ void FormMessageFiltersManager::showMessageContextMenu(const QPoint& pos) {
if (msg != nullptr) { if (msg != nullptr) {
QMenu menu(tr("Context menu"), m_ui.m_treeExistingMessages); QMenu menu(tr("Context menu"), m_ui.m_treeExistingMessages);
menu.addAction(tr("Filter messages like this"), this, [=]() { menu.addAction(tr("Filter articles like this"), this, [=]() {
filterMessagesLikeThis(*msg); filterMessagesLikeThis(*msg);
}); });
menu.exec(m_ui.m_treeExistingMessages->mapToGlobal(pos)); menu.exec(m_ui.m_treeExistingMessages->mapToGlobal(pos));
@ -169,7 +169,7 @@ void FormMessageFiltersManager::loadFilters() {
void FormMessageFiltersManager::addNewFilter(const QString& filter_script) { void FormMessageFiltersManager::addNewFilter(const QString& filter_script) {
try { try {
auto* fltr = m_reader->addMessageFilter( auto* fltr = m_reader->addMessageFilter(
tr("New message filter"), tr("New article filter"),
filter_script.isEmpty() filter_script.isEmpty()
? QSL("function filterMessage() { return MessageObject.Accept; }") ? QSL("function filterMessage() { return MessageObject.Accept; }")
: filter_script); : filter_script);
@ -237,7 +237,7 @@ void FormMessageFiltersManager::testFilter() {
} }
catch (const FilteringException& ex) { catch (const FilteringException& ex) {
m_ui.m_txtErrors->setTextColor(Qt::GlobalColor::red); m_ui.m_txtErrors->setTextColor(Qt::GlobalColor::red);
m_ui.m_txtErrors->insertPlainText(tr("EXISTING messages filtering error: '%1'.\n").arg(ex.message())); m_ui.m_txtErrors->insertPlainText(tr("EXISTING articles filtering error: '%1'.\n").arg(ex.message()));
// See output. // See output.
m_ui.m_twMessages->setCurrentIndex(2); m_ui.m_twMessages->setCurrentIndex(2);
@ -253,11 +253,11 @@ void FormMessageFiltersManager::testFilter() {
m_ui.m_txtErrors->setTextColor(decision == MessageObject::FilteringAction::Accept ? Qt::GlobalColor::darkGreen : Qt::GlobalColor::red); m_ui.m_txtErrors->setTextColor(decision == MessageObject::FilteringAction::Accept ? Qt::GlobalColor::darkGreen : Qt::GlobalColor::red);
QString answer = tr("Message will be %1.\n\n").arg(decision == MessageObject::FilteringAction::Accept QString answer = tr("Article will be %1.\n\n").arg(decision == MessageObject::FilteringAction::Accept
? tr("ACCEPTED") ? tr("ACCEPTED")
: tr("REJECTED")); : tr("REJECTED"));
answer += tr("Output (modified) message is:\n" answer += tr("Output (modified) article is:\n"
" Title = '%1'\n" " Title = '%1'\n"
" URL = '%2'\n" " URL = '%2'\n"
" Author = '%3'\n" " Author = '%3'\n"
@ -275,7 +275,7 @@ void FormMessageFiltersManager::testFilter() {
} }
catch (const FilteringException& ex) { catch (const FilteringException& ex) {
m_ui.m_txtErrors->setTextColor(Qt::GlobalColor::red); m_ui.m_txtErrors->setTextColor(Qt::GlobalColor::red);
m_ui.m_txtErrors->insertPlainText(tr("SAMPLE message filtering error: '%1'.\n").arg(ex.message())); m_ui.m_txtErrors->insertPlainText(tr("SAMPLE article filtering error: '%1'.\n").arg(ex.message()));
// See output. // See output.
m_ui.m_twMessages->setCurrentIndex(2); m_ui.m_twMessages->setCurrentIndex(2);

View File

@ -45,7 +45,7 @@
#include <QWidgetAction> #include <QWidgetAction>
FeedMessageViewer::FeedMessageViewer(QWidget* parent) : TabContent(parent), m_toolBarsEnabled(true), m_listHeadersEnabled(true), FeedMessageViewer::FeedMessageViewer(QWidget* parent) : TabContent(parent), m_toolBarsEnabled(true), m_listHeadersEnabled(true),
m_toolBarFeeds(new FeedsToolBar(tr("Toolbar for feeds"), this)), m_toolBarMessages(new MessagesToolBar(tr("Toolbar for messages"), this)), m_toolBarFeeds(new FeedsToolBar(tr("Toolbar for feeds"), this)), m_toolBarMessages(new MessagesToolBar(tr("Toolbar for articles"), this)),
m_messagesView(new MessagesView(this)), m_feedsView(new FeedsView(this)), m_messagesView(new MessagesView(this)), m_feedsView(new FeedsView(this)),
m_messagesBrowser(new MessagePreviewer(false, this)) { m_messagesBrowser(new MessagePreviewer(false, this)) {
initialize(); initialize();

View File

@ -654,7 +654,7 @@ QMenu* FeedsView::initializeContextMenuFeeds(RootItem* clicked_item) {
QMenu* FeedsView::initializeContextMenuImportant(RootItem* clicked_item) { QMenu* FeedsView::initializeContextMenuImportant(RootItem* clicked_item) {
if (m_contextMenuImportant == nullptr) { if (m_contextMenuImportant == nullptr) {
m_contextMenuImportant = new QMenu(tr("Context menu for important messages"), this); m_contextMenuImportant = new QMenu(tr("Context menu for important articles"), this);
} }
else { else {
m_contextMenuImportant->clear(); m_contextMenuImportant->clear();

View File

@ -31,15 +31,15 @@
void MessagePreviewer::createConnections() { void MessagePreviewer::createConnections() {
installEventFilter(this); installEventFilter(this);
connect(m_actionMarkRead = m_toolBar->addAction(qApp->icons()->fromTheme("mail-mark-read"), tr("Mark message as read")), connect(m_actionMarkRead = m_toolBar->addAction(qApp->icons()->fromTheme("mail-mark-read"), tr("Mark article read")),
&QAction::triggered, &QAction::triggered,
this, this,
&MessagePreviewer::markMessageAsRead); &MessagePreviewer::markMessageAsRead);
connect(m_actionMarkUnread = m_toolBar->addAction(qApp->icons()->fromTheme("mail-mark-unread"), tr("Mark message as unread")), connect(m_actionMarkUnread = m_toolBar->addAction(qApp->icons()->fromTheme("mail-mark-unread"), tr("Mark article unread")),
&QAction::triggered, &QAction::triggered,
this, this,
&MessagePreviewer::markMessageAsUnread); &MessagePreviewer::markMessageAsUnread);
connect(m_actionSwitchImportance = m_toolBar->addAction(qApp->icons()->fromTheme("mail-mark-important"), tr("Switch message importance")), connect(m_actionSwitchImportance = m_toolBar->addAction(qApp->icons()->fromTheme("mail-mark-important"), tr("Switch article importance")),
&QAction::triggered, &QAction::triggered,
this, this,
&MessagePreviewer::switchMessageImportance); &MessagePreviewer::switchMessageImportance);

View File

@ -191,7 +191,7 @@ void MessagesView::contextMenuEvent(QContextMenuEvent* event) {
void MessagesView::initializeContextMenu() { void MessagesView::initializeContextMenu() {
if (m_contextMenu == nullptr) { if (m_contextMenu == nullptr) {
m_contextMenu = new QMenu(tr("Context menu for messages"), this); m_contextMenu = new QMenu(tr("Context menu for articles"), this);
} }
m_contextMenu->clear(); m_contextMenu->clear();

View File

@ -12,10 +12,10 @@ MessageCountSpinBox::MessageCountSpinBox(QWidget* parent) : QSpinBox(parent) {
setSuffix(QSL(" ") + tr("= unlimited")); setSuffix(QSL(" ") + tr("= unlimited"));
} }
else if (value == 1) { else if (value == 1) {
setSuffix(QSL(" ") + tr("message")); setSuffix(QSL(" ") + tr("article"));
} }
else { else {
setSuffix(QSL(" ") + tr("messages")); setSuffix(QSL(" ") + tr("articles"));
} }
}); });

View File

@ -134,7 +134,7 @@ void TabWidget::initializeTabs() {
m_feedMessageViewer = new FeedMessageViewer(this); m_feedMessageViewer = new FeedMessageViewer(this);
const int index_of_browser = addTab(m_feedMessageViewer, QIcon(), tr("Feeds"), TabBar::TabType::FeedReader); const int index_of_browser = addTab(m_feedMessageViewer, QIcon(), tr("Feeds"), TabBar::TabType::FeedReader);
setTabToolTip(index_of_browser, tr("Browse your feeds and messages")); setTabToolTip(index_of_browser, tr("Browse your feeds and articles"));
} }
void TabWidget::setupIcons() { void TabWidget::setupIcons() {

View File

@ -103,28 +103,28 @@ void MessagesToolBar::handleMessageHighlighterChange(QAction* action) {
void MessagesToolBar::initializeSearchBox() { void MessagesToolBar::initializeSearchBox() {
m_txtSearchMessages = new BaseLineEdit(this); m_txtSearchMessages = new BaseLineEdit(this);
m_txtSearchMessages->setSizePolicy(QSizePolicy::Policy::Expanding, m_txtSearchMessages->sizePolicy().verticalPolicy()); m_txtSearchMessages->setSizePolicy(QSizePolicy::Policy::Expanding, m_txtSearchMessages->sizePolicy().verticalPolicy());
m_txtSearchMessages->setPlaceholderText(tr("Search messages")); m_txtSearchMessages->setPlaceholderText(tr("Search articles"));
// Setup wrapping action for search box. // Setup wrapping action for search box.
m_actionSearchMessages = new QWidgetAction(this); m_actionSearchMessages = new QWidgetAction(this);
m_actionSearchMessages->setDefaultWidget(m_txtSearchMessages); m_actionSearchMessages->setDefaultWidget(m_txtSearchMessages);
m_actionSearchMessages->setIcon(qApp->icons()->fromTheme(QSL("system-search"))); m_actionSearchMessages->setIcon(qApp->icons()->fromTheme(QSL("system-search")));
m_actionSearchMessages->setProperty("type", SEARCH_BOX_ACTION_NAME); m_actionSearchMessages->setProperty("type", SEARCH_BOX_ACTION_NAME);
m_actionSearchMessages->setProperty("name", tr("Message search box")); m_actionSearchMessages->setProperty("name", tr("Article search box"));
connect(m_txtSearchMessages, &BaseLineEdit::textChanged, this, &MessagesToolBar::messageSearchPatternChanged); connect(m_txtSearchMessages, &BaseLineEdit::textChanged, this, &MessagesToolBar::messageSearchPatternChanged);
} }
void MessagesToolBar::initializeHighlighter() { void MessagesToolBar::initializeHighlighter() {
m_menuMessageHighlighter = new QMenu(tr("Menu for highlighting messages"), this); m_menuMessageHighlighter = new QMenu(tr("Menu for highlighting articles"), this);
m_menuMessageHighlighter->addAction(qApp->icons()->fromTheme(QSL("mail-mark-read")), m_menuMessageHighlighter->addAction(qApp->icons()->fromTheme(QSL("mail-mark-read")),
tr("No extra highlighting"))->setData(QVariant::fromValue(MessagesModel::MessageHighlighter::NoHighlighting)); tr("No extra highlighting"))->setData(QVariant::fromValue(MessagesModel::MessageHighlighter::NoHighlighting));
m_menuMessageHighlighter->addAction(qApp->icons()->fromTheme(QSL("mail-mark-unread")), m_menuMessageHighlighter->addAction(qApp->icons()->fromTheme(QSL("mail-mark-unread")),
tr("Highlight unread messages"))->setData(QVariant::fromValue(MessagesModel::MessageHighlighter::HighlightUnread)); tr("Highlight unread articles"))->setData(QVariant::fromValue(MessagesModel::MessageHighlighter::HighlightUnread));
m_menuMessageHighlighter->addAction(qApp->icons()->fromTheme(QSL("mail-mark-important")), m_menuMessageHighlighter->addAction(qApp->icons()->fromTheme(QSL("mail-mark-important")),
tr("Highlight important messages"))->setData(QVariant::fromValue(MessagesModel::MessageHighlighter::HighlightImportant)); tr("Highlight important articles"))->setData(QVariant::fromValue(MessagesModel::MessageHighlighter::HighlightImportant));
m_btnMessageHighlighter = new QToolButton(this); m_btnMessageHighlighter = new QToolButton(this);
m_btnMessageHighlighter->setToolTip(tr("Display all messages")); m_btnMessageHighlighter->setToolTip(tr("Display all articles"));
m_btnMessageHighlighter->setMenu(m_menuMessageHighlighter); m_btnMessageHighlighter->setMenu(m_menuMessageHighlighter);
m_btnMessageHighlighter->setPopupMode(QToolButton::ToolButtonPopupMode::MenuButtonPopup); m_btnMessageHighlighter->setPopupMode(QToolButton::ToolButtonPopupMode::MenuButtonPopup);
m_btnMessageHighlighter->setIcon(qApp->icons()->fromTheme(QSL("mail-mark-read"))); m_btnMessageHighlighter->setIcon(qApp->icons()->fromTheme(QSL("mail-mark-read")));
@ -132,7 +132,7 @@ void MessagesToolBar::initializeHighlighter() {
m_actionMessageHighlighter->setDefaultWidget(m_btnMessageHighlighter); m_actionMessageHighlighter->setDefaultWidget(m_btnMessageHighlighter);
m_actionMessageHighlighter->setIcon(m_btnMessageHighlighter->icon()); m_actionMessageHighlighter->setIcon(m_btnMessageHighlighter->icon());
m_actionMessageHighlighter->setProperty("type", HIGHLIGHTER_ACTION_NAME); m_actionMessageHighlighter->setProperty("type", HIGHLIGHTER_ACTION_NAME);
m_actionMessageHighlighter->setProperty("name", tr("Message highlighter")); m_actionMessageHighlighter->setProperty("name", tr("Article highlighter"));
connect(m_menuMessageHighlighter, &QMenu::triggered, this, &MessagesToolBar::handleMessageHighlighterChange); connect(m_menuMessageHighlighter, &QMenu::triggered, this, &MessagesToolBar::handleMessageHighlighterChange);
} }

View File

@ -263,24 +263,24 @@ QString Feed::getAutoUpdateStatusDescription() const {
case AutoUpdateType::DontAutoUpdate: case AutoUpdateType::DontAutoUpdate:
//: Describes feed auto-update status. //: Describes feed auto-update status.
auto_update_string = tr("does not use auto-downloading of messages"); auto_update_string = tr("does not use auto-fetching of articles");
break; break;
case AutoUpdateType::DefaultAutoUpdate: case AutoUpdateType::DefaultAutoUpdate:
//: Describes feed auto-update status. //: Describes feed auto-update status.
auto_update_string = qApp->feedReader()->autoUpdateEnabled() auto_update_string = qApp->feedReader()->autoUpdateEnabled()
? tr("uses global settings (%n minute(s) to next auto-download of messages)", ? tr("uses global settings (%n minute(s) to next auto-fetch of articles)",
nullptr, nullptr,
qApp->feedReader()->autoUpdateRemainingInterval()) qApp->feedReader()->autoUpdateRemainingInterval())
: tr("uses global settings (global auto-downloading of messages is disabled)"); : tr("uses global settings (global auto-fetching of articles is disabled)");
break; break;
case AutoUpdateType::SpecificAutoUpdate: case AutoUpdateType::SpecificAutoUpdate:
default: default:
//: Describes feed auto-update status. //: Describes feed auto-update status.
auto_update_string = tr("uses specific settings (%n minute(s) to next auto-downloading of new messages)", nullptr, autoUpdateRemainingInterval()); auto_update_string = tr("uses specific settings (%n minute(s) to next auto-fetching of new articles)", nullptr, autoUpdateRemainingInterval());
break; break;
} }
@ -293,7 +293,7 @@ QString Feed::getStatusDescription() const {
return tr("no errors"); return tr("no errors");
case Status::NewMessages: case Status::NewMessages:
return tr("has new messages"); return tr("has new articles");
case Status::AuthError: case Status::AuthError:
return tr("authentication error"); return tr("authentication error");

View File

@ -112,10 +112,10 @@ void FormFeedDetails::initialize() {
// Setup auto-update options. // Setup auto-update options.
m_ui->m_spinAutoUpdateInterval->setValue(DEFAULT_AUTO_UPDATE_INTERVAL); m_ui->m_spinAutoUpdateInterval->setValue(DEFAULT_AUTO_UPDATE_INTERVAL);
m_ui->m_cmbAutoUpdateType->addItem(tr("Download messages using global interval"), m_ui->m_cmbAutoUpdateType->addItem(tr("Fetch articles using global interval"),
QVariant::fromValue(int(Feed::AutoUpdateType::DefaultAutoUpdate))); QVariant::fromValue(int(Feed::AutoUpdateType::DefaultAutoUpdate)));
m_ui->m_cmbAutoUpdateType->addItem(tr("Download messages every"), m_ui->m_cmbAutoUpdateType->addItem(tr("Fetch articles every"),
QVariant::fromValue(int(Feed::AutoUpdateType::SpecificAutoUpdate))); QVariant::fromValue(int(Feed::AutoUpdateType::SpecificAutoUpdate)));
m_ui->m_cmbAutoUpdateType->addItem(tr("Do not download messages at all"), m_ui->m_cmbAutoUpdateType->addItem(tr("Do not fetch articles at all"),
QVariant::fromValue(int(Feed::AutoUpdateType::DontAutoUpdate))); QVariant::fromValue(int(Feed::AutoUpdateType::DontAutoUpdate)));
} }

View File

@ -17,11 +17,11 @@ RecycleBin::RecycleBin(RootItem* parent_item) : RootItem(parent_item), m_totalCo
setId(ID_RECYCLE_BIN); setId(ID_RECYCLE_BIN);
setIcon(qApp->icons()->fromTheme(QSL("user-trash"))); setIcon(qApp->icons()->fromTheme(QSL("user-trash")));
setTitle(tr("Recycle bin")); setTitle(tr("Recycle bin"));
setDescription(tr("Recycle bin contains all deleted messages from all feeds.")); setDescription(tr("Recycle bin contains all deleted articles from all feeds."));
} }
QString RecycleBin::additionalTooltip() const { QString RecycleBin::additionalTooltip() const {
return tr("%n deleted message(s).", nullptr, countOfAllMessages()); return tr("%n deleted article(s).", nullptr, countOfAllMessages());
} }
int RecycleBin::countOfUnreadMessages() const { int RecycleBin::countOfUnreadMessages() const {

View File

@ -142,7 +142,7 @@ QVariant RootItem::data(int column, int role) const {
} }
else if (column == FDS_MODEL_COUNTS_INDEX) { else if (column == FDS_MODEL_COUNTS_INDEX) {
//: Tooltip for "unread" column of feed list. //: Tooltip for "unread" column of feed list.
return tr("%n unread message(s).", nullptr, countOfUnreadMessages()); return tr("%n unread article(s).", nullptr, countOfUnreadMessages());
} }
else { else {
return QVariant(); return QVariant();

View File

@ -94,7 +94,7 @@ QList<QAction*> ServiceRoot::serviceMenu() {
auto* cache = toCache(); auto* cache = toCache();
if (cache != nullptr) { if (cache != nullptr) {
auto* act_sync_cache = new QAction(qApp->icons()->fromTheme(QSL("view-refresh")), tr("Synchronize message cache"), this); auto* act_sync_cache = new QAction(qApp->icons()->fromTheme(QSL("view-refresh")), tr("Synchronize article cache"), this);
connect(act_sync_cache, &QAction::triggered, this, [cache]() { connect(act_sync_cache, &QAction::triggered, this, [cache]() {
cache->saveAllCachedData(false); cache->saveAllCachedData(false);

View File

@ -41,9 +41,9 @@ FeedlyAccountDetails::FeedlyAccountDetails(QWidget* parent) : QWidget(parent), m
"each day.").arg(APP_NAME)); "each day.").arg(APP_NAME));
#endif #endif
m_ui.m_lblLimitMessagesInfo->setText(tr("Be very careful about downloading too many messages, because " m_ui.m_lblLimitMessagesInfo->setText(tr("Be very careful about downloading too many articles, because "
"Feedly automagically caches ALL messages of a feed forever so you might " "Feedly automagically caches ALL articles of a feed forever so you might "
"end with thousands of messages you will never read anyway.")); "end with thousands of articles you will never read anyway."));
GuiUtilities::setLabelAsNotice(*m_ui.m_lblInfo, true); GuiUtilities::setLabelAsNotice(*m_ui.m_lblInfo, true);
GuiUtilities::setLabelAsNotice(*m_ui.m_lblLimitMessagesInfo, true); GuiUtilities::setLabelAsNotice(*m_ui.m_lblLimitMessagesInfo, true);

View File

@ -29,10 +29,10 @@ GreaderAccountDetails::GreaderAccountDetails(QWidget* parent) : QWidget(parent)
m_ui.m_lblTestResult->setStatus(WidgetWithStatus::StatusType::Information, m_ui.m_lblTestResult->setStatus(WidgetWithStatus::StatusType::Information,
tr("No test done yet."), tr("No test done yet."),
tr("Here, results of connection test are shown.")); tr("Here, results of connection test are shown."));
m_ui.m_lblLimitMessages->setText(tr("Limiting number of downloaded messages per feed makes updating of " m_ui.m_lblLimitMessages->setText(tr("Limiting number of fetched articles per feed makes fetching of "
"feeds faster, but if your feed contains bigger number of messages " "articles faster, but if your feed contains bigger number of articles "
"than specified limit, then some older messages might not be " "than specified limit, then some older articles might not be "
"downloaded during feed update.")); "downloaded at all."));
GuiUtilities::setLabelAsNotice(*m_ui.m_lblLimitMessages, true); GuiUtilities::setLabelAsNotice(*m_ui.m_lblLimitMessages, true);

View File

@ -26,7 +26,7 @@ OwnCloudAccountDetails::OwnCloudAccountDetails(QWidget* parent) : QWidget(parent
m_ui.m_spinLimitMessages->setSuffix(QSL(" ") + tr("= unlimited")); m_ui.m_spinLimitMessages->setSuffix(QSL(" ") + tr("= unlimited"));
} }
else { else {
m_ui.m_spinLimitMessages->setSuffix(QSL(" ") + tr("messages")); m_ui.m_spinLimitMessages->setSuffix(QSL(" ") + tr("articles"));
} }
}); });