Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How switch translation file
Forum Updated to NodeBB v4.3 + New Features

How switch translation file

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 247 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.
  • T Offline
    T Offline
    TheEnigmist
    wrote on last edited by
    #1

    I've created 2 .ts file and used Qt Linguist to write the translated string.
    Now how can I use them in my code to switch languages and test them?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Using this class
      https://doc.qt.io/qt-5/qtranslator.html

      T 1 Reply Last reply
      2
      • mrjjM mrjj

        Hi
        Using this class
        https://doc.qt.io/qt-5/qtranslator.html

        T Offline
        T Offline
        TheEnigmist
        wrote on last edited by TheEnigmist
        #3

        @mrjj
        Thx, so I need to use "Release" in Qt Linguist to create .qm file and put them inside .qrc

        Using the snippet in that link I can test other languages as well.

        1 Reply Last reply
        1

        • Login

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