From fc6d8f63623c166ed79d2d2e3c4a73cc1de0a9a7 Mon Sep 17 00:00:00 2001 From: hallgren Date: Wed, 7 May 2014 23:42:05 +0000 Subject: Wide Coverage Demo App: show all Phrasebook translations Also improve behaviour for languages that are missing in Phrasebook (Chinese). Also update the initial set of languages in the menus to match Translate11.pgf. --- src/www/js/gftranslate.js | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'src/www/js/gftranslate.js') diff --git a/src/www/js/gftranslate.js b/src/www/js/gftranslate.js index a232bde50..86cdc477a 100644 --- a/src/www/js/gftranslate.js +++ b/src/www/js/gftranslate.js @@ -85,20 +85,23 @@ function trans_text_quality(text) { } // find_to :: Lang -> [{to:Lang,...}] -> Int -find_to=function(to,lins) { +function find_to(to,lins) { for(var i=0;i