Skip to main content

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, 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qt-desktop-translate-1.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

qt_desktop_translate-1.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file qt-desktop-translate-1.1.tar.gz.

File metadata

  • Download URL: qt-desktop-translate-1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for qt-desktop-translate-1.1.tar.gz
Algorithm Hash digest
SHA256 ddfd28230e894ef7078583e4324620a66c5af5807255218d8ed3494025a6106d
MD5 4c6c5be2512456dedd1248744731b847
BLAKE2b-256 a7cb76eb9bdd2c3b0d5cf45082d671061fc83da3544c45c34e9cb4278d57e42e

See more details on using hashes here.

File details

Details for the file qt_desktop_translate-1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for qt_desktop_translate-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e952c176d1a8435b56a3eca3b571034c0109b397a0bd5adbf5163a77f81fb543
MD5 dbb1754f7db14d771af580434f2dc89c
BLAKE2b-256 bc5f285cb01c877f84e05863bb573e03b56cb48c0c1b1c34a232c5120dc16673

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page