Localization in English - Standard messages - Scilab Wiki

Localization in English - Standard messages

Data type naming

Data type in Scilab code (see function typeof)

Data type in stack-c.h

Data type in stackTypeVariable.h

Type name for messages

1x1 value

1xn value

nx1 value

mxn value

type()

constant

sci_matrix

MATRIX_OF_DOUBLE_DATATYPE

Real or complex array /matrix

A real or complex

Real or Complex row vector

Real or Complex column vector

Real or Complex matrix

1

polynomial

sci_poly

MATRIX_OF_POLYNOMIAL_DATATYPE

Polynomial array/matrix

A polynom

Real or complex row vector of polynomials

Real or complex column vector of polynomials

Real of complex matrix of polynomials

2

boolean

sci_boolean

MATRIX_OF_BOOLEAN_DATATYPE

Boolean array/matrix

A

Boolean row vector

Boolean column vector

Boolean matrix

4

sparse

sci_sparse

SPARSE_MATRIX_DATATYPE

Sparse real or complex array /matrix

???

Sparse real or complex row vector

Sparse real or complex column vector

Sparse real or complex matrix

5

boolean sparse

sci_boolean_sparse

???

Boolean sparse array /matrix

???

Sparse boolean row vector

Sparse boolean coliumn vector

Sparse boolean matrix

6

Matlab sparse

sci_matlab_sparse

???

Matlab sparse real or complex array /matrix

???

Matlab Sparse real or complex row vector

Matlab Sparse real or complex column vector

Matlab Sparse matrix

7

int(8|16|32)

sci_ints

MATRIX_OF_VARIABLE_SIZE_INTEGER_DATATYPE

(8|16|32)-bit integerarray /matrix

A (8|16|32)-bit integer

(8|16|32)-bit integer row vector

(8|16|32)-bit integer column vector

(8|16|32)-bit integer matrix

8

uint(8|16|32)

sci_ints

MATRIX_OF_VARIABLE_SIZE_INTEGER_DATATYPE

(8|16|32)-bit unsigned integerarray /matrix

A (8|16|32)-bit unsigned integer

(8|16|32)-bit unsigned integer row vector

(8|16|32)-bit unsigned integer column vector

(8|16|32)-bit unsigned integer matrix

8

handle

sci_handles

GRAPHICAL_HANDLE_DATATYPE

Graphic handle array

A graphic handle
An 'Axes' handle
A 'Figure' handle

Graphic handle row array

Graphic handle column array

Graphic handle 2D array

9

string

sci_strings

STRING_DATATYPE/MATRIX_OF_STRING_DATATYPE

Character string array

A string

Row array of strings

Column array of strings

2D array of strings

10

function (not-compiled)

sci_u_function

-- DOES NOT EXIST --

Uncompiled function

???

???

???

???

11

function (compiled)

sci_c_function

-- DOES NOT EXIST --

Function

???

???

???

???

13

library

sci_lib

-- DOES NOT EXIST --

Library??

???

???

???

???

14

list

sci_list

LIST_DATATYPE

List

1-item list

N-item list

N-item list

-- DOES NOT EXIST --

15

tlist

sci_tlist

TYPED_LIST_DATATYPE

Typed list

???

???

???

???

16

rational

-- DOES NOT EXIST --

-- DOES NOT EXIST --

Matrix of rational fractions or transfer function

A rational fraction or a transfer function (depending on context)

Row vector of rational fractions or Single output transfer function

Column vector of rational fractions or Single input transfer function

Matrix of rational fractions or MIMIO transfer function

16/r

state-space

-- DOES NOT EXIST --

-- DOES NOT EXIST --

State-space representation

A SISO state space system

SIMO state space system

MiSO state space system

MiMO state space system

16/lss

mlist

sci_mlist

MATRIX_ORIENTED_TYPED_LIST_DATATYPE

M-list

???

???

???

???

17

hypermat

-- DOES NOT EXIST --

-- DOES NOT EXIST --

N-dimensionnal array

???

???

???

???

17/hm

st

-- DOES NOT EXIST --

-- DOES NOT EXIST --

Struct

A 1-by-1 struct

A 1-by-n struct

A m-by-1 struct

A m-by-n struct

17/st

ce

-- DOES NOT EXIST --

-- DOES NOT EXIST --

Cell array

A 1-by-1 cell

A 1-by-n cell array

A m-by-1 cell array

A m-by-n cell array

17/ce

pointer

sci_lufact_pointer

EXTERNAL_DATATYPE

Pointer on LU factorization

???

???

???

???

???

Type/Size checking in Scilab code

   1 if typeof(myvariable)<>"constant" then
   2   error(sprintf(gettext("%s: Wrong type for input argument #%d: A Real or Complex expected.\n"), "myfunction", 1));
   3 end
   4 if size(myvariable, "*")<>1 then
   5   error(sprintf(gettext("%s: Wrong type for input argument #%d: Real or Complex Scalar expected.\n"), "myfunction" 2,));
   6 end

Type/Size checking in C code

   1 if (VarType(1)!=sci_matrix)
   2 {
   3   Scierror(999, "%s: Wrong type for input argument #%d: Real or Complex Scalar expected.\n", "myfunction", 1);
   4   return FALSE;
   5 }
   6 GetRhsVar(1, MATRIX_OF_DOUBLE_DATATYPE, &nbRow, &nbCol, &stkAdr);
   7 if (nbRow*nbCol!=1)
   8 {
   9   Scierror(999, "%s: Wrong type for input argument #%d: Real or Complex Scalar expected.\n", "myfunction", 1);
  10   return FALSE;
  11 }

Error messages

Argument number checking

Wrong number of input argument(s) :

Wrong number of output argument(s) :

Wrong number of input argument(s) with information about the number of args :

Wrong number of output argument(s) with information about the number of args :

Argument types checking

Discussion: The error messages depends on the way the types are organized (type hierarchy) and tested. The error messages below supposes that variables have a main type and then sub-types real/complex, dimensions, length,....)

Checking main data type :

... Checking sub-types: (avoid reference to type and size as far as possible)

Argument value checking

Wrong values : '

Inter-Arguments constraints checking

Memory

Not enough memory :

Feature

We don't have the feature but this could be implemented in the future :

Variables

Cannot find the variable :

File/Dir

Impossible to open a file :

Can not find the file :

Localization in English - Standard messages (last edited 2009-11-24 17:01:17 by Sylvestre Ledru)