<div dir="ltr">"You can use CONFIG += lrelease to automatically compile the files during the build, and CONFIG += lrelease embed_translations to make them available in The Qt Resource System."<br><br>Alternatively, you can just add the .qm files to a resource file yourself, e.g. in the case where you want a different qrc path. I do the same, having them at /translations/*.qm.<br><br>In-app you load them like so:<br><br>  QLocale defaultLocale;<br>  QTranslator app_translator;<br>  if (app_translator.load(defaultLocale, "your-app-name", "_", ":/translations"))<br>    app.installTranslator(&app_translator);<br>  else<br>    qDebug() << "Failed to load app translations, default 'en' will be used.";<br><br>/René<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 19 Aug 2019 at 09:49, Alexander Dyagilev <<a href="mailto:alervdvcw@gmail.com">alervdvcw@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Filed the bug...<br>
<a href="https://bugreports.qt.io/browse/QTBUG-77661" rel="noreferrer" target="_blank">https://bugreports.qt.io/browse/QTBUG-77661</a><br>
<br>
On 8/19/2019 10:35 AM, Alexander Dyagilev wrote:<br>
> Hmm.... This QT_INSTALL_TRANSLATIONS is empty under Android config.<br>
><br>
> However, it's defined for Windows/Mac/Desktop Linux.... Any help?<br>
><br>
> On 8/19/2019 5:41 AM, Alexander Dyagilev wrote:<br>
>> Something like this?<br>
>><br>
>> qt_qm_files.path = /assets/translations<br>
>> qt_qm_files.files += $$QT_INSTALL_TRANSLATIONS/qt_*.qm<br>
>> INSTALLS += qt_qm_files<br>
>><br>
>> On 8/19/2019 5:39 AM, Alexander Dyagilev wrote:<br>
>>> Looks like I should use qmake's INSTALLS variable and install all <br>
>>> the required qt_*.qm files into assets folder?<br>
>>><br>
>>> On 8/19/2019 5:36 AM, Alexander Dyagilev wrote:<br>
>>>> Hello,<br>
>>>><br>
>>>> Is there a "good" way to achieve this?<br>
>>>><br>
>>>> The only solution for know I'm thinking of is to manually copy all <br>
>>>> them into my project folder and include into resource files.<br>
>>>><br>
>>>> This is not good because I'll have to store them in my repository <br>
>>>> and I'll have to update them every time I update Qt.<br>
>>>><br>
>>>> What I want instead is to be able to tell qmake/androiddeployqt <br>
>>>> tools to add all these files automatically from Qt installation <br>
>>>> folder into my APK.<br>
>>>><br>
_______________________________________________<br>
Interest mailing list<br>
<a href="mailto:Interest@qt-project.org" target="_blank">Interest@qt-project.org</a><br>
<a href="https://lists.qt-project.org/listinfo/interest" rel="noreferrer" target="_blank">https://lists.qt-project.org/listinfo/interest</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Never fear, Linux is here.</div>