diff options
Diffstat (limited to 'l10ntools/source/merge.cxx')
-rw-r--r-- | l10ntools/source/merge.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/l10ntools/source/merge.cxx b/l10ntools/source/merge.cxx index 138846016b02..168f5f1feb73 100644 --- a/l10ntools/source/merge.cxx +++ b/l10ntools/source/merge.cxx @@ -158,6 +158,7 @@ MergeDataFile::MergeDataFile( printf("Warning : Can't open %s\n", rFileName.getStr()); return; } + std::size_t nLine=0; while (!aInputStream.eof()) { std::string buf; @@ -178,11 +179,12 @@ MergeDataFile::MergeDataFile( const rtl::OString sTEXT = sLine.getToken( 0, '\t', n ); // token 10 const rtl::OString sQHTEXT = sLine.getToken( 1, '\t', n ); // token 12 const rtl::OString sTITLE = sLine.getToken( 0, '\t', n ); // token 13 + const rtl::OString sSDF(buf.data(),buf.length()); if (!nLANG.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("en-US"))) { aLanguageSet.insert(nLANG); - InsertEntry( sTYP, sGID, sLID, sPFO, nLANG, sTEXT, sQHTEXT, sTITLE, filename, bCaseSensitive ); + InsertEntry( sTYP, sGID, sLID, sPFO, nLANG, sTEXT, sQHTEXT, sTITLE, filename, bCaseSensitive, sSDF, ++nLine); } } } @@ -250,7 +252,8 @@ void MergeDataFile::InsertEntry( const rtl::OString &rLID, const rtl::OString &rPFO, const rtl::OString &nLANG, const rtl::OString &rTEXT, const rtl::OString &rQHTEXT, const rtl::OString &rTITLE , - const rtl::OString &rInFilename , bool bCaseSensitive + const rtl::OString &rInFilename , bool bCaseSensitive, + const rtl::OString &rSDFLine, const std::size_t nLine ) { MergeData *pData; @@ -281,7 +284,7 @@ void MergeDataFile::InsertEntry( } // finaly insert the cur string - pFEntrys->InsertEntry( nLANG , rTEXT, rQHTEXT, rTITLE ); + pFEntrys->InsertEntry( nLANG , rTEXT, rQHTEXT, rTITLE, rSDFLine, nLine ); } rtl::OString MergeDataFile::CreateKey(const rtl::OString& rTYP, const rtl::OString& rGID, |