Update google translate widget
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
-- data_source = "https://translate.google.com"
|
-- data_source = "https://translate.google.com"
|
||||||
-- type = "widget"
|
-- type = "widget"
|
||||||
-- author = "Andrey Gavrilov"
|
-- author = "Andrey Gavrilov"
|
||||||
-- version = "1.1"
|
-- version = "1.2"
|
||||||
|
|
||||||
local json = require "json"
|
local json = require "json"
|
||||||
local uri = "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto"
|
local uri = "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto"
|
||||||
@@ -18,7 +18,7 @@ end
|
|||||||
|
|
||||||
function on_dialog_action(text)
|
function on_dialog_action(text)
|
||||||
if text == "" or text == -1 then
|
if text == "" or text == -1 then
|
||||||
on_alarm()
|
on_resume()
|
||||||
else
|
else
|
||||||
text_from = text
|
text_from = text
|
||||||
translate(text)
|
translate(text)
|
||||||
|
|||||||
Reference in New Issue
Block a user