Skip to content

Commit

Permalink
Remove deprecated setup for google-translate
Browse files Browse the repository at this point in the history
  • Loading branch information
yuravg committed Jan 10, 2020
1 parent 6f3c864 commit f8b0452
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions setup-files/setup-google-translate.el
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,12 @@
(setq google-translate-default-target-language "ru")
(defalias 'gt 'google-translate-at-point)
(defalias 'gtr 'google-translate-at-point-reverse
"Revert translate the word at point or the words in the active region") ;overwrite doc
;; replacement of doc-string
"Revert translate the word at point or the words in the active region")
(defalias 'gtq 'google-translate-query-translate)
(defalias 'gtqr 'google-translate-query-translate-reverse
"Revert interactively translate text with Google Translate") ;overwrite doc
))

;; Fix error message: Failed to search TKK
;; https://github.com/atykhonov/google-translate/issues/52
(when (and (string-match "0.11.14"
(google-translate-version))
(>= (time-to-seconds)
(time-to-seconds
(encode-time 0 0 0 23 9 2018))))
(defun google-translate--get-b-d1 ()
;; TKK='427110.1469889687'
(list 427110 1469889687)))))
;; replacement of doc-string
"Revert interactively translate text with Google Translate")))))


(provide 'setup-google-translate)
Expand Down

0 comments on commit f8b0452

Please sign in to comment.