summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000g@gmail.com>2012-11-18 14:42:04 +0100
committerZolnai Tamás <zolnaitamas2000g@gmail.com>2012-11-18 14:42:04 +0100
commitc48c4ace3630451c771afa20080f9bfb7ba05c03 (patch)
tree4fb941b0492df936967707a2105584d4c7bb79a7 /l10ntools
parentd15706ec0ac0e1eaec1b95fe0271d17393915e32 (diff)
Correct skipping source file line of msgctxt
Change-Id: I7aed7a75c6e9b36efca9837c0137075065bcd1e6
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/po.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx
index df9efe31bc64..648634c2f569 100644
--- a/l10ntools/source/po.cxx
+++ b/l10ntools/source/po.cxx
@@ -252,10 +252,12 @@ void GenPoEntry::readFromFile(std::ifstream& rIFStream)
m_sMsgStr = lcl_GenNormString(sLine.copy(7));
pLastMsg = &m_sMsgStr;
}
- else if (sLine.startsWith("\"") && pLastMsg &&
- (pLastMsg != &m_sMsgCtxt || sLine != "\"" + m_sReference + "\"") )
+ else if (sLine.startsWith("\"") && pLastMsg)
{
- *pLastMsg += lcl_GenNormString(sLine);
+ if (pLastMsg != &m_sMsgCtxt || sLine != "\"" + m_sReference + "\\n\"")
+ {
+ *pLastMsg += lcl_GenNormString(sLine);
+ }
}
else
break;