New lines in forms break LRT and PO localization files
Original Reporter info from Mantis: dezlov
-
Reporter name: Denis Kozlov
Original Reporter info from Mantis: dezlov
- Reporter name: Denis Kozlov
Description:
If we add new line characters (#10 (closed) or #13 (closed) or #13 (closed)#10 (closed)) to TLabel.Caption (by editing *.LFM file), the resulting *.LRT and *.PO files are broken.
In such case, *.LRT file will contain literal new line characters (not escaped like in *.RST), which seem to be causing cascading problems in *.PO files:
- Parts of multi-line captions appear as new text elements in the PO file, without context/comments.
- msgid "" which identifies the header of PO file gets populated with parts of multi-line captions when auto-updaing PO file, appending more and more data on every update (try re-saving the form multiple times).