Bug 396774

Summary: Lokalize automatically wraps long lines at 80
Product: [Applications] lokalize Reporter: Hamidreza Jafari <hamidrjafari>
Component: generalAssignee: Simon Depiets <sdepiets>
Status: RESOLVED FIXED    
Severity: critical CC: sdepiets
Priority: NOR    
Version First Reported In: 2.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Hamidreza Jafari 2018-07-23 02:11:37 UTC
Translation robot of a package I am translating refuses to accept line breaks for paragraphs longer than 80 characters. The text string should remain as is. Lokalize wraps all lines at 80 without providing an option for turning it on / off. It requires rework after every bit of translation to remove line breaks.
Comment 1 Simon Depiets 2018-07-24 02:53:00 UTC
There's actually an option for that in the code but it doesn't show up in the Project widget. I'm checking it
Comment 2 Simon Depiets 2018-07-24 03:03:41 UTC
Meanwhile you can add the following line in your project's .lokalize file

[RegExps]
WordWrap=-1

https://github.com/KDE/lokalize/commit/2fe86a2eb97153590bdc63564dc5a779a9490165
Comment 3 Simon Depiets 2018-07-30 01:38:20 UTC
Git commit b1988488c00a71286b52c9d6549cf607d3130b73 by Simon Depiets.
Committed on 30/07/2018 at 01:38.
Pushed by sdepiets into branch 'master'.

Add a project configuration menu entry for the Word Wrap feature

Summary:
There is a word wrap flag in the project.lokalize file but there was no ui widget to change it.

Reviewers: #localization, aacid, ltoscano, shaforostoff, mlaurent, huftis

Reviewed By: #localization, aacid

Tags: #localization

Differential Revision: https://phabricator.kde.org/D14311

M  +24   -4    src/project/prefs_project_advanced.ui

https://commits.kde.org/lokalize/b1988488c00a71286b52c9d6549cf607d3130b73
Comment 4 Simon Depiets 2018-07-31 03:06:04 UTC
Git commit 84e6644d4fc742c21de574eab5cd069c7a0f48c7 by Simon Depiets.
Committed on 31/07/2018 at 03:05.
Pushed by sdepiets into branch 'master'.

Add a project configuration menu entry for the Word Wrap feature

Summary:
There is a word wrap flag in the project.lokalize file but there was no ui widget to change it.

Reviewers: #localization, aacid, ltoscano, shaforostoff, mlaurent, huftis

Reviewed By: #localization, aacid

Tags: #localization

Differential Revision: https://phabricator.kde.org/D14311

M  +2    -0    src/catalog/gettext/gettextexport.cpp

https://commits.kde.org/lokalize/84e6644d4fc742c21de574eab5cd069c7a0f48c7
Comment 5 Simon Depiets 2018-07-31 03:15:31 UTC
Git commit 2c9be462edc2167e56a5ccb294413b6af0b2297c by Simon Depiets.
Committed on 31/07/2018 at 03:15.
Pushed by sdepiets into branch 'master'.

Add a project configuration menu entry for the Word Wrap feature

Summary:
There is a word wrap flag in the project.lokalize file but there was no ui widget to change it.

Reviewers: #localization, aacid, ltoscano, shaforostoff, mlaurent, huftis

Reviewed By: #localization, aacid

Tags: #localization

Differential Revision: https://phabricator.kde.org/D14311

M  +1    -1    src/catalog/gettext/gettextexport.cpp

https://commits.kde.org/lokalize/2c9be462edc2167e56a5ccb294413b6af0b2297c