Translation - tnodir/fort GitHub Wiki

Glossary

  • Translate the terms as the Glossary and the language's page give them, e.g. Glossary-ru
  • To change a term, change it on the language's page and in all its strings of the .ts file in the same pull request

Pull Request

  • Edit the language's .ts file in the <PATH-TO>\fort\src\ui\i18n\ folder, e.g. in Qt Linguist (below)
  • Send a pull request to the repository

Qt Linguist

  • Open the .ts file in Qt Linguist
  • Save to normalize the structure
  • Release to create a .qm file

Update & Release scripts

  • <PATH-TO>\fort\scripts\i18n\: Set the QT_HOME environment variable to the Qt folder with bin\lupdate.exe & bin\lrelease.exe for update_ts.bat & release_ts.bat, e.g. set QT_HOME=C:\Qt\6.9.1\msvc2022_64
  • update_ts.bat to update strings from sources
  • release_ts.bat to compile .ts files into .qm files
⚠️ **GitHub.com Fallback** ⚠️