Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Deploy Qt application with translation files
Forum Updated to NodeBB v4.3 + New Features

Deploy Qt application with translation files

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 786 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.
  • R Offline
    R Offline
    rmam
    wrote on 1 Nov 2018, 14:26 last edited by
    #1

    I've inherited a Qt application which includes translations for a couple of languages, and now I'd like to create installers for linux and windows. However, I'm not sure where to store the application's qm files. In windows it's possible to just store the translation files in the same directory where the executable is stored, but the standard practice in linux distributions like Debian involves storing data files in specific paths within the filesystem.

    Therefore, what's the best way to deploy Qt applications with translation files?

    P 1 Reply Last reply 1 Nov 2018, 15:09
    0
    • R rmam
      1 Nov 2018, 14:26

      I've inherited a Qt application which includes translations for a couple of languages, and now I'd like to create installers for linux and windows. However, I'm not sure where to store the application's qm files. In windows it's possible to just store the translation files in the same directory where the executable is stored, but the standard practice in linux distributions like Debian involves storing data files in specific paths within the filesystem.

      Therefore, what's the best way to deploy Qt applications with translation files?

      P Offline
      P Offline
      Pablo J. Rogina
      wrote on 1 Nov 2018, 15:09 last edited by
      #2

      @rmam

      what's the best way to deploy Qt applications with translation files?

      If you have access to the source code please check how the application is loading such translation files, or where it's expecting them to be. For instance, it may load the .qm files from the resource system (check if you have a .qrc file) and therefore the .qm files you see end up embedded in the executable

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1

      1/2

      1 Nov 2018, 14:26

      • Login

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