An open API service indexing awesome lists of open source software.

https://github.com/rizutazu/krunner-translator

krunner-translator for plasma 6
https://github.com/rizutazu/krunner-translator

Last synced: about 2 months ago
JSON representation

krunner-translator for plasma 6

Awesome Lists containing this project

README

        

# KRunner Translator (Plasma 6)

KRunner Translator for Plasma 6.

This plugin is derived from [this project](https://github.com/naraesk/krunner-translator) , but it is NOT A DIRECT PORT to plasma 6, so you cannot expect their features will be same. E.g, configuration is not implemented, so you can only use free translate engines.

## Feature

- Translate text

- Play audio for the text

Supported engine: `Google Translate`, `Bing Translate`, `Deepl Web Translate`

image-20250208184026016

## Usage

This plugin supports two input schemes:

1. `target_abbr text`
2. `source_abbr:target_abb text`

`target_abbr` / `source_abbr` means the abbreviation of source/target language respectively, and `text`means the text you want to translate.

You can find supported language abbreviation at [here](src/languagerepository.cpp).

Example:

- `ja hello` --> `こんにちは`

- `en:es hello` --> `Hola`

**Notice:**
- You cannot play the audio of the *input text* if you don't specify the source language.
- Since Deepl translate does not ~~support~~ implement auto-detect source language, you must use the second input scheme to get its result if you want.
- Deepl translate result may be frequently unavailable due to its rate limit.

## Installation

1. Install [Translate Shell](https://github.com/soimort/translate-shell), follow its guide if you encounter audio play problem.
2. make sure `cmake` / `KDE6` / `Qt6` developing environment is prepared.
3. Run `./install.sh`

## Uninstall

- Run `./uninstall.sh`