Re: [Scilab-users] Behavior of gettext

2019-03-12 Thread Federico Miyara
Thank you Samuel, this one does work! I understand the verbosity issue (it's the age of SMS's and WhatsApp's). However, the "orthogonality", in spite of being a good idea to avoid many instances of similar messages, would be really useful if some way to combine short messages did exist. But I

Re: [Scilab-users] Behavior of gettext

2019-03-12 Thread Samuel Gougeon
Le 12/03/2019 à 21:31, Federico Miyara a écrit : Dear All, I try to get this error message translated: msprintf(gettext("%s: Argument #%d: Vector expected.\n"), "bandfilter", 1) Any idea of what's wrong? The long historical form is gettext("%s: Wrong size for argument #%d: Vector expected.\

Re: [Scilab-users] Behavior of gettext

2019-03-12 Thread Samuel Gougeon
Hello, Le 12/03/2019 à 21:31, Federico Miyara a écrit : Dear All, I try to get this error message translated: msprintf(gettext("%s: Argument #%d: Vector expected.\n"), "bandfilter", 1) It may be a very recent one, not yet translated. Samuel ___

Re: [Scilab-users] Behavior of gettext

2019-03-12 Thread Federico Miyara
Dear All, I try to get this error message translated: msprintf(gettext("%s: Argument #%d: Vector expected.\n"), "bandfilter", 1) Any idea of what's wrong? This one works fine: msprintf(gettext("%s: Wrong number of input arguments: %d to %d expected.\n"), "bandfilter", 2, 4) Both messages

Re: [Scilab-users] Behavior of gettext

2019-03-06 Thread Samuel Gougeon
Le 06/03/2019 à 00:56, Federico Miyara a écrit : Dear Samuel, Thank you very much. I had read the gettext help but it is not as clear as it should, it was not clear for me if the indexed strings were the complete error message including the formatting details or the plain English version wit

Re: [Scilab-users] Behavior of gettext

2019-03-05 Thread Federico Miyara
Dear Samuel, Thank you very much. I had read the gettext help but it is not as clear as it should, it was not clear for me if the indexed strings were the complete error message including the formatting details or the plain English version within it. Now it is more clear. What is still not c

Re: [Scilab-users] Behavior of gettext

2019-03-04 Thread Samuel Gougeon
Hello Federico, Le 04/03/2019 à 05:58, Federico Miyara a écrit : Dear all, I'm trying to understand the way the localizing function gettext works. For instance, setlanguage('es') // Set Spanish as session language gettext("%s: Wrong number of input arguments.\n") produces the expected

[Scilab-users] Behavior of gettext

2019-03-03 Thread Federico Miyara
Dear all, I'm trying to understand the way the localizing function gettext works. For instance, setlanguage('es') // Set Spanish as session language gettext("%s: Wrong number of input arguments.\n") produces the expected result: %s: Número incorrecto de argumentos de entrada.\n But ge