diff options
Diffstat (limited to 'l10ntools/source/po.cxx')
-rw-r--r-- | l10ntools/source/po.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx index f8a191adb10d..f2ad01b3f68f 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -484,16 +484,9 @@ namespace // Check the validity of read entry bool lcl_CheckInputEntry(const GenPoEntry& rEntry) { - const OString sMsgCtxt = rEntry.getMsgCtxt(); - const sal_Int32 nFirstEndLine = sMsgCtxt.indexOf('\n'); - const sal_Int32 nLastEndLine = sMsgCtxt.lastIndexOf('\n'); - const sal_Int32 nLastDot = sMsgCtxt.lastIndexOf('.'); - const OString sType = sMsgCtxt.copy( nLastDot + 1 ); return !rEntry.getReference().isEmpty() && - nFirstEndLine > 0 && - nLastDot - nLastEndLine > 1 && - (sType == "text" || sType == "quickhelptext" || sType == "title")&& - !rEntry.getMsgId().isEmpty(); + !rEntry.getMsgCtxt().isEmpty() && + !rEntry.getMsgId().isEmpty(); } } |