[Scilab-loc] wrong type or wrong size?
Vincent COUVERT
vincent.couvert at inria.fr
Mon May 26 08:48:05 CEST 2008
Hi,
Yes Pierre is right, the message has to be changed (type or size)
according the user input.
However, in the function which produces this error, if the input type is
checked before the input size, the user may not be confused by error
messages.
Vincent
Pierre MARECHAL a écrit :
> Hi,
>
> I think it depends on the nature of the error made by the user :
>
> --> myfunction( first_arg , 2 )
> => it should return /"myfunction: Wrong type for second input
> argument: 'on' or 'off' expected."/
>
> --> myfunction( first_arg , ['on','off','on'] )
> => it should return /"myfunction: Wrong size for second input
> argument: 'on' or 'off' expected."/
>
> --> myfunction( first_arg , 'test' )
> => it should return /"myfunction: Wrong value for second input
> argument: 'on' or 'off' expected."
>
> /Regards,
>
> Pierre
>
>
> Shiqi Yu a écrit :
>> Dear all,
>>
>> I'm translating Scilab messages into Chinese, but some messages
>> confused me, such as in GUI module:
>> |MSG 69: %s|: Wrong size for second input argument: 'on' or 'off'
>> expected.
>> |MSG 71: ||%s|: Wrong type for second input argument: 'on' or 'off'
>> expected.
>>
>> The messages should be displayed when a user does not input 'on' or
>> 'off'. It's a wrong type error and not a wrong type error.
>> So I think MSG 69 is incorrect.
>>
>> There are also some other this kind of messages.
>> --
>> Shiqi Yu
>> Shenzhen Institute of Advanced Technology,
>> Chinese Academy of Sciences.
>> Homepage: http://yushiqi.cn
>
--
==============================================
Vincent COUVERT
Centre de Recherche INRIA Paris-Rocquencourt
Domaine de Voluceau - B.P. 105
78153 Le Chesnay Cedex
==============================================
Equipe Projet SCILAB
Bâtiment 1B - Bureau 013
Email : vincent.couvert at inria.fr
Tél : +33 (0)1 39 63 54 46
Fax : +33 (0)1 39 63 55 94
==============================================
More information about the localization
mailing list