The translation of the flow5 interface to another language requires the following steps:
- 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.
- Create a translation
- In the flow5.pro file, add a mention for the .ts file corresponding to the new language.
- From the command line, run lupdate flow5.pro. This will create or update a .ts file in the meta/translations directory.
- Open the .ts file in QtLinguist and translate the strings.
- Once done, use "Release" in the file menu of QtLinquist to create the compiled .qm file in the meta/translations directory.
- 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
- Update the source code
- In the PrefsDlg.cpp file, add a menu entry alongside the other existing languages; search for "French" to get a template.
- In the flow5.cpp file, loadTranslations() method, add the loading option for the new language.
- Contribute your work via a merge request.