<?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[pyside6-lupdate does not extract translations from Python files when given a directory]]></title><description><![CDATA[<p dir="auto">This is my project: <a href="https://github.com/IntoLighter/S.T.A.L.K.E.R.-AI-Quest-Generator/tree/develop" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/IntoLighter/S.T.A.L.K.E.R.-AI-Quest-Generator/tree/develop</a></p>
<p dir="auto">I want to localize my application. I'm trying to generate a <code>.ts</code> file by specifying the <code>app</code> directory:</p>
<pre><code class="language-bash">pyside6-lupdate app -ts main.ts
</code></pre>
<p dir="auto">But I get 0 source texts:</p>
<pre><code class="language-text">Scanning directory 'app'...
Updating 'main.ts'...
    Found 0 source text(s) (0 new and 0 already existing)
</code></pre>
<p dir="auto">However, if I specify an individual Python file, it works correctly:</p>
<pre><code class="language-bash">pyside6-lupdate app/src/main.py -ts main.ts
</code></pre>
<pre><code class="language-text">Updating 'main.ts'...
    Found 1 source text(s) (1 new and 0 already existing)
</code></pre>
<p dir="auto">My Python files are located in <code>app/src</code> and its subdirectories.</p>
<p dir="auto">What am I missing? Is it possible to recursively scan a directory containing Python files with <code>pyside6-lupdate</code>? What is the recommended way to generate a single <code>.ts</code> file from multiple Python files?</p>
]]></description><link>https://forum.qt.io/topic/165089/pyside6-lupdate-does-not-extract-translations-from-python-files-when-given-a-directory</link><generator>RSS for Node</generator><lastBuildDate>Sun, 20 Sep 2026 18:43:40 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/165089.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 13 Sep 2026 15:27:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to pyside6-lupdate does not extract translations from Python files when given a directory on Sun, 13 Sep 2026 17:19:54 GMT]]></title><description><![CDATA[<p dir="auto">You need to pass all the <code>.py</code> files in the directory to <code>pyside6-lupdate</code>, or use <code>pyside6-project lupdate</code>.</p>
]]></description><link>https://forum.qt.io/post/840133</link><guid isPermaLink="true">https://forum.qt.io/post/840133</guid><dc:creator><![CDATA[Nils Sjoberg]]></dc:creator><pubDate>Sun, 13 Sep 2026 17:19:54 GMT</pubDate></item></channel></rss>