l10ntools/source/po.cxx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)
New commits: commit 3ddd4502c4d4e234017e01ead26813caf81593e8 Author: Zolnai Tamás <[email protected]> Date: Thu Dec 13 15:32:02 2012 +0100 Fix adding keyid to po when read from file Change-Id: I29fdd23da97f1102974a6b5821c224264a37efc3 diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx index 8d51671..cdc2c98 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -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
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
