There is a word wrap flag in the project.lokalize file but there was no ui widget to change it.
FEATURE: 396774
aacid | |
ltoscano | |
shaforostoff | |
mlaurent | |
huftis |
Localization |
There is a word wrap flag in the project.lokalize file but there was no ui widget to change it.
FEATURE: 396774
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
I hadn’t have a chance to take a look at this before now. The feature for disabling word-wrapping is very welcome (it will lead to much cleaner SVN diffs), but the word-wrapping in general seems buggy for small (positive) numbers. If I set the word-wrapping to 3 and save the PO file (I tested this with lokalize.po), Lokalize promptly 1) deletes to contents of the PO file, 2) starts using 100% CPU and eating more and more memory, until 3) my system runs out of memory and freezes/crashes (needing a hard reboot).
There is indeed a bug in the wrapper feature; the size of the word wrap length is reduced by 1 everytime a \\ character is encountered in order not to cut a \n in a string for instance.
So if you start with a 6 length, you'll reduce the length to 5 on the first \\, then 4, 3, 2, 1, 0. Then infinite loop @ 0.
https://github.com/KDE/lokalize/blob/master/src/catalog/gettext/gettextexport.cpp