https://bugs.kde.org/show_bug.cgi?id=506225
Bug ID: 506225
Summary: Multi-line string not extracted for translation
Classification: Applications
Product: Welcome Center
Version First unspecified
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Target Milestone: ---
Created attachment 182696
--> https://bugs.kde.org/attachment.cgi?id=182696&action=edit
Screenshot of Welcome Center translated to Brazilian Portuguese, with a
red-highlighting box around the problematic message
SUMMARY
The multi-line string from [1] is not being extract as whole to translation
files. So, instead of extracting something like:
---
Plasma is an extremely feature-rich environment, designed to super-charge your
productivity!
Click the cards below to see just a smattering of what it can do for you:
---
only the following is extracted:
---
Plasma is an extremely feature-rich environment, designed to super-charge your
productivity!
---
Notice how it is trimmed in after newline. Even if the translator translate it,
the built software won't show any translation at all for this message (because
the whole message is not found in the translation file when building the
Welcome Center).
For instance, the Brazilian Portuguese (pt_BR) translation file [2] has the
first line translated for a year now and that's it -- the second line is
missing.
As an attachment is a screenshot of Welcome Center 6.4.1 translated to
Brazilian Portuguese, but this problematic message is not showing translated --
and is not available at all.
[1]
https://invent.kde.org/plasma/plasma-welcome/-/blob/e5820bb3/src/qml/pages/PowerfulWhenNeeded.qml#L17-18
[2]
https://invent.kde.org/plasma/plasma-welcome/-/blob/98a458b9/po/pt_BR/plasma-welcome.po#L637
STEPS TO REPRODUCE
1. Open the Welcome Center in pt_BR (LC_ALL=pt_BR.utf-8 ...)
2. Generate POT file: $ podir=po XGETTEXT='xgettext --kde --from-code UTF-8'
bash ./Messages.sh
OBSERVED RESULT
After xgettext run, the generated POT file and the updated PO files still won't
have the whole message available for translation.
EXPECTED RESULT
For the whole string be available for translation.
SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.3-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
plasma-welcome-fedora-6.3.4-1.fc42.noarch
plasma-welcome-6.4.0-1.fc42.x86_64
ADDITIONAL INFORMATION
Same issue as the bug report #464630, but different string.
--
You are receiving this mail because:
You are watching all bug changes.