Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Pyside2 internationalization tutorials
Forum Updated to NodeBB v4.3 + New Features

Pyside2 internationalization tutorials

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 3 Posters 609 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AbeStew
    wrote on last edited by AbeStew
    #1

    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.

    1 Reply Last reply
    1
    • M Offline
      M Offline
      Moo-san
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved