Pyside2 internationalization tutorials
-
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.