Skip to content
Snippets Groups Projects
Commit 402f1e6d authored by Laurent Montel's avatar Laurent Montel
Browse files

Fix KLocalization::setupSpinBoxFormatString usage

parent 4bd39c87
No related branches found
No related tags found
No related merge requests found
Pipeline #755785 passed with stage
in 4 minutes and 25 seconds
......@@ -32,8 +32,8 @@ KCMAkregatorArchiveConfig::KCMAkregatorArchiveConfig(QObject *parent, const KPlu
connect(m_ui.rb_LimitArticleAge, &QAbstractButton::toggled, m_ui.kcfg_MaxArticleAge, &QWidget::setEnabled);
#if KI18N_VERSION > QT_VERSION_CHECK(6, 5, 0)
KLocalization::setupSpinBoxFormatString(m_ui.kcfg_MaxArticleNumber, ki18ncp("Limit feed archive size to:", " article", " articles"));
KLocalization::setupSpinBoxFormatString(m_ui.kcfg_MaxArticleAge, ki18ncp("Delete articles older than:", " day", " days"));
KLocalization::setupSpinBoxFormatString(m_ui.kcfg_MaxArticleNumber, ki18ncp("Limit feed archive size to:", "%v article", "%v articles"));
KLocalization::setupSpinBoxFormatString(m_ui.kcfg_MaxArticleAge, ki18ncp("Delete articles older than:", "%v day", "%v days"));
#endif
m_archiveModeGroup = new QButtonGroup(this);
m_archiveModeGroup->addButton(m_ui.rb_KeepAllArticles, Settings::EnumArchiveMode::keepAllArticles);
......
......@@ -25,7 +25,7 @@ SettingsAdvanced::SettingsAdvanced(QWidget *parent)
connect(kcfg_UseMarkReadDelay, &QCheckBox::toggled, kcfg_MarkReadDelay, &QSpinBox::setEnabled);
#if KI18N_VERSION > QT_VERSION_CHECK(6, 5, 0)
KLocalization::setupSpinBoxFormatString(kcfg_MarkReadDelay, ki18ncp("Mark selected article read after", " second", " seconds"));
KLocalization::setupSpinBoxFormatString(kcfg_MarkReadDelay, ki18ncp("Mark selected article read after", "%v second", "%v seconds"));
#endif
}
......
......@@ -113,8 +113,8 @@ FeedPropertiesDialog::FeedPropertiesDialog(QWidget *parent, const QString &name)
mFeedPropertiesWidget->updateComboBox->insertItem(FeedPropertiesWidget::Never, i18nc("never fetch new articles", "Never"));
#if KI18N_VERSION > QT_VERSION_CHECK(6, 5, 0)
KLocalization::setupSpinBoxFormatString(mFeedPropertiesWidget->sb_maxArticleAge, ki18np(" day", " days"));
KLocalization::setupSpinBoxFormatString(mFeedPropertiesWidget->sb_maxArticleNumber, ki18np(" article", " articles"));
KLocalization::setupSpinBoxFormatString(mFeedPropertiesWidget->sb_maxArticleAge, ki18np("%v day", "%v days"));
KLocalization::setupSpinBoxFormatString(mFeedPropertiesWidget->sb_maxArticleNumber, ki18np("%v article", "%v articles"));
#endif
connect(mFeedPropertiesWidget->feedNameEdit, &QLineEdit::textChanged, this, &FeedPropertiesDialog::slotSetWindowTitle);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment