Stop multiline strings in PO files being displayed cut up in Lokalize translation editor.
requested to merge finw/lokalize:fix_multiline_po_file_strings_show_with_newlines_in_translation_editor into master
When viewing the string in the editor, it should be the job of the final processor of the string to break the string onto multiple lines at a sensible point. The line breaks should not be hard-coded at an arbitrary point by something which then passes the strings to be displayed.
This doesn't change how files are read and written to, only how the data is displayed.
Before:
After:
The screenshots assume a PO file with this as an entry (copy it into an empty file with .po extension and open it in Lokalize to check):
#: 1
msgid ""
"We're no strangers to love You know the rules and so do I (do I) A full commit"
"ment's what I'm thinking of You wouldn't get this from any other guy I just w"
"anna tell you how I'm feeling Gotta make you understand Never gonna give you "
"up Never gonna let you down Never gonna run around and desert you Never gonna "
"make you cry Never gonna say goodbye Never gonna tell a lie and hurt you We'v"
"e known each other for so long Your heart's been aching, but you're too shy to"
" say it (say it) Inside, we both know what's been going on (going on) We know "
"the game and we're gonna play it."
msgstr ""
"Placeat quia dolores occaecati sed ratione rem provident modi. Quis quas asper"
"iores sunt nesciunt optio odit sunt voluptatem. Aperiam et totam voluptatum at"
" dolores id. Non sed nemo atque eaque. Sed distinctio quibusdam assumenda. Qua"
"m qui rerum amet qui repellat. Aspernatur error et explicabo. Quia enim quae "
"nam omnis qui et. Voluptatibus aut qui facilis. Dolorum veritatis sequi conseq"
"uatur reiciendis omnis exercitationem ut eos. Impedit voluptatem totam eos. Do"
"lorum excepturi est voluptas debitis. Quae aut ut sit. Vero exercitationem di"
"gnissimos tenetur deserunt dolor. Necessitatibus aut numquam ex eos qui. Hic n"
"on veritatis ipsum et voluptates reiciendis. Impedit veritatis iste minima acc"
"usantium. Aliquam qui dolorem debitis veritatis impedit maiores voluptatem. A"
"ut rerum et veniam qui facere. Veniam voluptatem in dolore. Tempore occaecati"
" deleniti ex quia ea. Quas et qui vel natus cupiditate officiis iure. Ut conse"
"quatur corrupti deleniti."
Edited by Finley Watson