From 11468ea907f7114370438db87012fb74a355bc25 Mon Sep 17 00:00:00 2001 From: Christian Lohmaier Date: Fri, 28 Apr 2017 16:45:12 +0200 Subject: 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 --- l10ntools/source/po.cxx | 1 - 1 file changed, 1 deletion(-) (limited to 'l10ntools') 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(); -- cgit v1.2.3