diff options
Diffstat (limited to 'pytqlupdate3')
-rw-r--r-- | pytqlupdate3/main.cpp | 4 | ||||
-rw-r--r-- | pytqlupdate3/metatranslator.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pytqlupdate3/main.cpp b/pytqlupdate3/main.cpp index 6c708fe..f024072 100644 --- a/pytqlupdate3/main.cpp +++ b/pytqlupdate3/main.cpp @@ -129,13 +129,13 @@ int main( int argc, char **argv ) if ( !codec.isEmpty() ) tor.setCodec( codec ); if ( verbose ) - tqWarning( "Updating '%s'...", (*tf).utf8() ); + tqWarning( "Updating '%s'...", (*tf).local8Bit().data() ); merge( &tor, &fetchedTor, verbose ); if ( noObsolete ) tor.stripObsoleteMessages(); tor.stripEmptyContexts(); if ( !tor.save(*tf) ) - tqWarning( "pytqlupdate error: Cannot save '%s': %s", (*tf).utf8(), + tqWarning( "pytqlupdate error: Cannot save '%s': %s", (*tf).local8Bit().data(), strerror(errno) ); } if ( !metSomething ) { diff --git a/pytqlupdate3/metatranslator.cpp b/pytqlupdate3/metatranslator.cpp index f46ee9a..18b2b0d 100644 --- a/pytqlupdate3/metatranslator.cpp +++ b/pytqlupdate3/metatranslator.cpp @@ -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().utf8() ); + exception.message().utf8().data() ); if ( tqApp == 0 ) - tqWarning( "XML error: %s", msg.utf8() ); + tqWarning( "XML error: %s", msg.local8Bit().data() ); else TQMessageBox::information( tqApp->mainWidget(), TQObject::tr("TQt Linguist"), msg ); |