Aard: localizable article loading error string

This commit is contained in:
Abs62 2013-04-29 17:57:19 +04:00
parent 002436d6cb
commit 3bde6cc3e8

View file

@ -433,7 +433,7 @@ void AardDictionary::loadArticle( uint32_t address,
while( 1 ) while( 1 )
{ {
articleText = "Article loading error"; articleText = string( QObject::tr( "Article loading error" ).toUtf8().constData() );
try try
{ {
Mutex::Lock _( aardMutex ); Mutex::Lock _( aardMutex );
@ -515,7 +515,7 @@ void AardDictionary::loadArticle( uint32_t address,
if( !articleText.empty() ) if( !articleText.empty() )
articleText = convert( articleText ); articleText = convert( articleText );
else else
articleText = "Article decoding error"; articleText = string( QObject::tr( "Article decoding error" ).toUtf8().constData() );
articleText = "<div class=\"aard\">" + articleText + "</div>"; articleText = "<div class=\"aard\">" + articleText + "</div>";
} }