Bug 440797

Summary: string is not translated in the astronomical events plugin
Product: [Plasma] plasmashell Reporter: grouchomarx.fr
Component: Digital Clock widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: aacid, aspotashev, nate, yurchor
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=399038
Latest Commit: Version Fixed In: 5.23
Sentry Crash Report:

Description grouchomarx.fr 2021-08-09 16:54:09 UTC
Hello

It seems that the "Show:" label in the settings is not translated in any languages even though it has a translation in the plasma_calendar_astronomicalevents.po file.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.3
Comment 1 Nate Graham 2021-08-10 16:23:17 UTC
Similar to Bug 399038.

No idea how to fix this to make them translatable though. I don't know anything about how the localization system works in this case. CCing a few people who might.
Comment 2 Albert Astals Cid 2021-08-10 21:10:49 UTC
This has nothing to do with 399038

399038 is about missing strings in the translation catalog

This is about a string that is translated in the translation catalog not being used (probably because the catalog is not set in the qml file somehow).

i.e. i18n("Show:") needs to be like i18nd like the other two transltable strings in that config dialog.
Comment 3 Bug Janitor Service 2021-08-10 21:38:01 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/83
Comment 4 Nate Graham 2021-08-10 21:51:15 UTC
Git commit 61d8e7ece72e93abe47c67d74f17db184c818348 by Nate Graham.
Committed on 10/08/2021 at 21:36.
Pushed by ngraham into branch 'master'.

[astronomical events plugin] Make "Show:" label translatable

...By setting the translation catalog, as other strings in this file do.
FIXED-IN: 5.23

M  +1    -1    plasmacalendarplugins/astronomical/config/qml/AstronomicalEventsConfig.qml

https://invent.kde.org/plasma/kdeplasma-addons/commit/61d8e7ece72e93abe47c67d74f17db184c818348