lsnow / translate-clipboard

Gnome shell extension.Show translation of clipboard content. GNOME桌面取词翻译插件
GNU General Public License v3.0
12 stars 0 forks source link

how to active it 请问插件是怎么触发的 #8

Open JadeVane opened 3 years ago

JadeVane commented 3 years ago

请问插件是怎么触发的,似乎直接选中文字并不会正确显示翻译窗口,按 Super + Y 也没反应

环境是 ubuntu 20.04 + gnome 3.36

JadeVane commented 3 years ago

看了一下日志,发现选中文字、按下 Super + Y 后,会有错误日志

10月 25 15:57:11 kk gnome-shell[37355]: [ERROR] Null response.
10月 25 15:57:11 kk gnome-shell[37355]: [ERROR] Oops! Something went wrong and I can't translate it for you :(
lsnow commented 3 years ago

3.36的我没有测试过,一些功能可能不支持,你把 toogle translate选项打开试试?

JadeVane commented 3 years ago

打开选项会有这个提示

10月 25 15:59:23 kk gnome-shell[1698]: st_widget_get_theme_node called on the widget [0x563e9d439c00 StWidget ("翻译
                                           ")] which is not in the stage.
lsnow commented 3 years ago

看了一下日志,发现选中文字、按下 Super + Y 后,会有错误日志

10月 25 15:57:11 kk gnome-shell[37355]: [ERROR] Null response.
10月 25 15:57:11 kk gnome-shell[37355]: [ERROR] Oops! Something went wrong and I can't translate it for you :(

进到这个扩展的目录下面,执行里面的 trans test 脚本试一下,可能你系统里面缺少什么东西?

JadeVane commented 3 years ago

trans test 输出正常

test
/test/

测试
(Cèshì)

test的定义
[ English -> 简体中文 ]

名词
    测试
        test, examination
    试验
        test, experiment, tentative
    试
        test, examination, experiment, exam, fitting
    实验
        experiment, test
    考试
        examination, exam, test
    考验
        test, trial, ordeal
    测验
        test, quiz

动词
    检验
        test, examine, inspect
    试
        test, try
    考
        test, study, examine, investigate, verify, check
    测验
        test, put to test
    验
        test, check, verify, examine, prove, confirm
    考查
        test, investigate, check, study
    尝
        taste, flavor, try the flavor, test, flavour

test
    测试, 试验
JadeVane commented 3 years ago

日志里翻出这个

10月 25 16:01:06 kk gnome-shell[2719]: [2758:2761:1025/160106.358363:ERROR:ssl_client_socket_impl.cc(976)] handshake failed; returned -1, SSL error code 1, net_error -100
lsnow commented 3 years ago

extensions.gnome.org 里面有个3.38的,那个可以用吗

JadeVane commented 3 years ago

不行,点了快捷键连日志都没有

lsnow commented 3 years ago

等我有空装个ubuntu20测试一下,你这系统有点老了啊😂

JadeVane commented 3 years ago

哈哈,装了太多东西了,而且新版很多插件都用不了,就懒得动了。。。

lsnow commented 3 years ago

推了个 dev_3.36 分支,可以简单用了,还不支持设置(现在的设置界面需要 gtk4),不能手动关闭,只能等 5 秒自动隐藏

JadeVane commented 3 years ago

最后还是动手升了21.04,没得测了。。。。