From 468de187d0ad59613aa73384976b58b78200ae43 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Mon, 2 Jul 2018 18:39:11 +0530 Subject: support gettext --- js/Sources/STEP.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/Sources/STEP.js') diff --git a/js/Sources/STEP.js b/js/Sources/STEP.js index cb0252ce..8961de2e 100644 --- a/js/Sources/STEP.js +++ b/js/Sources/STEP.js @@ -29,7 +29,7 @@ function STEP() { exprs = graphics.exprs; model = arg1.model; while (true) { - [ok,this.temps,this.in1,this.fi,exprs] = scicos_getvalue([[msprintf(gettext("Set %s block parameters"),"STEP_FUNCTION")],[" "],[gettext("Step Function")],[" "]],[[gettext("Step Time")],[gettext("Initial Value")],[gettext("Final Value")]],list("vec",1,"vec",-1,"vec",-1),exprs); + [ok,this.temps,this.in1,this.fi,exprs] = scicos_getvalue([[msprintf("Set %s block parameters","STEP_FUNCTION")],[" "],["Step Function"],[" "]],["Step Time","Initial Value","Final Value"],list("vec",1,"vec",-1,"vec",-1),exprs); if (!ok) { break; } @@ -41,7 +41,7 @@ function STEP() { } else if (size(this.fi,"*")==1) { this.fi = this.fi*ones(this.in1); } else { - block_parameter_error(msprintf(gettext("\'Initial Value\' and \'Final Value\': incompatible sizes: %d and %d."),size(this.in1,"*"),size(this.fi,"*")),gettext("Same sizes expected.")); + block_parameter_error(msprintf("\'Initial Value\' and \'Final Value\': incompatible sizes: %d and %d.",size(this.in1,"*"),size(this.fi,"*")),"Same sizes expected."); ok = false; } } -- cgit