mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17:24:08 +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 )
|
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>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue