[Libreoffice-commits] core.git: l10ntools/source
Christian Lohmaier
lohmaier+LibreOffice at googlemail.com
Fri Apr 28 14:46:37 UTC 2017
l10ntools/source/po.cxx | 1 -
1 file changed, 1 deletion(-)
New commits:
commit 11468ea907f7114370438db87012fb74a355bc25
Author: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
Date: Fri Apr 28 16:45:12 2017 +0200
allow itemlist-method's multi-line msgid strings in msgctxt
otherwise pocheck will file on strings like like e.g.
#: analysis.src
msgctxt ""
"analysis.src\n"
"ANALYSIS_Weeknum\n"
"Returns the number of the calendar week in which the specified date occurs.\n"
"This function exists for interoperability with older Microsoft Excel documents, for new documents use WEEKNUM instead.\n"
"itemlist.text"
msgid ""
"Returns the number of the calendar week in which the specified date occurs.\n"
"This function exists for interoperability with older Microsoft Excel documents, for new documents use WEEKNUM instead."
msgstr ""
Change-Id: Ib64a989933ca42c5119b0ecf2339f693793d4e96
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx
index 87b78dd72467..7bfa070e64ce 100644
--- a/l10ntools/source/po.cxx
+++ b/l10ntools/source/po.cxx
@@ -491,7 +491,6 @@ bool lcl_CheckInputEntry(const GenPoEntry& rEntry)
const OString sType = sMsgCtxt.copy( nLastDot + 1 );
return !rEntry.getReference().isEmpty() &&
nFirstEndLine > 0 &&
- (nLastEndLine == nFirstEndLine || nLastEndLine == sMsgCtxt.indexOf('\n',nFirstEndLine+1)) &&
nLastDot - nLastEndLine > 1 &&
(sType == "text" || sType == "quickhelptext" || sType == "title")&&
!rEntry.getMsgId().isEmpty();
More information about the Libreoffice-commits
mailing list