Bug 413374 - "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
Summary: "timer finished" message gets saved in English to your config file and then w...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Timer widget (other bugs)
Version First Reported In: 6.2.4
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-23 19:57 UTC by Alexander Potashev
Modified: 2025-05-28 20:07 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot (7.10 KB, image/jpeg)
2019-10-23 19:57 UTC, Alexander Potashev
Details

Note You need to log in before you can comment on or make changes to this bug.
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.