Translation

Updated March 20, 2026



Contents


Back to table of contents


How to translate

The translation of the flow5 interface to another language requires the following steps:

  1. Install the Qt development framework which includes the application QtLinguist and the utilities lupdate and lrelease. In Linux, the utilities may have other names such as lupdate-qt6 (fedora) to distinguish them from the analog qt5-based utility.
  2. Create a translation
    1. In the flow5.pro file, add a mention for the .ts file corresponding to the new language.
    2. From the command line, run lupdate flow5.pro. This will create or update a .ts file in the meta/translations directory.
    3. Open the .ts file in QtLinguist and translate the strings.
    4. Once done, use "Release" in the file menu of QtLinquist to create the compiled .qm file in the meta/translations directory.
    5. In MacOS and Windows, move the .qm file to the translations sub-directory in the application's directory.
      In Linux, move the .qm file to /usr/local/share/flow5/translations
  3. Update the source code
    1. In the PrefsDlg.cpp file, add a menu entry alongside the other existing languages; search for "French" to get a template.
    2. In the flow5.cpp file, loadTranslations() method, add the loading option for the new language.
  4. Contribute your work via a merge request.




Back to top