end
if (~checkDriverName(driverName)) then
- error(gettext("driver: wrong value for first input argument: must be ""Rec"", ""X11"", ""Pos"", ""PPM"", ""GIF"" or ""Fig""."));
+ error(msprintf(gettext("%s: Wrong value for input argument #%d: ''%s'', ''%s'', ''%s'', ''%s'', ''%s'' or ''%s'' expected.\n"),"driver",1,"Rec","X11","Pos","PPM","GIF","Fig"));
return;
end
if (%exportFileName == []) then
// filed not already selected : xinit has not been called
- error(gettext("xend: xinit must be called before any action."));
+ error(msprintf(gettext("%s: %s must be called before any action.\n"),"xend","xinit"));
return;
end
function xg2ps(figureNumber, fileName)
warnobsolete("xs2ps", "5.1");
- warning(gettext("""xg2ps"" has been replaced by ""xs2ps"""));
+ warning(msprintf(gettext("""%s"" has been replaced by ""%s"""),"xg2ps","xs2ps"));
xs2ps(figureNumber, fileName);
if (%driverName == "Rec" | %driverName == "X11" | %driverName == "" | %driverName == []) then
// screen display, should be xinit without argument
if (rhs <> 0) then
- error(msprintf(gettext("%s: Wrong number of input arguments: Function has no input argument with ''Rec'' or ''X11'' drivers.\n"), "xinit"));
+ error(msprintf(gettext("%s: Wrong number of input arguments: Function has no input argument with ''%s'' or ''%s'' drivers.\n"), "xinit","Rec","X11"));
end
scf();
else
// file driver
if (rhs <> 1) then
- error(msprintf(gettext("%s: Wrong number of input arguments: A string expected with ''GIF'', ''PPM'', ''POS'' or ''Fig'' drivers.\n"), "xinit"));
+ error(msprintf(gettext("%s: Wrong number of input argument: String expected with ''%s'', ''%s'', ''%s'' or ''%s'' drivers.\n"), "xinit","GIF","PPM","POS","Fig"));
+
end
if (type(fileName) <> 10) then
// wrong type for driverName
- error(msprintf(gettext("%s: Wrong type for input arguments #%d: A string expected with ''GIF'', ''PPM'', ''POS'' or ''Fig'' drivers.\n"), "xinit",1));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: String expected.\n"), "xinit",1));
return;
end
//Input arguments checking
if rhs <> 2 & rhs <> 3 then
- error(msprintf(gettext("%s: Wrong number of input arguments: %d expected.\n"), "xs2emf",2));
+ error(msprintf(gettext("%s: Wrong number of input arguments: %d to %d expected.\n"), "xs2emf",2,3));
return;
end
//first argument checking
if type(figureNumber) <> 1 | size(figureNumber) <> [1,1] then
- error(msprintf(gettext("%s: Wrong type for input argument: Integer expected.\n"), "xs2emf"));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: Integer expected.\n"), "xs2emf",1));
return;
end
//second argument checking
if type(fileName) <> 10 | fileName == "" then
- error(msprintf(gettext("%s: Wrong type for input argument: String expected.\n"), "xs2emf"));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: String expected.\n"), "xs2emf",2));
return;
end
elseif orientation == 'p' | orientation == 'portrait' then
orientation = "portrait";
else
- error(msprintf(gettext("%s: Wrong input argument #%d: ''%s'' or ''%s'' expected.\n"), "xs2emf", 3, "landscape", "portrait"));
+ error(msprintf(gettext("%s: Wrong value for input argument #%d: ''%s'' or ''%s'' expected.\n"), "xs2emf", 3, "landscape", "portrait"));
return;
end
else
// os is a unix one
// check that pstoedit is available on the computer
//checkPstoedit = unix_g("which pstoedit");
- error(msprintf(gettext("%s: EMF format only available on Windows OS.\n"), "xs2emf"));
+ error(msprintf(gettext("%s: EMF format only available under Microsoft Windows OS.\n"), "xs2emf"));
return;
end
//Input arguments checking
if rhs <> 2 & rhs <> 3 then
- error(msprintf(gettext("%s: Wrong number of input arguments: %d expected.\n"), "xs2emf",2));
+ error(msprintf(gettext("%s: Wrong number of input arguments: %d to %d expected.\n"), "xs2emf",2 ,3));
return;
end
//first argument checking
if type(figureNumber) <> 1 | size(figureNumber) <> [1,1] then
- error(msprintf(gettext("%s: Wrong type for input argument: Integer expected.\n"), "xs2fig"));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: Integer expected.\n"), "xs2fig",1));
return;
end
//second argument checking
if type(fileName) <> 10 | fileName == "" then
- error(msprintf(gettext("%s: Wrong type for input argument: String expected.\n"), "xs2fig"));
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: String expected.\n"), "xs2fig",2));
return;
end
elseif orientation == 'p' | orientation == 'portrait' then
orientation = "portrait";
else
- error(msprintf(gettext("%s: Wrong input argument #%d: ''%s'' or ''%s'' expected.\n"), "xs2fig", 3, "landscape", "portrait"));
+ error(msprintf(gettext("%s: Wrong value for input argument #%d: ''%s'' or ''%s'' expected.\n"), "xs2fig", 3, "landscape", "portrait"));
return;
end
else
/* vectorial export with orientation specified */
if (GetType(3) != sci_strings)
{
- Scierror(999,_("%s: Wrong input argument #%d: '%s' or '%s' expected.\n"),fname, 3, "portrait", "landscape");
+ Scierror(999,_("%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n"),fname, 3, "portrait", "landscape");
return 0;
}
GetRhsVar(3,STRING_DATATYPE,&nbRow,&nbCol,&stackPointer);
}
else
{
- Scierror(999,_("%s: Wrong input argument #%d: '%s' or '%s' expected.\n"),fname, 3, "portrait", "landscape");
+ Scierror(999,_("%s: Wrong value for input argument #%d: '%s' or '%s' expected.\n"),fname, 3, "portrait", "landscape");
return 0;
}
|| fileType == PDF_EXPORT
|| fileType == SVG_EXPORT;
}
-/*--------------------------------------------------------------------------*/
\ No newline at end of file
+/*--------------------------------------------------------------------------*/
return 0;
}
/*--------------------------------------------------------------------------*/
-