diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2017-04-28 16:45:12 +0200 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2017-04-28 16:46:00 +0200 |
commit | 11468ea907f7114370438db87012fb74a355bc25 (patch) | |
tree | 7026164731476432b4c9b32da9b78f00ff7cd51d /l10ntools | |
parent | 1e451bb6d12677beece573512f5af700c282b25e (diff) |
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
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/po.cxx | 1 |
1 files changed, 0 insertions, 1 deletions
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(); |