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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user