summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/po.cxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx
index c59a4f8a4e31..41167bc62fcc 100644
--- a/l10ntools/source/po.cxx
+++ b/l10ntools/source/po.cxx
@@ -813,14 +813,7 @@ void PoIfstream::readEntry( PoEntry& rPoEntry )
(sType == "text" || sType == "quickhelptext" || sType == "title")&&
!aGenPo.getMsgId().isEmpty() )
{
- if( rPoEntry.m_pGenPo )
- {
- *(rPoEntry.m_pGenPo) = aGenPo;
- }
- else
- {
- rPoEntry.m_pGenPo = new GenPoEntry( aGenPo );
- }
+ //Generate keyid if po file not includes it
const OString sExtractCom = aGenPo.getExtractCom();
if( sExtractCom.isEmpty() ||
( sExtractCom.getLength() != 4 &&
@@ -832,6 +825,14 @@ void PoIfstream::readEntry( PoEntry& rPoEntry )
aGenPo.getReference() + sMsgCtxt +
aGenPo.getMsgId() ) );
}
+ if( rPoEntry.m_pGenPo )
+ {
+ *(rPoEntry.m_pGenPo) = aGenPo;
+ }
+ else
+ {
+ rPoEntry.m_pGenPo = new GenPoEntry( aGenPo );
+ }
rPoEntry.m_bIsInitialized = true;
}
else