From 837e802e06227796c55f0cafce3da0e7f70b2f4c Mon Sep 17 00:00:00 2001 From: Smallpath Date: Thu, 8 Jun 2017 20:24:09 +0800 Subject: [PATCH] change expression default to all exp to avoid cc2017 not translating issue --- dist/Sp_memory.jsx | 2 +- lib/Translate.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/Sp_memory.jsx b/dist/Sp_memory.jsx index 044dec6..9afa80e 100644 --- a/dist/Sp_memory.jsx +++ b/dist/Sp_memory.jsx @@ -3905,7 +3905,7 @@ function translate(thisObj, expProps) { resizeable: true }); winW.margins = 10; - var thisRes = 'Group{\n orientation:\'column\',\n alignChildren:[\'left\',\'fill\'],\n list:DropDownList{preferredSize:[200,25],properties:{items:[\'' + loc(tsp.allComp) + '\',\'' + loc(tsp.activeComp) + '\',\'' + loc(tsp.selectedComp) + '\']}},\n start:Button{text:\'' + loc(tsp.trans) + '\',preferredSize:[200,50]},\n group:Group{\n alignChildren:[\'left\',\'fill\'],\n checka:Checkbox{text:\'' + loc(tsp.wrongExp) + '\',value:1},\n lista:DropDownList{properties:{items:[\'Default\',\'English\',\'\u4E2D\u6587\',\'\u65E5\u672C\u8A9E\',\'Common\']},size:[60,25]}\n }\n groupa:Group{\n alignChildren:[\'left\',\'fill\'],\n checkb:Checkbox{text:\'' + loc(tsp.rightExp) + '\',value:0},\n about:Button{text:\'' + loc(tsp.about) + '\',size:[70,25]},\n }\n groupb:Group{\n alignChildren:[\'left\',\'fill\'],\n checkc:Checkbox{text:\'' + loc(tsp.allExp) + '\',value:0},\n checkFile:Checkbox{text:\'' + loc(tsp.log) + '\',size:[80,10]}\n }\n addbtn:Button{text:\'' + loc(tsp.editBtn) + '\',preferredSize:[200,30]}\n }'; + var thisRes = 'Group{\n orientation:\'column\',\n alignChildren:[\'left\',\'fill\'],\n list:DropDownList{preferredSize:[200,25],properties:{items:[\'' + loc(tsp.allComp) + '\',\'' + loc(tsp.activeComp) + '\',\'' + loc(tsp.selectedComp) + '\']}},\n start:Button{text:\'' + loc(tsp.trans) + '\',preferredSize:[200,50]},\n group:Group{\n alignChildren:[\'left\',\'fill\'],\n checka:Checkbox{text:\'' + loc(tsp.wrongExp) + '\',value:0},\n lista:DropDownList{properties:{items:[\'Default\',\'English\',\'\u4E2D\u6587\',\'\u65E5\u672C\u8A9E\',\'Common\']},size:[60,25]}\n }\n groupa:Group{\n alignChildren:[\'left\',\'fill\'],\n checkb:Checkbox{text:\'' + loc(tsp.rightExp) + '\',value:0},\n about:Button{text:\'' + loc(tsp.about) + '\',size:[70,25]},\n }\n groupb:Group{\n alignChildren:[\'left\',\'fill\'],\n checkc:Checkbox{text:\'' + loc(tsp.allExp) + '\',value:1},\n checkFile:Checkbox{text:\'' + loc(tsp.log) + '\',size:[80,10]}\n }\n addbtn:Button{text:\'' + loc(tsp.editBtn) + '\',preferredSize:[200,30]}\n }'; try { var winTempA = winW.add(thisRes); } catch (err) {} diff --git a/lib/Translate.js b/lib/Translate.js index 023c078..79761f9 100644 --- a/lib/Translate.js +++ b/lib/Translate.js @@ -357,7 +357,7 @@ function translate(thisObj, expProps) { start:Button{text:'` + loc(tsp.trans) + `',preferredSize:[200,50]}, group:Group{ alignChildren:['left','fill'], - checka:Checkbox{text:'` + loc(tsp.wrongExp) + `',value:1}, + checka:Checkbox{text:'` + loc(tsp.wrongExp) + `',value:0}, lista:DropDownList{properties:{items:['Default','English','中文','日本語','Common']},size:[60,25]} } groupa:Group{ @@ -367,7 +367,7 @@ function translate(thisObj, expProps) { } groupb:Group{ alignChildren:['left','fill'], - checkc:Checkbox{text:'` + loc(tsp.allExp) + `',value:0}, + checkc:Checkbox{text:'` + loc(tsp.allExp) + `',value:1}, checkFile:Checkbox{text:'` + loc(tsp.log) + `',size:[80,10]} } addbtn:Button{text:'` + loc(tsp.editBtn) + `',preferredSize:[200,30]}