diff options
author | Ztamas <zolnaitamas2000g@gmail.com> | 2012-11-18 12:07:58 +0100 |
---|---|---|
committer | Ztamas <zolnaitamas2000g@gmail.com> | 2012-11-18 14:15:15 +0100 |
commit | b0f07bbbc4f179d442ff96471669f02e82686657 (patch) | |
tree | e7b2e2eefa41fb987c541bc1e7c873b8ae41eec2 /l10ntools | |
parent | 124dc60e5519ee4d1c2454050b6f54a7b020905d (diff) |
Write source file into po entries' msgctxt
So (msgctxt, msgid) pair is unique in one po file
Change-Id: I64635dd7a6352300ed5fb6949a1b78c2a070c660
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/po.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx index df9efe31bc64..ce71207ec3e5 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -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; |