[Scilab-loc] wrong type or wrong size?

Pierre MARECHAL pierre.marechal at inria.fr
Sun May 25 18:06:11 CEST 2008


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/localization/attachments/20080525/58572c98/attachment.htm>


More information about the localization mailing list