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 use translation files of another project?

How use translation files of another project?

Scheduled Pinned Locked Moved Unsolved General and Desktop
translation
3 Posts 3 Posters 356 Views
  • 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.
  • L Offline
    L Offline
    leonardo M B
    wrote on last edited by leonardo M B
    #1

    So I have a project that uses another as dll, the problem is that I'm not getting the translated files from the dll when I use a class from the dll in the project. I want to load this translation file in the project, how can i do this? I tryed to use the QTranslator::load, but i'm confused a lot about the the arguments, there are a lot of files/includes in my project, so I'm stuck in the tree that I should use as the directory

    SGaistS 1 Reply Last reply
    0
    • L leonardo M B

      So I have a project that uses another as dll, the problem is that I'm not getting the translated files from the dll when I use a class from the dll in the project. I want to load this translation file in the project, how can i do this? I tryed to use the QTranslator::load, but i'm confused a lot about the the arguments, there are a lot of files/includes in my project, so I'm stuck in the tree that I should use as the directory

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Does that dll embed its translations ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SimonSchroeder
        wrote on last edited by
        #3

        A QTranslator handles translations from a single translation file. After that the QTranslator is installed for the application. If you have multiple QTranslators installed translations will be looked up from newest to oldest.

        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