From 6f3a150272940a523cce33dfc114edbf59c43f09 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Tue, 15 Aug 2023 01:08:37 +0300 Subject: [PATCH] kfind: adjust to KLocalizedString changes Signed-off-by: Ivailo Monev --- kfind/kftabdlg.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kfind/kftabdlg.cpp b/kfind/kftabdlg.cpp index 7ec7f835..b2fc45d4 100644 --- a/kfind/kftabdlg.cpp +++ b/kfind/kftabdlg.cpp @@ -850,10 +850,9 @@ void KfindTabWidget::slotUpdateDateLabelsForType(int index) void KfindTabWidget::updateDateLabels(int type, int value) { - QString typeKey(type == 0 ? 'i' : type == 1 ? 'h' : type == 2 ? 'd' : type == 3 ? 'm' : 'y'); rb[1]->setText(ki18ncp("during the previous minute(s)/hour(s)/...; " "dynamic context 'type': 'i' minutes, 'h' hours, 'd' days, 'm' months, 'y' years", - "&during the previous", "&during the previous").subs(value).inContext("type", typeKey).toString()); + "&during the previous", "&during the previous").subs(value).toString()); betweenType->setItemText(0, i18ncp("use date ranges to search files by modified time", "minute", "minutes", value)); betweenType->setItemText(1, i18ncp("use date ranges to search files by modified time", "hour", "hours", value)); betweenType->setItemText(2, i18ncp("use date ranges to search files by modified time", "day", "days", value)); -- 2.11.0