summaryrefslogtreecommitdiff
path: root/l10ntools/source
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2018-10-01 12:17:31 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-10-01 17:10:01 +0200
commit59f4115122f70004d78a85b08607b9678b8fd6ca (patch)
tree44ba72ef2e3aa3a520c00945f33d482833a01e89 /l10ntools/source
parent72f30d79bc58a1f3bc52d2ce01708765f1326416 (diff)
fix of extension description l10n
Change-Id: Ica102309627fade2a064ee5516e84801affe4082 Reviewed-on: https://gerrit.libreoffice.org/61184 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'l10ntools/source')
-rw-r--r--l10ntools/source/po.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx
index a0cdf2172df2..27daba097a42 100644
--- a/l10ntools/source/po.cxx
+++ b/l10ntools/source/po.cxx
@@ -203,7 +203,15 @@ void GenPoEntry::readFromFile(std::ifstream& rIFStream)
}
else if (sLine.startsWith("\"") && pLastMsg)
{
- *pLastMsg += lcl_GenNormString(sLine);
+ OString sReference;
+ if (!m_sReferences.empty())
+ {
+ sReference = m_sReferences.front();
+ }
+ if (pLastMsg != &m_sMsgCtxt || sLine != "\"" + sReference + "\\n\"")
+ {
+ *pLastMsg += lcl_GenNormString(sLine);
+ }
}
else
break;