fix pure english bugs.

This commit is contained in:
rexebin 2016-11-27 11:00:11 +00:00
parent 70606848cc
commit 3b5d85c524
1 changed files with 14 additions and 11 deletions

View File

@ -92,6 +92,7 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
if (sibling.children) { if (sibling.children) {
processContainer(sibling); processContainer(sibling);
} }
if(!isPureEnglish(sibling.textContent)){
$current.addClass('original-english'); $current.addClass('original-english');
$sibling.addClass('translated'); $sibling.addClass('translated');
$sibling.addClass('translated-cn'); $sibling.addClass('translated-cn');
@ -104,6 +105,8 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
// addSpacingBetweenCnAndEn(sibling); // addSpacingBetweenCnAndEn(sibling);
return true; return true;
} }
}
} }
} }