diff options
| author | hallgren <hallgren@chalmers.se> | 2014-06-20 18:39:28 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2014-06-20 18:39:28 +0000 |
| commit | fc4c8b0058e425baf4e2b516256f96ed900de29c (patch) | |
| tree | 5b3f72c49a70e967b218854101865213e07b6af3 /src/www/translator | |
| parent | 9eb6557376dc69f3ec5db758fd6578b4cb8f3e3c (diff) | |
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.
Diffstat (limited to 'src/www/translator')
| -rw-r--r-- | src/www/translator/translator.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/www/translator/translator.js b/src/www/translator/translator.js index 4a088e66c..7ea5e0882 100644 --- a/src/www/translator/translator.js +++ b/src/www/translator/translator.js @@ -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) } } |
