This is a plugin for Plasma 5 KRunner. It's a translator and it translates text. Currently Google Translate, Bing Translator, youdao, and Baidu Fanyi are supported. By clicking on the corresponding icon, the translation can be copied or read aloud.
- Install Translate Shell
- Install the dependencies listed below
- Run
./install.sh
sudo apt install cmake extra-cmake-modules build-essential libkf5runner-dev libkf5textwidgets-dev qtdeclarative5-dev gettext
sudo zypper install cmake extra-cmake-modules libQt5Widgets5 libQt5Core5 libqt5-qtlocation-devel ki18n-devel ktextwidgets-devel kservice-devel krunner-devel gettext-tools kconfigwidgets-devel
sudo dnf install cmake extra-cmake-modules kf5-ki18n-devel kf5-kservice-devel kf5-krunner-devel kf5-ktextwidgets-devel gettext
For being able to use Youdao and Baidu, an api key is required. You have to obtain a key yourself by following these steps:
- Register at https://ai.youdao.com/
- Get an API key and an API secret from Application Manager
- Copy the key to configuration dialog
- Register at http://api.fanyi.baidu.com/
- Get an API key and an API secret from Consoles
- Copy the key to configuration dialog
A list of all language codes you can find here.
Syntax: <sourcelang>-<targetlang> <searchterm>
en-de house → will translate house into german (de)
Syntax: <targetlang> <searchterm>
Default source language: English (en)
Alternative source language: German (de)
de soccer → en-de soccer
en blau → de-en blau
fr house → en-fr house
Thanks for your feedback and kudos! If you like the runner, please vote for it here.