mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-13 23:09:31 -06:00
Slightly more informative error messages in translation web apps
This commit is contained in:
@@ -22,7 +22,7 @@ wc.translate=function() {
|
||||
clear(p)
|
||||
|
||||
function show_error(msg) {
|
||||
if(e) e.innerHTML="<span class=low_quality>"+msg+"</span>"
|
||||
if(e) e.innerHTML="<span class=low_quality>Translation problem: "+msg+"</span>"
|
||||
else {
|
||||
f.output.value="["+msg+"]"
|
||||
f.output.className="low_quality"
|
||||
|
||||
@@ -208,7 +208,7 @@ Translator.prototype.update_translation=function(i) {
|
||||
function upd2(trans,punct) {
|
||||
if(trans.length==0) upd3s("[no translation]")
|
||||
else if(trans[0].error)
|
||||
upd3s("[GF robust translation: "+trans[0].error+"]")
|
||||
upd3s("[GF robust translation problem: "+trans[0].error+"]")
|
||||
else {
|
||||
var ts=[]
|
||||
for(var i=0;i<trans.length;i++) {
|
||||
|
||||
Reference in New Issue
Block a user