diff options
author | jan Iversen <jani@documentfoundation.org> | 2016-05-04 12:19:46 +0000 |
---|---|---|
committer | jan Iversen <jani@documentfoundation.org> | 2016-05-04 12:26:29 +0000 |
commit | 709ef9f91876072407c587db63851f6da73d265f (patch) | |
tree | 523b22e3730591b1b00cc507a7a6db88ca67bd1b /l10ntools/source | |
parent | d916619658a2486ee8cdb5d819a6f0308ee07ccf (diff) |
genLang .tree files got "help_section"
Added text type to .tree files
fixed line wrap problem when saving to .pot
Change-Id: I551521bb81e21724edf8f3bfa8aba1516ca7e879
Diffstat (limited to 'l10ntools/source')
-rw-r--r-- | l10ntools/source/gConvPo.cxx | 5 | ||||
-rw-r--r-- | l10ntools/source/gConvTree.cxx | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/l10ntools/source/gConvPo.cxx b/l10ntools/source/gConvPo.cxx index 431b58ee8685..40be9f9e5373 100644 --- a/l10ntools/source/gConvPo.cxx +++ b/l10ntools/source/gConvPo.cxx @@ -232,8 +232,9 @@ void convert_po::save(const string& sFileName, << "\"" << sENUStext.substr(oldPos, newPos - oldPos); oldPos = newPos; } - outFile << "\"" << endl - << "\"" << sENUStext.substr(oldPos) << "\"" << endl + if (oldPos) + outFile << "\"" << endl << "\""; + outFile << sENUStext.substr(oldPos) << "\"" << endl << "msgstr \"" << sText << "\"" << endl; } diff --git a/l10ntools/source/gConvTree.cxx b/l10ntools/source/gConvTree.cxx index f13d2e7a5aef..5605e1e6a25a 100644 --- a/l10ntools/source/gConvTree.cxx +++ b/l10ntools/source/gConvTree.cxx @@ -105,7 +105,7 @@ void convert_tree::setString(char *yytext) case STATE_VAL_TITLE: string sText = copySourceSpecial(yytext, 1); sText.erase(sText.size()-1); - mcMemory.setSourceKey(miLineNo, msSourceFile, msId, sText, "", "", "", mbMergeMode); + mcMemory.setSourceKey(miLineNo, msSourceFile, msId, sText, "", "help_section", "", mbMergeMode); break; } meStateVal = STATE_VAL_NONE; |