Translations



  • 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


  • Moderators

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



  • Thanks for the hint
    I'll give it a try


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.