diff --git a/src/catalog/gettext/gettextexport.cpp b/src/catalog/gettext/gettextexport.cpp --- a/src/catalog/gettext/gettextexport.cpp +++ b/src/catalog/gettext/gettextexport.cpp @@ -300,6 +300,8 @@ while (max>=2 && itm->at(max-1)==QLatin1Char('\\')); } pos=max; + //Restore the max variable to the m_wordWrap - 2 value + max=m_wrapWidth-2; } //itm=list.insert(itm,itm->left(pos)); QString t=*itm; diff --git a/src/project/prefs_project_advanced.ui b/src/project/prefs_project_advanced.ui --- a/src/project/prefs_project_advanced.ui +++ b/src/project/prefs_project_advanced.ui @@ -1,4 +1,4 @@ - + project_advanced @@ -52,6 +52,26 @@ + + + + Word wrap: + + + + + + + Width used for the automatic msgfmg-like word wrap. Use the negative value '-1' to disable the word wrap. + + + -1 + + + 100000 + + + @@ -65,7 +85,7 @@ QFormLayout::ExpandingFieldsGrow - + Template files folder: @@ -93,7 +113,7 @@ - + Branch folder: @@ -127,7 +147,7 @@ - + Alternate translations folder: