mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
quote possible apostrophe
The French translation of "Collapse article" contains an apostrophe.
This commit is contained in:
parent
30a61c0ee0
commit
63aeb0ef6d
|
@ -179,7 +179,7 @@ std::string ArticleMaker::makeHtmlHeader( QString const & word,
|
||||||
result += "<link rel=\"icon\" type=\"image/png\" href=\"qrcx://localhost/flags/" + Html::escape( icon.toUtf8().data() ) + "\" />\n";
|
result += "<link rel=\"icon\" type=\"image/png\" href=\"qrcx://localhost/flags/" + Html::escape( icon.toUtf8().data() ) + "\" />\n";
|
||||||
|
|
||||||
result += "<script type=\"text/javascript\">"
|
result += "<script type=\"text/javascript\">"
|
||||||
"gdAudioLinks = { first: null, current: null };"
|
"var gdAudioLinks = { first: null, current: null };"
|
||||||
"function gdMakeArticleActive( newId ) {"
|
"function gdMakeArticleActive( newId ) {"
|
||||||
"if ( gdCurrentArticle != 'gdfrom-' + newId ) {"
|
"if ( gdCurrentArticle != 'gdfrom-' + newId ) {"
|
||||||
"el=document.getElementById( gdCurrentArticle ); el.className = el.className.replace(' gdactivearticle','');"
|
"el=document.getElementById( gdCurrentArticle ); el.className = el.className.replace(' gdactivearticle','');"
|
||||||
|
@ -206,15 +206,15 @@ std::string ArticleMaker::makeHtmlHeader( QString const & word,
|
||||||
"elem.style.display='none'; ico.className='gdexpandicon';"
|
"elem.style.display='none'; ico.className='gdexpandicon';"
|
||||||
"art.className = art.className+' gdcollapsedarticle';"
|
"art.className = art.className+' gdcollapsedarticle';"
|
||||||
"nm=document.getElementById('gddictname-'+id); nm.style.cursor='pointer';"
|
"nm=document.getElementById('gddictname-'+id); nm.style.cursor='pointer';"
|
||||||
"if(ev) ev.stopPropagation(); ico.title=''; nm.title='";
|
"if(ev) ev.stopPropagation(); ico.title=''; nm.title=\"";
|
||||||
result += tr( "Expand article" ).toUtf8().data();
|
result += tr( "Expand article" ).toUtf8().data();
|
||||||
result += "' } else if(elem.style.display=='none') {"
|
result += "\" } else if(elem.style.display=='none') {"
|
||||||
"elem.style.display='inline'; ico.className='gdcollapseicon';"
|
"elem.style.display='inline'; ico.className='gdcollapseicon';"
|
||||||
"art.className=art.className.replace(' gdcollapsedarticle','');"
|
"art.className=art.className.replace(' gdcollapsedarticle','');"
|
||||||
"nm=document.getElementById('gddictname-'+id); nm.style.cursor='default';"
|
"nm=document.getElementById('gddictname-'+id); nm.style.cursor='default';"
|
||||||
"nm.title=''; ico.title='";
|
"nm.title=''; ico.title=\"";
|
||||||
result += tr( "Collapse article").toUtf8().data();
|
result += tr( "Collapse article").toUtf8().data();
|
||||||
result += "' } }"
|
result += "\" } }"
|
||||||
"function gdCheckArticlesNumber() {"
|
"function gdCheckArticlesNumber() {"
|
||||||
"elems=document.getElementsByClassName('gddictname');"
|
"elems=document.getElementsByClassName('gddictname');"
|
||||||
"if(elems.length == 1) {"
|
"if(elems.length == 1) {"
|
||||||
|
|
Loading…
Reference in a new issue