<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <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>
    <br>
    Regards,<br>
    <br>
    Federico Miyara <br>
    <br>
    <br>
    <br>
    On 04/03/2019 14:29, Samuel Gougeon wrote:<br>
    <blockquote cite="mid:4a4b920a-f042-dd3b-ed75-70ee761c9eff@free.fr"
      type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Hello Federico,<br>
        <br>
        <br>
        Le 04/03/2019 à 05:58, Federico Miyara a écrit :<br>
      </div>
      <blockquote cite="mid:5C7CB06F.8060300@fceia.unr.edu.ar"
        type="cite"> <br>
        Dear all, <br>
        <br>
        I'm trying to understand the way the localizing function gettext
        works. For instance, <br>
        <br>
        setlanguage('es')     // Set Spanish as session language <br>
        gettext("%s: Wrong number of input arguments.\n") <br>
        <br>
        produces the expected result: <br>
        <br>
        %s: Número incorrecto de argumentos de entrada.\n <br>
        <br>
        But <br>
        <br>
        gettext("Wrong number of input arguments.") <br>
        <br>
        returns the original English version <br>
        <br>
        Wrong number of input arguments. <br>
        <br>
        Are the elements %s and \n part of the indexed string? <br>
      </blockquote>
      <br>
      Yes. The string provided to gettext() is an identifier. So
      changing any single character of it then refers to another
      message.<br>
      <br>
      You might have already had a look at the gettext page: <a
        moz-do-not-send="true" class="moz-txt-link-freetext"
        href="https://help.scilab.org/docs/6.0.2/en_US/gettext.html"><a class="moz-txt-link-freetext" href="https://help.scilab.org/docs/6.0.2/en_US/gettext.html">https://help.scilab.org/docs/6.0.2/en_US/gettext.html</a></a><br>
      <br>
      <blockquote cite="mid:5C7CB06F.8060300@fceia.unr.edu.ar"
        type="cite"> <br>
        How can I get a list of indexed strings?<br>
      </blockquote>
      <br>
      The most frequent ones are newly listed in <br>
      <tt>--> help error_table</tt><br>
      <br>
      <a moz-do-not-send="true" class="moz-txt-link-freetext"
        href="https://help.scilab.org/docs/6.0.2/en_US/error_table.html">https://help.scilab.org/docs/6.0.2/en_US/error_table.html</a><br>
      For an exhaustive list, please<br>
      <ul>
        <li>Download and unzip the source code : <a
            moz-do-not-send="true" class="moz-txt-link-freetext"
            href="https://www.scilab.org/previous-scilab-versions"><a class="moz-txt-link-freetext" href="https://www.scilab.org/previous-scilab-versions">https://www.scilab.org/previous-scilab-versions</a></a><br>
        </li>
        <li>In your OS file browser, from the root directory of the
          source tree, select all *.pot files (roughtly 1 hundred of
          files)</li>
        <li>Edit *.pot files. They are unformatted text files. Each one
          gathers all gettext messages identifiers for a native Scilab
          module.</li>
      </ul>
      <p><br>
      </p>
      <p>Hope This Helps<br>
      </p>
      <p>Samuel</p>
      <p><br>
      </p>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </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>