Qt 6.11 is out! See what's new in the release
blog
pyside6-lupdate does not extract translations from Python files when given a directory
-
This is my project: https://github.com/IntoLighter/S.T.A.L.K.E.R.-AI-Quest-Generator/tree/develop
I want to localize my application. I'm trying to generate a
.tsfile by specifying theappdirectory:pyside6-lupdate app -ts main.tsBut I get 0 source texts:
Scanning directory 'app'... Updating 'main.ts'... Found 0 source text(s) (0 new and 0 already existing)However, if I specify an individual Python file, it works correctly:
pyside6-lupdate app/src/main.py -ts main.tsUpdating 'main.ts'... Found 1 source text(s) (1 new and 0 already existing)My Python files are located in
app/srcand its subdirectories.What am I missing? Is it possible to recursively scan a directory containing Python files with
pyside6-lupdate? What is the recommended way to generate a single.tsfile from multiple Python files? -
You need to pass all the
.pyfiles in the directory topyside6-lupdate, or usepyside6-project lupdate.