Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

翻译结果正常,但是出现了错误提示:Wrong type argument: stringp, (",tkk:'") #3

Open
iT-Boyer opened this issue Jun 15, 2021 · 3 comments

Comments

@iT-Boyer
Copy link

Translate ("en" -> "zh-CN"): one

Contacting host: fanyi.youdao.com:80
one [wʌn]: num. 一;同一个 | n. 一个人;一体;
Wrong type argument: stringp, (",tkk:'")
@twlz0ne
Copy link
Owner

twlz0ne commented Jun 24, 2021

无法重现。

请提供更详细的信息以及步骤。

@iT-Boyer
Copy link
Author

iT-Boyer commented Jul 2, 2021

验证了下,好像是设置google 翻译的API之后,出现的问题:google-translate--search-tkk: Search failed: ",tkk:'"

(setq google-translate-base-url   "https://translate.google.cn/translate_a/single"
      google-translate-listen-url "https://translate.google.cn/translate_tts"
      google-translate--tkk-url   "https://translate.google.cn"
      )

google-translate--tkk-url是这个API的错误导致的吗?

@twlz0ne
Copy link
Owner

twlz0ne commented Jul 3, 2021

google-translate 的问题,覆盖 google-translate--search-tkk 方法可解决:

(defun google-translate--search-tkk@fix-137 ()
  "Search TKK.
Fix ttk search error https://github.com/atykhonov/google-translate/issues/137"
  (list 430675 2721866130))

(advice-add 'google-translate--search-tkk :override 'google-translate--search-tkk@fix-137)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants