Bug 343325

Summary: Allow jobs to set message when finished
Product: [Frameworks and Libraries] frameworks-kcoreaddons Reporter: Martin Klapetek <mklapetek>
Component: generalAssignee: Michael Pyne <mpyne>
Status: RESOLVED WORKSFORME    
Severity: normal CC: aacid, kdelibs-bugs-null, lasse.liehu, safa1996alfulaij
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Martin Klapetek 2015-01-26 12:46:44 UTC
Currently when any job with UI progress tracking ends, an awkward string is produced in Plasma from the job's description, like "Copying: Finished" or in kde4 times this was "Copying [Finished]". We cannot simply do "%1 Finished" because not all translations can safely translate that.

So it would be super awesome if KJob actually provided a way for the job to pass the "finished" string all in one piece, like "Copying Finished". This would also allow for better translations and better quite possibly better titles altogether. For jobs that would not have set the finished string, the current fallback would be used, eg "%1: Finished".

I'm not sure where this would fit the best, maybe emitResult() could take a string? Or a setter method on the job itself?
Comment 1 Safa Alfulaij 2018-01-26 04:36:37 UTC
I was looking into something in KI18n and found out this “Dynamic context”[1].
I think if we use these contexts and allow translators to have as many as they want, to later on define which one to use in Plasma notifications for example, that would be much better than a dedicated string for completion, or maybe incompletion, etc etc.

1: https://api.kde.org/frameworks/ki18n/html/prg_guide.html#dyn_ctxt
Comment 2 Justin Zobel 2022-11-15 22:58:36 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 3 Bug Janitor Service 2022-11-30 05:14:25 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2022-12-15 05:14:35 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!