Skip to content

Latest commit

 

History

History
31 lines (30 loc) · 822 Bytes

internationalization.md

File metadata and controls

31 lines (30 loc) · 822 Bytes

Adding Languages

  • Checkout repository
  • Make sure development environment is set up correctly for your OS
  • Create a new translation file by running
    just add-translation <locale>  # just add-translation fr_FR
  • New <locale>.ts file appears in the i18n directory
  • Translate the ts file using Qt Linguist 6:
    pyside6-linguist i18n/<locale>.ts # pyside6-linguist i18n/fr_FR.ts
  • To test the translation:
    • Make the application portable
      touch portable
    • Run
      just build-develop
    • Start the application and close it
    • Edit the appdata/settings.ini
      [Common]
      language=<locale>
    • Start the application
  • Add a new entry in the qml/models/MpvqcLanguageModel.qml file
  • Open a new pull request