From a0d785610d2e426f7d8e1a376cf53870d5f5f98d Mon Sep 17 00:00:00 2001 From: hallgren Date: Fri, 12 Apr 2013 13:00:05 +0000 Subject: [PATCH] Simple Translation Tool: eliminate &+ in translations from GF Also fixed a bug introduced in previous refactoring. --- src/www/translator/translator.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/www/translator/translator.js b/src/www/translator/translator.js index a09286594..38b4d01da 100644 --- a/src/www/translator/translator.js +++ b/src/www/translator/translator.js @@ -220,7 +220,9 @@ Translator.prototype.update_translation=function(i) { if(!window.gfrobust) upd3(["[GF robust parser is not available]"]) else { - function check_support(fls,tls) { + function check_support(ssupport,tsupport) { + var fls=ssupport(o.from) + var tls=tsupport(o.to) if(fls && tls) { var want={from:o.from, to:o.to, method:"GFRobust"} if(!eq_options(segment.options,want)) { @@ -1170,7 +1172,7 @@ function save_in_cloud(filename,document,cont) { with_dir(save) } -function unlextext(txt,cont) { gfshell('ps -unlextext "'+txt+'"',cont) } +function unlextext(txt,cont) { gfshell('ps -bind -unlextext "'+txt+'"',cont) } function lextext(txt,cont) { gfshell('ps -lextext "'+txt+'"',cont) }