diff options
author | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2012-12-09 22:39:21 +0100 |
---|---|---|
committer | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2012-12-09 22:40:51 +0100 |
commit | 38364f5adc77c516721ad26297562d0b1bb66b8d (patch) | |
tree | 98f8da2f8e6828b4f30c70c605acc850cfe445b5 /l10ntools | |
parent | c03c144d4a8453d0b4e94def8d0f5780d07643b7 (diff) |
Revert "Make sure all list item is stored"
This reverts commit cd8948d1fd4430bc4186b3525eaec7d531da3fb2.
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/export.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx index 061d8e634f5d..c709acec06ce 100644 --- a/l10ntools/source/export.cxx +++ b/l10ntools/source/export.cxx @@ -1473,13 +1473,6 @@ sal_Bool Export::PrepareTextToMerge(rtl::OString &rText, sal_uInt16 nTyp, pResData->sGId = pResData->sGId + rtl::OString('.'); pResData->sGId = pResData->sGId + sOldId; nTyp = STRING_TYP_TEXT; - if (rLangIndex == "en-US") - { - aOrigListItems.insert( - std::pair<OString,OString>( - pResData->sId + pResData->sGId + pResData->sResTyp, - rText.copy(nStart+1,nEnd-nStart-1))); - } } break; case STRING_TYP_TEXT : @@ -1538,6 +1531,7 @@ sal_Bool Export::PrepareTextToMerge(rtl::OString &rText, sal_uInt16 nTyp, } PFormEntrys *pEntrys = pMergeDataFile->GetPFormEntrys( pResData ); + const OString sKey = pResData->sId + pResData->sGId + pResData->sResTyp; pResData->sId = sOldId; pResData->sGId = sOldGId; pResData->sResTyp = sOldTyp; @@ -1555,6 +1549,9 @@ sal_Bool Export::PrepareTextToMerge(rtl::OString &rText, sal_uInt16 nTyp, return sal_False; // no data found } + if (rLangIndex == "en-US") + aOrigListItems.insert(std::pair<OString,OString>(sKey,rText.copy(nStart+1,nEnd-nStart-1))); + if (Export::isSourceLanguage(rLangIndex)) return sal_False; |