Bug 464630

Summary: Multi-line strings are not extracted for translation
Product: [Applications] Welcome Center Reporter: zocsfxljsgpmiuaanz
Component: generalAssignee: Nate Graham <nate>
Status: RESOLVED FIXED    
Severity: normal CC: karl, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.27
Sentry Crash Report:

Description zocsfxljsgpmiuaanz 2023-01-22 06:29:12 UTC
SUMMARY
Multi-line strings in QML files are not extracted correctly for translation. More specifically, the description of KDE Connect and KRunner in the file "PowerfulWhenNeeded.qml" use multi-line strings and the resulting .po files only show the first line of the strings.
I didn't find any other examples of localized multi-line strings in QML files in other KDE repos, but it seems it isn't supported by the current KDE internationalization infrastructure (I mean, the script "extract-messages.sh" here https://invent.kde.org/sysadmin/l10n-scripty/-/blob/master/extract-messages.sh and/or xgettext).
Comment 2 Nate Graham 2023-01-23 22:58:03 UTC
Git commit 078062ba8c1907cd946b4ca90b47425d787d5003 by Nate Graham.
Committed on 23/01/2023 at 22:37.
Pushed by ngraham into branch 'master'.

Fix multiline translated text
FIXED-IN: 5.27

M  +24   -18   src/contents/ui/pages/PowerfulWhenNeeded.qml

https://invent.kde.org/plasma/plasma-welcome/commit/078062ba8c1907cd946b4ca90b47425d787d5003
Comment 3 Nate Graham 2023-01-23 22:59:38 UTC
Git commit ede3eb8004ab7728d748b6ef1181f4ab7651d252 by Nate Graham.
Committed on 23/01/2023 at 22:59.
Pushed by ngraham into branch 'Plasma/5.27'.

Fix multiline translated text
FIXED-IN: 5.27


(cherry picked from commit 078062ba8c1907cd946b4ca90b47425d787d5003)

M  +24   -18   src/contents/ui/pages/PowerfulWhenNeeded.qml

https://invent.kde.org/plasma/plasma-welcome/commit/ede3eb8004ab7728d748b6ef1181f4ab7651d252