1
0
forked from GitHub/gf-core

Wide Coverage Demo Web App: bug fix: restore lost quality indications after switching target languages

This commit is contained in:
hallgren
2014-05-08 14:05:07 +00:00
parent aeb0300bab
commit fbe9bb69b1
2 changed files with 9 additions and 22 deletions

View File

@@ -97,6 +97,7 @@ function trans_quality(r,to) {
else {
var text=r.linearizations[ix].text
if(r.prob==0) return {quality:"high_quality",text:text}
else if(r.prob<0) return {quality:"bad_quality",text:text}
else {
var t=trans_text_quality(text)
if(t.quality=="default_quality" && r.tree && r.tree[0]=="?")