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 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