Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Translations

    General and Desktop
    2
    3
    1097
    Loading More Posts
    • 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
      GrahamL last edited by

      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 Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        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 Reply Quote 0
        • G
          GrahamL last edited by

          Thanks for the hint
          I'll give it a try

          1 Reply Last reply Reply Quote 0
          • First post
            Last post