Bug 396774 - Lokalize automatically wraps long lines at 80
Summary: Lokalize automatically wraps long lines at 80
Status: RESOLVED FIXED
Alias: None
Product: lokalize
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.0
Platform: Ubuntu Linux
: NOR critical
Target Milestone: ---
Assignee: Simon Depiets
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-23 02:11 UTC by Hamidreza Jafari
Modified: 2018-07-31 03:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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