Skip to content

Commit

Permalink
change expression default to all exp to avoid cc2017 not translating …
Browse files Browse the repository at this point in the history
…issue
  • Loading branch information
smallpath committed Jun 8, 2017
1 parent c658f1e commit 837e802
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/Sp_memory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand Down
4 changes: 2 additions & 2 deletions lib/Translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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]}
Expand Down

0 comments on commit 837e802

Please sign in to comment.