Manage translations¶

Requirements¶

Qt Linguist tools are used to manage translations. Typically on Ubuntu:

sudo apt install qttools5-dev-tools

Workflow¶

  1. Generate the plugin_translation.pro file:

    python scripts/generate_translation_profile.py
    
  2. Update .ts files:

    pylupdate5 -verbose menu_from_project/resources/i18n/plugin_translation.pro
    
  3. Translate your text using QLinguist or directly into .ts files. Launching it through command-line is possible:

    linguist menu_from_project/resources/i18n/*.ts
    
  4. Compile it:

    lrelease menu_from_project/resources/i18n/*.ts