Bug 507976

Summary: Internationalization missing / not loaded
Product: [Applications] kcron Reporter: Matthieu Carteron <rubisetcie>
Component: generalAssignee: Gary Meyer <gary>
Status: RESOLVED FIXED    
Severity: minor CC: victorr2007
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Neon
Fix
Rosa OS, kcron-25.08.0
kcron with patch.

Description Matthieu Carteron 2025-08-07 12:06:21 UTC
SUMMARY
In the System Settings application, when I go to the "Task Scheduler" section (handled by KCron), all the text appears in english instead of the system language.
It's like the translation ".mo" file isn't correctly loaded by KCron, although the aformentioned text appears well translated in the source code.

STEPS TO REPRODUCE
1. Open System Settings
2. Open the Task Scheduler section
3. Observe the text (for example, "User Schedule", "System Schedule")

OBSERVED RESULT
The texts appears in english.

EXPECTED RESULT
The text should appears localized in the system language.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.16.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
I insist it's a translation loading bug, and certainly not a case of forgotten or missing translation by the localization team: the strings are well translated in the KCron source code! Just not loaded once built.
If needed, my system language is French.
Comment 1 Bug Janitor Service 2025-08-07 12:19:29 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/kcron/-/merge_requests/40
Comment 2 Nicolas Fella 2025-08-07 12:31:46 UTC
Git commit 70a3a54949505e4fb53ed01c0855eca55e4d45a1 by Nicolas Fella.
Committed on 07/08/2025 at 12:18.
Pushed by ltoscano into branch 'master'.

Fix translation catalog name

For QML KCMs the catalog name must match the plugin id

M  +1    -1    CMakeLists.txt
M  +1    -1    Messages.sh

https://invent.kde.org/system/kcron/-/commit/70a3a54949505e4fb53ed01c0855eca55e4d45a1
Comment 3 Luigi Toscano 2025-08-07 12:36:48 UTC
Git commit 0ce82b6ef4b9eae4dd0371bed885eeba3bfef09f by Luigi Toscano.
Committed on 07/08/2025 at 12:34.
Pushed by ltoscano into branch 'release/25.08'.

Fix translation catalog name

For QML KCMs the catalog name must match the plugin id


(cherry picked from commit 70a3a54949505e4fb53ed01c0855eca55e4d45a1)

Co-authored-by: Nicolas Fella <nicolas.fella@gmx.de>

M  +1    -1    CMakeLists.txt
M  +1    -1    Messages.sh

https://invent.kde.org/system/kcron/-/commit/0ce82b6ef4b9eae4dd0371bed885eeba3bfef09f
Comment 4 Victor Ryzhykh 2025-08-14 11:06:50 UTC
Translation into other languages has not worked in kcron for a very long time.
I've been fixing this with a patch since version 24.12.0.
Comment 5 Victor Ryzhykh 2025-08-14 11:08:05 UTC
Created attachment 184066 [details]
Neon

It doesn't help.
Here is an image of Neon OS installed from install image https://mirrors.xtom.ee/kde-application/neon/images/unstable/20250803-1148/neon-unstable-20250803-1148.iso
And now updated to the latest state in the master branch.
The kcron package is made from these sources https://origin.archive.neon.kde.org/unstable/pool/main/k/kcron/kcron_25.04.3+p24.04+vunstable+git20250813.0206.orig.tar.xz
There is no translation in kcron.
Now I have remade the patch for my kcron build, version 25.08.0.
Just made a package, but forgot to replace kcron with kcm_kcron in the patch.

https://invent.kde.org/system/kcron/-/issues/?sort=updated_desc&state=closed&first_page_size=20
Comment 6 Victor Ryzhykh 2025-08-14 11:08:56 UTC
Created attachment 184067 [details]
Fix

My patch.
Comment 7 Victor Ryzhykh 2025-08-14 11:20:52 UTC
I'll double check now.
I'll make a kcron package without the patch.
Comment 8 Victor Ryzhykh 2025-08-14 11:33:22 UTC
Created attachment 184068 [details]
Rosa OS, kcron-25.08.0

Disabled the patch and made the package kcron-25.08.0.
Translation is missing.
Comment 9 Victor Ryzhykh 2025-08-14 11:40:23 UTC
Created attachment 184069 [details]
kcron with patch.

I included the patch in the package again.
Now the translation to kcron has appeared.
Comment 10 Matthieu Carteron 2025-08-14 12:52:48 UTC
GG. Thanks for the fix.
Comment 11 Victor Ryzhykh 2025-08-16 08:17:07 UTC
This commit fixed the translation display.
https://invent.kde.org/system/kcron/-/merge_requests/43