|
|
|
@ -139,8 +139,8 @@ bool TsHandler::endElement( const TQString& /* namespaceURI */,
|
|
|
|
|
accum.utf8(), TQString::null, TRUE,
|
|
|
|
|
MetaTranslatorMessage::Unfinished) );
|
|
|
|
|
else
|
|
|
|
|
tor->insert( MetaTranslatorMessage(context.ascii(), "",
|
|
|
|
|
accum.ascii(), TQString::null, FALSE,
|
|
|
|
|
tor->insert( MetaTranslatorMessage(context.local8Bit(), "",
|
|
|
|
|
accum.local8Bit(), TQString::null, FALSE,
|
|
|
|
|
MetaTranslatorMessage::Unfinished) );
|
|
|
|
|
}
|
|
|
|
|
} else if ( qName == TQString("translation") ) {
|
|
|
|
@ -151,8 +151,8 @@ bool TsHandler::endElement( const TQString& /* namespaceURI */,
|
|
|
|
|
comment.utf8(), translation,
|
|
|
|
|
TRUE, type) );
|
|
|
|
|
else
|
|
|
|
|
tor->insert( MetaTranslatorMessage(context.ascii(), source.ascii(),
|
|
|
|
|
comment.ascii(), translation,
|
|
|
|
|
tor->insert( MetaTranslatorMessage(context.local8Bit(), source.local8Bit(),
|
|
|
|
|
comment.local8Bit(), translation,
|
|
|
|
|
FALSE, type) );
|
|
|
|
|
inMessage = FALSE;
|
|
|
|
|
}
|
|
|
|
@ -173,9 +173,9 @@ bool TsHandler::fatalError( const TQXmlParseException& exception )
|
|
|
|
|
TQString msg;
|
|
|
|
|
msg.sprintf( "Parse error at line %d, column %d (%s).",
|
|
|
|
|
exception.lineNumber(), exception.columnNumber(),
|
|
|
|
|
exception.message().latin1() );
|
|
|
|
|
exception.message().utf8() );
|
|
|
|
|
if ( tqApp == 0 )
|
|
|
|
|
tqWarning( "XML error: %s", msg.latin1() );
|
|
|
|
|
tqWarning( "XML error: %s", msg.utf8() );
|
|
|
|
|
else
|
|
|
|
|
TQMessageBox::information( tqApp->mainWidget(),
|
|
|
|
|
TQObject::tr("TQt Linguist"), msg );
|
|
|
|
@ -226,7 +226,7 @@ static TQString evilBytes( const TQCString& str, bool utf8 )
|
|
|
|
|
return protect( str );
|
|
|
|
|
} else {
|
|
|
|
|
TQString result;
|
|
|
|
|
TQCString t = protect( str ).latin1();
|
|
|
|
|
TQCString t = protect( str ).utf8();
|
|
|
|
|
int len = (int) t.length();
|
|
|
|
|
for ( int k = 0; k < len; k++ ) {
|
|
|
|
|
if ( (uchar) t[k] >= 0x7f )
|
|
|
|
|