From 7cb01f1ae76feef7cc88aab39da321a13f2ca797 Mon Sep 17 00:00:00 2001 From: hallgren Date: Thu, 19 May 2016 09:36:40 +0000 Subject: [PATCH] Wide Coverage Translation Demo: improvements relating to application grammars * Automatically update the translations when the set of selected application grammars is changed. * Skip application grammars that do not support the currently selected source & target languages. --- src/www/js/wc.js | 38 ++++++++++++++++++++++++++------------ src/www/wc.html | 4 ++-- 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/src/www/js/wc.js b/src/www/js/wc.js index 9479fc802..422bbc623 100644 --- a/src/www/js/wc.js +++ b/src/www/js/wc.js @@ -61,7 +61,9 @@ wc.load=function() { } } -wc.translate=function() { +wc.translate=function(redo) { + // redo=true => discard translated segment cache and resubmit translation + // requests to the server (browser cache may still be used) var f=wc.f, e=wc.e, p=wc.p /* @@ -267,13 +269,18 @@ wc.translate=function() { } if(ix input { float: right; }
-
+