Kaydet (Commit) 3ddd4502 authored tarafından Zolnai Tamás's avatar Zolnai Tamás

Fix adding keyid to po when read from file

Change-Id: I29fdd23da97f1102974a6b5821c224264a37efc3
üst caa03b3c
......@@ -793,14 +793,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 &&
......@@ -812,6 +805,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment