mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
Aard: localizable article loading error string
This commit is contained in:
parent
002436d6cb
commit
3bde6cc3e8
4
aard.cc
4
aard.cc
|
@ -433,7 +433,7 @@ void AardDictionary::loadArticle( uint32_t address,
|
|||
|
||||
while( 1 )
|
||||
{
|
||||
articleText = "Article loading error";
|
||||
articleText = string( QObject::tr( "Article loading error" ).toUtf8().constData() );
|
||||
try
|
||||
{
|
||||
Mutex::Lock _( aardMutex );
|
||||
|
@ -515,7 +515,7 @@ void AardDictionary::loadArticle( uint32_t address,
|
|||
if( !articleText.empty() )
|
||||
articleText = convert( articleText );
|
||||
else
|
||||
articleText = "Article decoding error";
|
||||
articleText = string( QObject::tr( "Article decoding error" ).toUtf8().constData() );
|
||||
|
||||
articleText = "<div class=\"aard\">" + articleText + "</div>";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue