Translate .desktop files with Qt
Project description
qt-desktop-translate
qt-desktop-translate allows translating .desktop files using .ts files from Qt.
Installation
Install qt-desktop-translate with pip
pip install qt-desktop-translate
Create translations
To create translations, use desktop-lupdate
desktop-lupdate your_desktop_file.desktop your_ts_file.ts
This will add the fields from the .desktop file to the .ts file. Now you can use Qt Linguist or any other tool, that allows translating .ts files. Call desktop-lupdate everytime after you've ran the normal lupdate. You can specify a folder instead of a single .ts file.
Apply translations
To apply translations run, use desktop-lrelease
desktop-lrelease your_desktop_file.desktop output.desktop your_ts_file.ts
This will translate desktop-lupdate your_desktop_file.desktop using the translations from your_ts_file.ts. The output will be written into output.desktop. You can specify a folder instead of a single .ts file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for qt_desktop_translate-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f297728a7d909c07b028493d3fe0ed9bbefdd0de63fb6f6c7f45b16560f61ef7 |
|
MD5 | 0be61bb49d04ccd2e41237f6acef99ee |
|
BLAKE2b-256 | 9f133fdbc5885f3e0359329c2de3d4be086b4908a53785b3a463a3098da42fd2 |