From e9a984f4bb783ae292877f7f0c2d0ddbe72c807b Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 30 Jul 2021 01:08:03 +0300 Subject: [PATCH] kdeplasma-addons: correct progress labels text Signed-off-by: Ivailo Monev --- .../wallpapers/weather/backgroundlistmodel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kdeplasma-addons/wallpapers/weather/backgroundlistmodel.cpp b/kdeplasma-addons/wallpapers/weather/backgroundlistmodel.cpp index 06683f89..03c24886 100644 --- a/kdeplasma-addons/wallpapers/weather/backgroundlistmodel.cpp +++ b/kdeplasma-addons/wallpapers/weather/backgroundlistmodel.cpp @@ -263,7 +263,7 @@ void BackgroundListModel::initProgressDialog(KProgressDialog *progress) { progress->setAllowCancel(false); progress->setModal(true); - progress->setLabelText(i18n("Finding images for the wallpaper slideshow.")); + progress->setLabelText(i18n("Finding images for the weather wallpaper.")); progress->progressBar()->setRange(0, 0); } @@ -287,12 +287,12 @@ QList BackgroundListModel::findAllBackgrounds(Plasma::Wallpap QSet validPackages; foreach (const QString &packagePath, packages) { QCoreApplication::processEvents(); - progress->setLabelText(i18n("Finding images for the wallpaper slideshow.") + QLatin1String( "\n\n" ) + + progress->setLabelText(i18n("Finding images for the weather wallpaper.") + QLatin1String("\n\n") + i18n("Testing %1 for a Wallpaper package", packagePath)); Plasma::PackageStructure::Ptr structure = Plasma::Wallpaper::packageStructure(structureParent); Plasma::Package *pkg = new Plasma::Package(path + packagePath, structure); if (pkg->isValid() && (!container || !container->contains(pkg->path()))) { - progress->setLabelText(i18n("Finding images for the wallpaper slideshow.") + QLatin1String( "\n\n" ) + + progress->setLabelText(i18n("Finding images for the weather wallpaper.") + QLatin1String("\n\n") + i18n("Adding wallpaper package in %1", packagePath)); res.append(pkg); //kDebug() << " adding valid package:" << packagePath; @@ -314,7 +314,7 @@ QList BackgroundListModel::findAllBackgrounds(Plasma::Wallpap QCoreApplication::processEvents(); if (!container || !container->contains(wp.filePath())) { //kDebug() << " adding image file" << wp.filePath(); - progress->setLabelText(i18n("Finding images for the wallpaper slideshow.") + QLatin1String( "\n\n" ) + + progress->setLabelText(i18n("Finding images for the weather wallpaper.") + QLatin1String("\n\n") + i18n("Adding image %1", wp.filePath())); Plasma::PackageStructure::Ptr structure = Plasma::Wallpaper::packageStructure(structureParent); res.append(new Plasma::Package(wp.filePath(), structure));