Bug 511512

Summary: [Plasma Welcome]Showing wrong version of the preview text in an update
Product: [Applications] Welcome Center Reporter: Ahmet KAYA <neodeveloper27>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: nate, olib141
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The welcome screen of Plasma 6.5, showing wrong version of preview.

Description Ahmet KAYA 2025-11-02 12:03:57 UTC
Created attachment 186409 [details]
The welcome screen of Plasma 6.5, showing wrong version of preview.

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
In the update Welcome screen, middle preview screen does not return the translated version of the preview.

STEPS TO REPRODUCE
1. Update Plasma to 6.5 or newer
2. Reboot
3. Welcome for update opens, but it does not returns the translated version. 

OBSERVED RESULT
When downloading preview, only the English version of it returns.

EXPECTED RESULT
It should have detected system language and returned the translated one.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 43 / KDE Plasma 
KDE Plasma Version: 6.5
KDE Frameworks Version: 6.19.0
Qt Version: 6.10

ADDITIONAL INFORMATION
Comment 1 Oliver Beard 2025-11-02 12:17:26 UTC
I'm afraid I do not have time until later today to post instructions, but what I would need to know is the value of QString languageCode on line 147: https://invent.kde.org/plasma/plasma-welcome/-/blob/master/src/release.cpp?ref_type=heads#L147

This can be found using GDB, placing a breakpoint on that line in release.cpp and printing the contents of the variable, which might be complex due to being a QString.

I will provide better instructions later today.

Alternatively, Welcome Center could be built with qDebug() << languageCode; inserted below that line, and it would print it when ran in the terminal.
Comment 2 Oliver Beard 2025-11-02 17:00:22 UTC
Unfortunately I'm unable to reproduce the issue after changing the language and restarting. I assume that the 'tr' language code is correctly inserted into the URL.

We'd need to know the language code that it detects on your system. Unfortunately placing a GDB breakpoint wouldn't work because release builds appear to optimise it away. You'd need to build plasma-welcome yourself, and then place a qDebug() that prints the language code.

I'll add a way for release builds to log this information. If you're unwilling or unable to build a modified application yourself, we would at least be able to know when 6.6 releases, and more easily as well for any future such issues that occur.
Comment 3 Bug Janitor Service 2025-11-02 18:04:32 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-welcome/-/merge_requests/232
Comment 4 Oliver Beard 2025-11-03 22:14:49 UTC
Git commit 1e20b74e7945c22e47ad86c593afd6ce5c945881 by Oliver Beard.
Committed on 03/11/2025 at 22:06.
Pushed by olib into branch 'master'.

Add logging categories and enhanced logging

This commit adds proper support for Qt logging categories to Welcome Center.

Additional logging is added to KDED for what we're doing when we're launching, as we've seen bugs or non-obvious behaviour in this area before.

In order to help with release preview localisation issues (see: CCBUG), logging is also added to Release::getPreview().

M  +7    -0    CMakeLists.txt
M  +8    -0    src/CMakeLists.txt
M  +8    -0    src/kded/CMakeLists.txt
M  +9    -0    src/kded/daemon.cpp
M  +6    -0    src/public/CMakeLists.txt
M  +7    -5    src/public/controller.cpp
M  +4    -2    src/public/utils.cpp
M  +5    -2    src/release.cpp

https://invent.kde.org/plasma/plasma-welcome/-/commit/1e20b74e7945c22e47ad86c593afd6ce5c945881
Comment 5 Bug Janitor Service 2025-11-04 00:43:06 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-welcome/-/merge_requests/233
Comment 6 Oliver Beard 2025-11-04 00:44:25 UTC
In 6.5.2, Welcome Center will now log the URL used for the announcement preview. Just run it in a terminal with:

    plasma-welcome --post-update

and you should see it.
Comment 7 Oliver Beard 2025-11-04 00:51:03 UTC
Git commit 6d18eea084ca76b4263cb1d1fe54b94996e98d58 by Oliver Beard.
Committed on 04/11/2025 at 00:41.
Pushed by olib into branch 'Plasma/6.5'.

Add logging categories and enhanced logging

This commit adds proper support for Qt logging categories to Welcome Center.

Additional logging is added to KDED for what we're doing when we're launching, as we've seen bugs or non-obvious behaviour in this area before.

In order to help with release preview localisation issues (see: CCBUG), logging is also added to Release::getPreview().


(cherry picked from commit 1e20b74e7945c22e47ad86c593afd6ce5c945881)

Co-authored-by: Oliver Beard <olib141@outlook.com>

M  +7    -0    CMakeLists.txt
M  +8    -0    src/CMakeLists.txt
M  +8    -0    src/kded/CMakeLists.txt
M  +9    -0    src/kded/daemon.cpp
M  +6    -0    src/public/CMakeLists.txt
M  +7    -5    src/public/controller.cpp
M  +4    -2    src/public/utils.cpp
M  +5    -2    src/release.cpp

https://invent.kde.org/plasma/plasma-welcome/-/commit/6d18eea084ca76b4263cb1d1fe54b94996e98d58
Comment 8 Bug Janitor Service 2025-11-19 03:46:59 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2025-12-04 03:46:09 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.