Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Pyside2 internationalization tutorials
AbeStew last edited by AbeStew
As I'm a beginner programmer and Pyside2's documentation uses the original Qt5 documentation's C++ examples I am having difficulty fathoming how to do internalization. Are there any decent tutorials for how to structure the code and example workflow for translating a Pyside2 application?
For example, a tutorial showing what to include in a .pro file (or is this even necessary if using Python instead of C++?), general folder structure for application (i.e. just dump all translation files in app_root/translations?), how to structure code to avoid issues using tr() (see note below), and how to select the correct .qm file (or it possible to just load .ts files?) on startup.
Alternatively, anyone aware of a small Pyside2 application on Github that is a good example of how to structure code for internationalization?
Note: I notice the PyQt5 documentation notes an issue with tr(). However, I cannot find anything saying whether this is also an issue in Pyside2. Similarly, there isn't much in the way of beginner friendly guides for how to structure code and general workflow for translating a PyQt5 application.
Denni 0 Banned last edited by Denni 0
I have noted that no one has responded and while I cannot help you with pyside2 if you are not married to it and would like help learning python with pyqt5 instead I am willing to help and I even have a place where I help others wanting to learn python/pyqt5 if you have access to Discord -- as a side note pyqt5 and pyside2 are pretty close when it comes to implementation and once you have learned one the other should be a piece of cake
Moo-san last edited by
I also noticed the lack of documentation and tutorials for i18n with PySide2. I’ll probably just try to hack something together and then post here later what I accomplished (if anything).