[Libreoffice-commits] core.git: l10ntools/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Oct 1 15:10:24 UTC 2018
l10ntools/source/po.cxx | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
New commits:
commit 59f4115122f70004d78a85b08607b9678b8fd6ca
Author: Andras Timar <andras.timar at collabora.com>
AuthorDate: Mon Oct 1 12:17:31 2018 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Oct 1 17:10:01 2018 +0200
fix of extension description l10n
Change-Id: Ica102309627fade2a064ee5516e84801affe4082
Reviewed-on: https://gerrit.libreoffice.org/61184
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
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;
More information about the Libreoffice-commits
mailing list