Bug 413374

Summary: "timer finished" message gets saved in English to your config file and then won't display a translated version if you change the language later
Product: [Plasma] plasmashell Reporter: Alexander Potashev <aspotashev>
Component: Timer widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: cwo.kde, nate, plasma-bugs-null, yurchor
Priority: NOR    
Version First Reported In: 6.2.4   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
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.
Comment 3 TraceyC 2025-03-17 20:35:40 UTC
Migrating reports from kdeplasma-addon to plasmashell
Comment 4 Nate Graham 2025-05-28 20:07:32 UTC
Probably we should change the UI here so that it uses a translated "Timer Finished" message by default, and then the text field would be empty by default and only used for overriding this default text.