Metadata-Version: 2.1
Name: qt-desktop-translate
Version: 1.1
Summary: Translate .desktop files with Qt
Home-page: https://gitlab.com/JakobDev/qt-desktop-translate
Author: JakobDev
Author-email: jakobdev@gmx.de
License: BSD
Keywords: JakobDev,Qt
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Developers
Classifier: Environment :: Other Environment
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Topic :: Games/Entertainment
Classifier: Operating System :: OS Independent
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: BSD
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# 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.
