Possible mistake in the translation example?
-
Hi, I was looking at this example:
https://doc.qt.io/qtforpython-6.8/tutorials/basictutorial/translations.html
It didn't work for me. It always showed English. But after a little research I found this other example:
And basically I just needed to change
LANG=de python main.py
to
LANG=de_DE.UTF-8 python main.py
Is this a mistake or is pyside behaving unexpectedly? I'm specifically using pyside 6.9.3 on macOS 15 with Python 3.11
To be clear, changing it fixed the problem.
edit:
Also just tried Python 3.14 with Pyside 6.11.2, same problem. Just changing the LANG fixes it.
-
It probably depends on the OS; LANG=de works on Kubuntu Linux. But giving the encoding might be better. LC_ALL can also be used...
We will change the tutorial accordingly.
-
It probably depends on the OS; LANG=de works on Kubuntu Linux. But giving the encoding might be better. LC_ALL can also be used...
We will change the tutorial accordingly.
@friedemannkleint Anything more than updating the
LANGpart ? If not I have the change ready to be submitted. Otherwise I am happy to improve on it. -
-
-
@axu2 said in Possible mistake in the translation example?:
The website still isn't updated?
The website shows the official documentation of the current release. It will update with the next release.