https://bugs.kde.org/show_bug.cgi?id=490802
Bug ID: 490802
Summary: Lokalize adds newlines to source and target language
translations when reading from PO files
Classification: Applications
Product: lokalize
Version: unspecified
Platform: Arch Linux
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 171971
--> https://bugs.kde.org/attachment.cgi?id=171971&action=edit
PO file with long strings
SUMMARY
PO files can have their source and target strings split over multiple lines (if
the string is long, for instance). Lokalize reads them as having newlines added
to the strings themselves, rather than processing the PO files and stripping
out those newlines
STEPS TO REPRODUCE
1. Open a simple PO file with a long untranslated source string
2. Make a change that counts as a translation of any string
3. Save the file
4. Close Lokalize
5. Reopen Lokalize and the file
OBSERVED RESULT
Both source and target strings that are long have been modified by Lokalize
when saving the file, correctly formatting them for PO strings over multiple
lines. But the data is not parsed properly when reading the data back, and
displays with the newlines still in the strings.
EXPECTED RESULT
Correctly parse strings.
SOFTWARE/OS VERSIONS
Lokalize version: git main
Included is a simple PO file you can test with.
--
You are receiving this mail because:
You are watching all bug changes.