Write source file into po entries' msgctxt

So (msgctxt, msgid) pair is unique in one po file

Change-Id: I64635dd7a6352300ed5fb6949a1b78c2a070c660
This commit is contained in:
Ztamas 2012-11-18 12:07:58 +01:00
parent 124dc60e55
commit b0f07bbbc4

View file

@ -255,7 +255,10 @@ void GenPoEntry::readFromFile(std::ifstream& rIFStream)
else if (sLine.startsWith("\"") && pLastMsg &&
(pLastMsg != &m_sMsgCtxt || sLine != "\"" + m_sReference + "\"") )
{
*pLastMsg += lcl_GenNormString(sLine);
if ( pLastMsg != &m_sMsgCtxt || sLine != "\"" + m_sReference + "\\n\"" )
{
*pLastMsg += lcl_GenNormString(sLine);
}
}
else
break;