diff options
author | Andras Timar <andras.timar@collabora.com> | 2018-10-01 12:17:31 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-11-21 13:40:01 +0100 |
commit | 6592cbe220e188bebf33cacce234923dca8eeaba (patch) | |
tree | 99ff60dc9b930f7065568163409732660ecbe2a6 /l10ntools/source | |
parent | 2e7c36051ea0980252238def5c48481fd72ab0be (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>
(cherry picked from commit 59f4115122f70004d78a85b08607b9678b8fd6ca)
Reviewed-on: https://gerrit.libreoffice.org/63600
Diffstat (limited to 'l10ntools/source')
-rw-r--r-- | l10ntools/source/po.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx index 51305c64badb..f1e37d53c20f 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -202,7 +202,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; |