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 9eb6557376
commit fc4c8b0058
4 changed files with 43 additions and 16 deletions

View File

@@ -75,7 +75,7 @@ small { color: #666; }
<div id=output></div>
<tr><td colspan=2>
<small>Enter text to translate above.</small>
<small id=grammarinfo>Enter text to translate above.</small>
<td colspan=2>
<!--<small id=speak><input name=speak type=checkbox> Enable speech synthesis</small>-->
@@ -87,10 +87,11 @@ small { color: #666; }
<div id=pick></div>
<small id=extra></small>
</div>
<p>
<hr>
<div class=modtime><small>
<!-- hhmts start -->Last modified: Thu May 8 01:37:42 CEST 2014 <!-- hhmts end -->
<!-- hhmts start -->Last modified: Fri Jun 20 20:21:52 CEST 2014 <!-- hhmts end -->
</small></div>
<a href="http://www.grammaticalframework.org/demos/translation.html">About</a>
<script src="js/support.js"></script>
<script src="js/gftranslate.js"></script>
<script src="js/localstorage.js"></script>