<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    Dear All,<br>
    <br>
    <font face="Courier New, Courier, monospace">I try to get this error
      message translated:</font><span style="color:rgb(50,185,185);"><br>
      <br>
      msprintf</span><span style="color:rgb(74,85,219);">(</span><span
      style="color:rgb(50,185,185);">gettext</span><span
      style="color:rgb(74,85,219);">(</span><span
      style="color:rgb(188,143,143);">"</span><span
      style="color:rgb(188,143,143);">%s: Argument #%d: Vector
      expected.\n</span><span style="color:rgb(188,143,143);">"</span><span
      style="color:rgb(74,85,219);">)</span><span
      style="color:rgb(0,0,0);">,</span> <span
      style="color:rgb(188,143,143);">"</span><span
      style="color:rgb(188,143,143);">bandfilter</span><span
      style="color:rgb(188,143,143);">"</span><span
      style="color:rgb(0,0,0);">,</span> <span
      style="color:rgb(188,143,143);">1</span><span
      style="color:rgb(74,85,219);">)<br>
      <br>
    </span><font face="Courier New, Courier, monospace">Any idea of
      what's wrong?<br>
      <br>
      This one works fine:</font><span style="color:rgb(50,185,185);"><br>
      <br>
      msprintf</span><span style="color:rgb(74,85,219);">(</span><span
      style="color:rgb(50,185,185);">gettext</span><span
      style="color:rgb(74,85,219);">(</span><span
      style="color:rgb(188,143,143);">"</span><span
      style="color:rgb(188,143,143);">%s: Wrong number of input
      arguments: %d to %d expected.\n</span><span
      style="color:rgb(188,143,143);">"</span><span
      style="color:rgb(74,85,219);">)</span><span
      style="color:rgb(0,0,0);">,</span> <span
      style="color:rgb(188,143,143);">"</span><span
      style="color:rgb(188,143,143);">bandfilter</span><span
      style="color:rgb(188,143,143);">"</span><span
      style="color:rgb(0,0,0);">,</span> <span
      style="color:rgb(188,143,143);">2</span><span
      style="color:rgb(0,0,0);">,</span> <span
      style="color:rgb(188,143,143);">4</span><span
      style="color:rgb(74,85,219);">)</span><font face="Courier New,
      Courier, monospace"><br>
      <br>
      Both messages were taken from the error_table documentation.<br>
      <br>
      Federico Miyara<br>
      <br>
    </font><br>
    <div class="moz-cite-prefix">On 06/03/2019 18:02, Samuel Gougeon
      wrote:<br>
    </div>
    <blockquote cite="mid:efebfa09-555e-9b66-a830-faaa5de18015@free.fr"
      type="cite">Le 06/03/2019 à 00:56, Federico Miyara a écrit :
      <br>
      <blockquote type="cite">
        <br>
        Dear Samuel,
        <br>
        <br>
        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 cleaer is if the only use of getttext
        is to localize errore messages or it is possible to localize a
        GUI without formatting.
        <br>
      </blockquote>
      <br>
      gettext() is used to register and translate any message: warnings,
      menus, titles, etc etc. Whatever you want. Just edit .pot files :
      The sources files where the messages are registered (so
      gettext("...") is called) are all indicated, in Scilab files, in
      files in C, C++..
      <br>
      <br>
      _______________________________________________
      <br>
      users mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
      <br>
      <br>
      <br>
    </blockquote>
    <br>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table style="border-top: 1px solid #D3D4DE;">
        <tr>
      <td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Libre de virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a>           </td>
        </tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>