1
0
forked from GitHub/gf-core

Cloud service & apps: better error handling in wide coverage translation

The wide coverage demo apps now shows a "please wait" message while the grammar
is loading, and a red error message if the grammar is not found on the server.
The Simple Translation Tool also show red error messages if the grammar is not
found.
This commit is contained in:
hallgren
2014-06-20 18:39:28 +00:00
parent 78ccefc4f4
commit eee9617036
4 changed files with 43 additions and 16 deletions

View File

@@ -274,7 +274,10 @@ Translator.prototype.update_translation=function(i) {
upd3s("["+msg+"]")
}
}
gftranslate.get_support(check_support)
function no_support(text,status,ct) {
upd3s("[GF Robust translation service error: "+status+"]")
}
gftranslate.get_support(check_support,no_support)
}
}