From 839712ff6d828889216b660b8a9f7953120d4a0b Mon Sep 17 00:00:00 2001 From: Julien Moura Date: Tue, 1 Oct 2024 14:58:18 +0200 Subject: [PATCH] update(docs): add how to manage translations --- docs/development/translation.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/development/translation.md diff --git a/docs/development/translation.md b/docs/development/translation.md new file mode 100644 index 0000000..91f363f --- /dev/null +++ b/docs/development/translation.md @@ -0,0 +1,24 @@ +# Manage translations + +## Requirements + +Qt Linguist tools are used to manage translations. Typically on Ubuntu: + +```bash +sudo apt install qttools5-dev-tools +``` + +## Workflow + +1. Update `.ts` files: + + ```bash + pylupdate5 -verbose profile_manager/resources/i18n/plugin_translation.pro + ``` + +2. Translate your text using QLinguist or directly into `.ts` files. +3. Compile it: + + ```bash + lrelease profile_manager/resources/i18n/*.ts + ```