qt-translation-assistant

Translate unfinished strings in Qt TS files while preserving XML structure.

7|3|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/re2zero/deepin-skills --skill qt-translation-assistant
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: qt-translation-assistant
Source: https://github.com/re2zero/deepin-skills/tree/main/qt-translation-assistant
Command: npx skills add https://github.com/re2zero/deepin-skills --skill qt-translation-assistant

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Qt projects often require translating numerous TS localization files. This skill automates AI-powered translations while preserving original XML structure and formatting, reducing manual effort and human errors.

Core Features & Use Cases

  • Smart Unfinished Translation Handling: Detects and translates only unfinished <translation> nodes without touching existing translations.
  • Parallel Batch Translation: Uses ThreadPoolExecutor to translate multiple strings concurrently for speed.
  • Project-wide Localization: Scales from small to large Qt projects and supports per-file language inference from filename.

Quick Start

Run the translator on a directory of TS files: python translate.py /path/to/ts/files/

Frequently Asked Questions about qt-translation-assistant

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Qt TS file translation using AI?

Automating Qt TS file translation with AI involves processing the localization files to translate only unfinished XML nodes. This skill uses the requests library and a qt_translation_config.json file to connect to an AI model and translate strings in parallel batches.

What is the best way to translate only unfinished strings in Qt localization files?

Translating only unfinished strings in Qt localization files requires detecting <translation> nodes that lack completed text. This skill specifically targets and translates unfinished nodes while preserving the original XML structure and formatting, leaving existing translations untouched.

How to speed up Qt project localization for multiple TS files?

Speeding up Qt project localization for multiple TS files is achieved through parallel batch translation. By using ThreadPoolExecutor, this skill concurrently translates multiple strings across TS files, scaling efficiently from small to large Qt projects.

Do I need Python to translate Qt TS files in parallel?

You need Python 3.7+ to translate Qt TS files in parallel using this approach. The skill also requires the requests library installed and a properly configured qt_translation_config.json file to connect to the AI model for processing.

Can AI translate Qt TS files without breaking the XML structure?

AI can translate Qt TS files without breaking the XML structure by preserving the original formatting during processing. This skill ensures the XML structure remains intact while injecting AI-translated text into the unfinished translation nodes.

How does Qt translation handle per-file language inference?

Qt translation handles per-file language inference by automatically detecting the target language from the TS filename. This allows the skill to process a directory of TS files for different languages without manual configuration for each individual file.