summaryrefslogtreecommitdiff
path: root/l10ntools/source/helpmerge.cxx
diff options
context:
space:
mode:
authorAndras Bartek <barteka13@gmail.com>2012-09-06 21:11:23 +0200
committerAndras Timar <atimar@suse.com>2012-09-06 21:15:02 +0200
commit4ced2d99db7ac1be3af8c114757abf3caae1b555 (patch)
treed803a6db8c827d206b595ca9430ed5821e8a07dc /l10ntools/source/helpmerge.cxx
parent23cd24bd4d4df9247f8f0496f9934a2ce6d110dd (diff)
fdo#52246 let helpex use gsicheck's tag checker
So the build will not break on translations errors in help. English segment will be used, when the localized segment has fatal error in it, e.g. a tag error that results in invalid xml. Change-Id: I8a74649d1f00f6379a7244f2582d27b8a437cd2f
Diffstat (limited to 'l10ntools/source/helpmerge.cxx')
-rw-r--r--l10ntools/source/helpmerge.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/l10ntools/source/helpmerge.cxx b/l10ntools/source/helpmerge.cxx
index 6f4071e32053..8e8d33fae0cb 100644
--- a/l10ntools/source/helpmerge.cxx
+++ b/l10ntools/source/helpmerge.cxx
@@ -52,6 +52,7 @@
#include "common.hxx"
#include "helper.hxx"
+#include "gsicheck.hxx"
#if OSL_DEBUG_LEVEL > 2
void HelpParser::Dump(XMLHashMap* rElem_in)
@@ -380,9 +381,12 @@ void HelpParser::ProcessHelp( LangHashMap* aLangHM , const rtl::OString& sCur ,
{
if( pXMLElement != NULL )
{
- data = new XMLData( sNewdata , NULL , true ); // Add new one
- pXMLElement->RemoveAndDeleteAllChildren();
- pXMLElement->AddChild( data );
+ if (check(pEntrys->GetSDF(sCur),pEntrys->GetNLine(sCur)))
+ {
+ data = new XMLData( sNewdata , NULL , true ); // Add new one
+ pXMLElement->RemoveAndDeleteAllChildren();
+ pXMLElement->AddChild( data );
+ }
aLangHM->erase( sCur );
}
}