Bug 413374

Summary: Untranslatable popup "timer finished"
Product: [Plasma] kdeplasma-addons Reporter: Alexander Potashev <aspotashev>
Component: timerAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: normal CC: plasma-bugs, yurchor
Priority: NOR    
Version: 5.17.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: screenshot

Description Alexander Potashev 2019-10-23 19:57:08 UTC
Created attachment 123444 [details]
screenshot

SUMMARY
Untranslatable popup "timer finished".

STEPS TO REPRODUCE
1. Add "timer" widget
2. Start timer
3. Wait for completion

OBSERVED RESULT
See screenshot: notification title and description in English with Russian localization 100% complete and enabled.

EXPECTED RESULT
Notification in Russian.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Christoph Feck 2019-11-21 15:10:42 UTC
The text is part of the configuration. I haven't checked if user-visible strings in kcfg.xml files can be translated.

https://cgit.kde.org/kdeplasma-addons.git/tree/applets/timer/package/contents/config/main.xml#n38

If you clear the text in the configuration page, it should default to a translated version of the "Timer finished" message.

https://cgit.kde.org/kdeplasma-addons.git/tree/applets/timer/package/contents/ui/main.qml#n115
Comment 2 Alexander Potashev 2019-12-02 12:15:25 UTC
(In reply to Christoph Feck from comment #1)
> If you clear the text in the configuration page, it should default to a
> translated version of the "Timer finished" message.

This approach works.

However many users who once saw the English message "Timer finished" and had it saved in the configuration will now get the English variant forever. In my opinion such customizable notifications should be stored in configuration as a pair {bool customized; string customNotification;}, so that for users who do not customize it the message will follow the currently selected language.