PopTranslate is a translator running under wayland, which can translate the text selected by the mouse and display the result in a pop-up window (only Plasma Wayland is currently supported)
GoldenDict, Crow Translate and other translation software are very useful, but due to the wayland protocol restrictions, they cannot register global shortcut keys, and cannot read the clipboard and mouse position in the background (resulting in the inability to pop up a window near the mouse and translate)
Meta + G
to translate the text selected by the mouse
Meta + Ctrl + G
recognizes and translates the text in the screenshot
paru -S poptranslate
Get flatpak package from release page
- CMake >= 3.26
- Qt >= 5.15
- Extra CMake Modules
- KDE Frameworks >= 5.108 with at least the following modules:
- KGlobalAccel
- KGuiAddons
- KWayland
- KWindowSystem
- KWidgetsAddons
- KXmlGui
- QOnlineTranslator - provides free usage of Google, Yandex and Bing translate API
- QCoro
- Tesseract OCR >= 5.0.0
- tessdata
- org.kde.Platform = "5.15-22.08"
- org.kde.Sdk = "5.15-22.08"
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr
cmake --build build --target poptranslate
cd build && cpack -C CPackConfig.cmake
flatpak install org.kde.Platform/x86_64/5.15-22.08
flatpak install org.kde.Sdk/x86_64/5.15-22.08
flatpak-builder build_flatpak io.github.glaumar.PopTranslate.yml --force-clean
flatpak build-export export build_flatpak
flatpak build-bundle export PopTranslate.flatpak io.github.glaumar.PopTranslate --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
git clone https://[email protected]/poptranslate.git
cd poptranslate && makepkg -s