summaryrefslogtreecommitdiff
path: root/js/IntegerOp/LOGIC.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-02 18:39:11 +0530
committerSunil Shetye2018-07-02 18:43:19 +0530
commit468de187d0ad59613aa73384976b58b78200ae43 (patch)
treea303e66b756cd295231a13b44638693f28dc1761 /js/IntegerOp/LOGIC.js
parent6e5e34e21b744cf956b18c7a233aa62b1f08efe5 (diff)
downloadsci2js-468de187d0ad59613aa73384976b58b78200ae43.tar.gz
sci2js-468de187d0ad59613aa73384976b58b78200ae43.tar.bz2
sci2js-468de187d0ad59613aa73384976b58b78200ae43.zip
support gettext
Diffstat (limited to 'js/IntegerOp/LOGIC.js')
-rw-r--r--js/IntegerOp/LOGIC.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/IntegerOp/LOGIC.js b/js/IntegerOp/LOGIC.js
index dc3d15e3..cf843b1f 100644
--- a/js/IntegerOp/LOGIC.js
+++ b/js/IntegerOp/LOGIC.js
@@ -31,7 +31,7 @@ function LOGIC() {
exprs = graphics.exprs;
model = arg1.model;
while (true) {
- [ok,this.mat,this.herit,exprs] = scicos_getvalue([[msprintf(gettext("Set %s block parameters"),"LOGIC")],[" "],[gettext("Combinatorial logic")],[" "],[gettext("  Rows of the matrix are the output values")],[gettext("  Number of rows must be a power of two.")],[gettext("  Number of columns gives the number of outputs.")],[" "]],[[gettext("Truth Table (matrix of outputs)")],[gettext("Accepts Inherited Events (0:No, 1:Yes)")]],list("mat",[-1,-2],"vec",1),exprs);
+ [ok,this.mat,this.herit,exprs] = scicos_getvalue([[msprintf("Set %s block parameters","LOGIC")],[" "],["Combinatorial logic"],[" "],["  Rows of the matrix are the output values"],["  Number of rows must be a power of two."],["  Number of columns gives the number of outputs."],[" "]],["Truth Table (matrix of outputs)","Accepts Inherited Events (0:No, 1:Yes)"],list("mat",[-1,-2],"vec",1),exprs);
if (!ok) {
break;
}
@@ -39,13 +39,13 @@ function LOGIC() {
nin = (log(size(this.mat,1))/log(2));
u1 = floor(nin);
if ((u1!=nin)) {
- block_parameter_error(msprintf(gettext("Wrong size for \'%s\' parameter: %d."),gettext("Truth Table"),size(this.mat,1)),gettext("Number of rows must be a power of two."));
+ block_parameter_error(msprintf("Wrong size for \'%s\' parameter: %d.","Truth Table",size(this.mat,1)),"Number of rows must be a power of two.");
ok = false;
} else if ((find(this.mat.slice()!=0&&this.mat.slice()!=1)!=[])) {
- block_parameter_error(msprintf(gettext("Wrong value for \'%s\' parameter."),gettext("Truth Table")),msprintf(gettext("Elements must be in the interval %s."),"[0, 1]"));
+ block_parameter_error(msprintf("Wrong value for \'%s\' parameter.","Truth Table"),msprintf("Elements must be in the interval %s.","[0, 1]"));
ok = false;
} else if (this.herit<0||this.herit>1) {
- block_parameter_error(msprintf(gettext("Wrong value for \'%s\' parameter: %d."),gettext("Accepts Inherited Events"),this.herit),msprintf(gettext("Must be in the interval %s."),"[0, 1]"));
+ block_parameter_error(msprintf("Wrong value for \'%s\' parameter: %d.","Accepts Inherited Events",this.herit),msprintf("Must be in the interval %s.","[0, 1]"));
ok = false;
}
if (ok) {