Bug 464630 - Multi-line strings are not extracted for translation
Summary: Multi-line strings are not extracted for translation
Status: RESOLVED FIXED
Alias: None
Product: Welcome Center
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Nate Graham
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-22 06:29 UTC by zocsfxljsgpmiuaanz
Modified: 2023-01-23 22:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.27
Sentry Crash Report:


Attachments

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