Bug 335105

Summary: Word puzzle: explicit concatenation of "%n folders(s)" and "%n file(s)"
Product: [Frameworks and Libraries] frameworks-kjobwidgets Reporter: Alexander Potashev <aspotashev>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: andrew.crouthamel
Priority: NOR    
Version First Reported In: 4.99.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot

Description Alexander Potashev 2014-05-20 22:59:19 UTC
In KWidgetJobTracker::Private::ProgressWidget::showTotals() in kdeui/jobs/kwidgetjobtracker.cpp, the separator between "%n folder(s)" and "%n file(s)" is hardcoded to "  ". I would like to be able to translate it into Russian as something like "X folders, Y files" or "X folders and Y files", but I can't do that in the current state of the source code.

This can be fixed by using another QCoreApplication::translate() to merge them, e.g. tr("%1 and %2").arg(folderCountText).arg(fileCountText).

There is the same problem in kdelibs of KDE SC 4.x (in the current HEAD of master).

Reproducible: Always
Comment 1 Alexander Potashev 2014-05-21 06:43:10 UTC
Created attachment 86739 [details]
Screenshot

Screenshot of GUI dialog where the concatenated string appears.
Comment 2 Andrew Crouthamel 2018-11-11 04:34:58 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Alexander Potashev 2018-11-11 14:12:44 UTC
Still not fixed in KF 5.52.0
Comment 4 Andrew Crouthamel 2018-11-12 03:06:56 UTC
Thanks for the update!