<div dir="ltr">Thanks a lot Juha, I'll give the latest .prf a try!<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 22, 2014 at 4:10 PM, Juha Kallioinen <span dir="ltr"><<a href="mailto:juha.kallioinen@jolla.com" target="_blank">juha.kallioinen@jolla.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="">
<div>On 22.04.2014 16:47, Luca Donaggio
wrote:<br>
</div>
<blockquote type="cite">
<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></div>
....<div class=""><br>
<blockquote 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></div>
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 href="https://github.com/sailfish-sdk/libsailfishapp/blob/master/data/sailfishapp_i18n.prf" target="_blank">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>
</div>
<br>_______________________________________________<br>
SailfishOS.org Devel mailing list<br></blockquote></div><br><br clear="all"><br>-- <br>Luca Donaggio
</div>