<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[Translations] documentation on embedding translations in the executable.]]></title><description><![CDATA[<p dir="auto">Good morning</p>
<p dir="auto">Years ago I have looked up the procedure for embedding translations into the executable file. It worked for me, but I remember to have had severe problems to understand the diverse texts that I had found.</p>
<p dir="auto">Is there something more recent or a documentation which is considered up-to-date with the current Qt releases? Ad hoc, I see links that mention Qt 4.4.3 but chances are,  not much has changed anyway since that version.</p>
<p dir="auto">Otherwise ... I have once written my own howto and just stumbled on it again. Updates might be necessary, but my language was intended to be human understandable.  Depending on your reactions, I could publish that once again.</p>
]]></description><link>https://forum.qt.io/topic/162252/translations-documentation-on-embedding-translations-in-the-executable.</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 03:51:53 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/162252.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 27 May 2025 05:25:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Translations] documentation on embedding translations in the executable. on Tue, 27 May 2025 16:44:53 GMT]]></title><description><![CDATA[<p dir="auto">@Simplicius-Simplicissimus said in <a href="/post/826885">[Translations] documentation on embedding translations in the executable.</a>:</p>
<blockquote>
<p dir="auto">The QTLinguist Documentation included in <a href="https://doc.qt.io/qt-6/reference-overview.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/reference-overview.html</a> does not explain how to embed translations in the executable file.</p>
</blockquote>
<p dir="auto">But the other source I linked does...</p>
<p dir="auto">Literally the first section there:</p>
<blockquote>
<h2>The Qt Resource System</h2>
<p dir="auto">The Qt resource system is a platform-independent mechanism for shipping resource files in an application. Use it if your application always needs a certain set of files (like icons, translation files, images), and you don't want to use system-specific means to package and locate these resources.</p>
<p dir="auto"><strong>Most commonly, the resource files are embedded into your application executable, or in libraries and plugins that are loaded by the application executable</strong>. Alternatively, the resource files can also be stored in an external resource file.<br />
<strong>The resource system is based on tight cooperation between Qt's rcc resource compiler, the build system, and the Qt runtime API</strong>.</p>
</blockquote>
<p dir="auto">This is what <a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> told you... and what I was referring to here:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pl45m4">@<bdi>Pl45m4</bdi></a> said in <a href="/post/826869">[Translations] documentation on embedding translations in the executable.</a>:</p>
<blockquote>
<p dir="auto">Read about the Qt Resource System, if you don't understand.</p>
</blockquote>
<p dir="auto">@Simplicius-Simplicissimus said in <a href="/post/826885">[Translations] documentation on embedding translations in the executable.</a>:</p>
<blockquote>
<p dir="auto">I do not need to ship the translation files with the program.</p>
</blockquote>
<p dir="auto">Using the resource system you "ship" them as bytecode embedded in your binary.<br />
You don't want to provide 17 files for 17 different languages, right?<br />
What else do you need?!</p>
]]></description><link>https://forum.qt.io/post/826887</link><guid isPermaLink="true">https://forum.qt.io/post/826887</guid><dc:creator><![CDATA[Pl45m4]]></dc:creator><pubDate>Tue, 27 May 2025 16:44:53 GMT</pubDate></item><item><title><![CDATA[Reply to [Translations] documentation on embedding translations in the executable. on Tue, 27 May 2025 16:24:58 GMT]]></title><description><![CDATA[<p dir="auto">The QTLinguist Documentation included in <a href="https://doc.qt.io/qt-6/reference-overview.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/reference-overview.html</a> does not explain how to embed translations in the executable file.<br />
I talk about what you do in the project-file with</p>
<pre><code>CONFIG += lrelease embed_translations
</code></pre>
<p dir="auto">I do not need to ship the translation files with the program.</p>
<p dir="auto">But never mind. Ignore this thread. <strong>Ω</strong></p>
]]></description><link>https://forum.qt.io/post/826885</link><guid isPermaLink="true">https://forum.qt.io/post/826885</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 27 May 2025 16:24:58 GMT</pubDate></item><item><title><![CDATA[Reply to [Translations] documentation on embedding translations in the executable. on Tue, 27 May 2025 11:53:51 GMT]]></title><description><![CDATA[<p dir="auto">@Simplicius-Simplicissimus said in <a href="/post/826852">[Translations] documentation on embedding translations in the executable.</a>:</p>
<blockquote>
<p dir="auto">Embedding<br />
Into<br />
The<br />
Executable.</p>
</blockquote>
<p dir="auto">???</p>
<p dir="auto">That's what <a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> wrote above.<br />
No need to mock him...<br />
We all can read what you posted</p>
<p dir="auto">Read about the <a href="https://doc.qt.io/qt-6/resources.html" target="_blank" rel="noopener noreferrer nofollow ugc">Qt Resource System</a>, if you don't understand.</p>
<p dir="auto">@Simplicius-Simplicissimus said in <a href="/post/826848">[Translations] documentation on embedding translations in the executable.</a>:</p>
<blockquote>
<p dir="auto">Is there something more recent or a documentation which is considered up-to-date with the current Qt releases?</p>
</blockquote>
<p dir="auto">So hard to find the current/latest <a href="https://doc.qt.io/qt-6/reference-overview.html" target="_blank" rel="noopener noreferrer nofollow ugc">Qt 6.9 documentation</a>?!</p>
]]></description><link>https://forum.qt.io/post/826869</link><guid isPermaLink="true">https://forum.qt.io/post/826869</guid><dc:creator><![CDATA[Pl45m4]]></dc:creator><pubDate>Tue, 27 May 2025 11:53:51 GMT</pubDate></item><item><title><![CDATA[Reply to [Translations] documentation on embedding translations in the executable. on Tue, 27 May 2025 05:32:30 GMT]]></title><description><![CDATA[<p dir="auto">Embedding<br />
Into<br />
The<br />
Executable.</p>
]]></description><link>https://forum.qt.io/post/826852</link><guid isPermaLink="true">https://forum.qt.io/post/826852</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 27 May 2025 05:32:30 GMT</pubDate></item><item><title><![CDATA[Reply to [Translations] documentation on embedding translations in the executable. on Tue, 27 May 2025 05:28:35 GMT]]></title><description><![CDATA[<p dir="auto">Simply add the generated QM files to your qrc resource file should work.</p>
]]></description><link>https://forum.qt.io/post/826849</link><guid isPermaLink="true">https://forum.qt.io/post/826849</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Tue, 27 May 2025 05:28:35 GMT</pubDate></item></channel></rss>