summaryrefslogtreecommitdiff
path: root/src/www/js/gftranslate.js
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2014-04-09 19:49:45 +0000
committerhallgren <hallgren@chalmers.se>2014-04-09 19:49:45 +0000
commit96f36d8f0a689aa09c1e92e36eaf598dd13ba978 (patch)
tree01caa6f38bdbddde7697ff1d712f24d3c2411631 /src/www/js/gftranslate.js
parentd1da0e06de1d50e5246ea362ea8f2949b6a2a950 (diff)
Wide Coverage Demo App: use PGF service lexing/unlexing
It is now enough to make one server call per translation, and the results can cached by the browser.
Diffstat (limited to 'src/www/js/gftranslate.js')
-rw-r--r--src/www/js/gftranslate.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/www/js/gftranslate.js b/src/www/js/gftranslate.js
index 838030c05..db54b1b81 100644
--- a/src/www/js/gftranslate.js
+++ b/src/www/js/gftranslate.js
@@ -20,7 +20,7 @@ gftranslate.translate=function(source,from,to,start,limit,cont) {
function extract(result) { cont(result[0].translations) }
if(encsrc.length<500)
gftranslate.call("?command=c-translate&input="+encsrc
- +"&lexer=text&from="+g+from+"&to="+g+to
+ +"&lexer=text&unlexer=text&from="+g+from+"&to="+g+to
+"&start="+start+"&limit="+limit,extract)
else cont([{error:"sentence too long"}])
}