[Libreoffice-commits] core.git: l10ntools/source
jan Iversen
jani at documentfoundation.org
Wed May 4 12:27:33 UTC 2016
l10ntools/source/gConvPo.cxx | 5 +++--
l10ntools/source/gConvTree.cxx | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 709ef9f91876072407c587db63851f6da73d265f
Author: jan Iversen <jani at documentfoundation.org>
Date: Wed May 4 12:19:46 2016 +0000
genLang .tree files got "help_section"
Added text type to .tree files
fixed line wrap problem when saving to .pot
Change-Id: I551521bb81e21724edf8f3bfa8aba1516ca7e879
diff --git a/l10ntools/source/gConvPo.cxx b/l10ntools/source/gConvPo.cxx
index 431b58e..40be9f9 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 f13d2e7..5605e1e 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;
More information about the Libreoffice-commits
mailing list