Gnome shell extension.Show translation of clipboard content.
Inspired by Tudmotu's clipboard-indicator and gufoe's text-translator and sevenuz's gnome-translate-indicator.
Gnome shell extension.Show translation of clipboard content. GNOME桌面取词翻译插件
License: GNU General Public License v3.0
Hi,
What I nice Gnome Extension !
For the purpose of an engine respectful of privacy and security, would you consider adding the possibility to choose in the settings the translation engine, and to add the DeepL engine for it's translation quality and privacy features. Privacy by design, no tracking, GDPR compliant, German made...
I have almost no programming skills. I might have understood that the translation part is handled by the trans file ...
Would it be possible to do such an upgrade ?
Translating is activated when I don't need it which obscures lots of contents, and I just want to copy/paste. Therefore, can translating only be activated when I select text with a hot key pressed down, like Alt/Ctrl.
Requiring GstApp, version none: Typelib file for namespace 'GstApp' (any version) not found
The translation extensions of the whole extensions.gnome.org are dead?I want start one. https://github.com/eexpress/gnome-shell-clip-translator. But finding translate API interfaces is difficult.
GNOME Shell 40.5
Ubuntu 21.10
Do you know if it is possible to use a St.ScrollView and to limit the height / width?
This is a really cool extensions.
What is the default translate search engine and dictionary?
TypeError: prefsModule.buildPrefsWidget is not a function
Stack trace:
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
Good evening the issue im facing is no translation at all
when i press the shrotcut key combination 'Super+Y '
i get
Actual Error
Error: Argument position: value is out of range for uint32
Stack trace:
_addVoicesRow@file:///home/stephen/.local/share/gnome-shell/extensions/[email protected]/prefs.js:99:13
TranslatePrefsWidget@file:///home/stephen/.local/share/gnome-shell/extensions/[email protected]/prefs.js:51:14
getPreferencesWidget@file:///home/stephen/.local/share/gnome-shell/extensions/[email protected]/prefs.js:134:16
fillPreferencesWindow@resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js:36:29
_loadPrefs@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:41:18
async*_init@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:26:14
ExtensionPrefsDialog@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:17:4
OpenExtensionPrefsAsync@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:139:33
async*_handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:373:35
_wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:408:34
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34
OS: Fedora Linux 39 (Workstation Edition) x86_64
Host: S5
Kernel: 6.8.6-200.fc39.x86_64
Uptime: 6 days, 11 hours, 15 mins
Packages: 2139 (rpm), 19 (flatpak)
Shell: bash 5.2.26
Resolution: 1920x1080
DE: GNOME 45.5
WM: Mutter
WM Theme: Adwaita
Theme: Adwaita [GTK2/3]
Icons: Adwaita [GTK2/3]
Terminal: gnome-terminal
CPU: AMD Ryzen 7 5800H with Radeon Graphics (16) @ 4.463GHz
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series
Memory: 16699MiB / 28987MiB
gnome-extensions list
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
请问插件是怎么触发的,似乎直接选中文字并不会正确显示翻译窗口,按 Super
+ Y
也没反应
环境是 ubuntu 20.04 + gnome 3.36
Feature Request:
Make it possible to be able to configure how much time the pop up translate to be shown. A slider would be nice too.
Thank you
Works fine with edited metadata.
Noticed the extension stopped functioning (super+Y did nothing) sometime after locking/unlocking the screen, and then found this in the gnome-shell logs:
gnome-shell[3361]: JS ERROR: Extension [email protected]: TypeError: this._pipeline is undefined
_stopPlayAudio@/home/.../.local/share/gnome-shell/extensions/[email protected]/tts.js:192:9
cleanup@/home/.../.local/share/gnome-shell/extensions/[email protected]/tts.js:213:14
destroy@/home/.../.local/share/gnome-shell/extensions/[email protected]/extension.js:153:19
disable@/home/.../.local/share/gnome-shell/extensions/[email protected]/extension.js:684:25
_callExtensionDisable@resource:///org/gnome/shell/ui/extensionSystem.js:109:32
_disableAllExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:622:22
_disableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:621:52
_sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:639:18
_emit@resource:///org/gnome/gjs/modules/core/_signals.js:114:47
_sync@resource:///org/gnome/shell/ui/sessionMode.js:200:14
pushMode@resource:///org/gnome/shell/ui/sessionMode.js:161:14
activate@resource:///org/gnome/shell/ui/screenShield.js:646:34
lock@resource:///org/gnome/shell/ui/screenShield.js:690:14
_onStatusChanged/this._lockTimeoutId<@resource:///org/gnome/shell/ui/screenShield.js:327:26
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.