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

Translations

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.3k 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.
  • G Offline
    G Offline
    GrahamL
    wrote on last edited by
    #1

    Hello
    I am developing a set of applications that have multi lingual support.
    I can use the Qt tools to generate the translations and this works well, however, these applications include some common libraries that also contain strings that I need to translate.

    How can I include the translations from the library in my .ts files for the applications?

    Thanks

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      If those libraries are also Qt projects and you have access to the code, you can just generate ts files for those libraries separately, and then use them to create the translations. TS files are plain XML, you can even merge both sources together, translate, and release as a single qm file.

      I realise my description can be a bit cryptic. I should probably rephrase. What I mean is that QTranslator should pick up translations for libs, too, as long as they were also created the Qt-way (tr(), lupdate, lrelease).

      (Z(:^

      1 Reply Last reply
      0
      • G Offline
        G Offline
        GrahamL
        wrote on last edited by
        #3

        Thanks for the hint
        I'll give it a try

        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