<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 22.04.2014 16:47, Luca Donaggio
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABPtM86uJQVaVa2GUFAVafLr+yC4h0axicVKQzqtQBb3cjVL3g@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div dir="ltr">Did I hit a bug with the newly added translations
        support?<br clear="all">
        <div><br>
        </div>
        <div>This two lines in .pro (I just changed the lang code in
          standard .pro file created by sialfishapp/qtquick app wizard)
          file:<br>
          <br>
          CONFIG += sailfishapp_i18n<br>
          TRANSLATIONS += translations/harbour-yourproject-it.ts<br>
          <br>
        </div>
        <div>produce the following error at buld time:<br>
          <br>
          <p style="margin:0px;text-indent:0px"><span
              style="color:rgb(190,20,20)">lrelease error: Cannot open
              /home/mersdk/share/Projects/SailfishOS/harbour-yourproject/translations/harbour-yourproject-it.ts:
              No such file or directory</span></p>
          <p style="margin:0px;text-indent:0px"><br>
          </p>
          <p style="margin:0px;text-indent:0px;color:rgb(60,60,60)"><span
              style="color:rgb(0,0,0)">Looking at sailfishapp_i18n.prf
              it seems it generates harbour-yourproject.ts file only,
              not all the *.ts files specified in your .pro file</span>.</p>
          <br>
        </div>
      </div>
    </blockquote>
    ....<br>
    <blockquote
cite="mid:CABPtM86uJQVaVa2GUFAVafLr+yC4h0axicVKQzqtQBb3cjVL3g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <p style="margin:0px;text-indent:0px;color:rgb(60,60,60)"><span
              style="color:rgb(0,0,0)">Did I get something wrong or is
              it really a bug?</span></p>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
    You did nothing wrong. It is a bug.<br>
    <br>
    The translation support was very lightly tested and could fail in a
    number of ways.<br>
    <br>
    This support was changed and fixed over the Easter weekend. If you
    want to try the changes and know what to do, you can replace the
    sailfishapp_18n.prf file in the sb2 targets with the latest from
    here:<br>
    <br>
<a class="moz-txt-link-freetext" href="https://github.com/sailfish-sdk/libsailfishapp/blob/master/data/sailfishapp_i18n.prf">https://github.com/sailfish-sdk/libsailfishapp/blob/master/data/sailfishapp_i18n.prf</a><br>
    <br>
    Or as a workaround you can copy the existing .ts file to
    harbour-yourproject-it.ts in the project's translations folder.<br>
    <br>
    The changes will be released after the next device software release.<br>
    <br>
    Best regards,<br>
     Juha<br>
    <br>
    <br>
  </body>
</html>