diff --git a/doc/description.md b/doc/description.md index 80137461..684ec409 100644 --- a/doc/description.md +++ b/doc/description.md @@ -19,6 +19,8 @@ Mouseover Translate Any Language At Once English, Russian, Japanese, Chinese and so on # Change Log +- 0.1.122 + - add text detect time option (request by 나정휘 (Jn)) - 0.1.121 - Korea locale (contributed by newmind) - 0.1.120 diff --git a/doc/insertLocale.py b/doc/insertLocale.py index a046195d..f301ec2b 100644 --- a/doc/insertLocale.py +++ b/doc/insertLocale.py @@ -69,7 +69,7 @@ "Mouseover Text Type Swap Key", "Tooltip Info Transliteration", "Tooltip Info Source Language", - + "Tooltip Interval Time", "EXCLUDE ", "EXCLUDE", diff --git a/public/_locales/am/messages.json b/public/_locales/am/messages.json index c209756b..6a445723 100644 --- a/public/_locales/am/messages.json +++ b/public/_locales/am/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/ar/messages.json b/public/_locales/ar/messages.json index bfa7e556..287c5b92 100644 --- a/public/_locales/ar/messages.json +++ b/public/_locales/ar/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "استبعاد " }, diff --git a/public/_locales/bg/messages.json b/public/_locales/bg/messages.json index 72244e7f..2a99d1da 100644 --- a/public/_locales/bg/messages.json +++ b/public/_locales/bg/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/bn/messages.json b/public/_locales/bn/messages.json index 60394cfd..f9ba5dda 100644 --- a/public/_locales/bn/messages.json +++ b/public/_locales/bn/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/ca/messages.json b/public/_locales/ca/messages.json index 042eda52..63431c2d 100644 --- a/public/_locales/ca/messages.json +++ b/public/_locales/ca/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/cs/messages.json b/public/_locales/cs/messages.json index 801f4095..0250ff62 100644 --- a/public/_locales/cs/messages.json +++ b/public/_locales/cs/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/da/messages.json b/public/_locales/da/messages.json index f8cf05d5..e976b57a 100644 --- a/public/_locales/da/messages.json +++ b/public/_locales/da/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/de/messages.json b/public/_locales/de/messages.json index 9c4203d8..cfba487e 100644 --- a/public/_locales/de/messages.json +++ b/public/_locales/de/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/el/messages.json b/public/_locales/el/messages.json index 95b714e2..0985462e 100644 --- a/public/_locales/el/messages.json +++ b/public/_locales/el/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index ca586419..ac582fdb 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/en_GB/messages.json b/public/_locales/en_GB/messages.json index ca586419..ac582fdb 100644 --- a/public/_locales/en_GB/messages.json +++ b/public/_locales/en_GB/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/en_US/messages.json b/public/_locales/en_US/messages.json index ca586419..ac582fdb 100644 --- a/public/_locales/en_US/messages.json +++ b/public/_locales/en_US/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/es/messages.json b/public/_locales/es/messages.json index 081c450f..9090f1a5 100644 --- a/public/_locales/es/messages.json +++ b/public/_locales/es/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/es_419/messages.json b/public/_locales/es_419/messages.json index 3ef6454c..b98f6c83 100644 --- a/public/_locales/es_419/messages.json +++ b/public/_locales/es_419/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/et/messages.json b/public/_locales/et/messages.json index 895f3433..e7c76059 100644 --- a/public/_locales/et/messages.json +++ b/public/_locales/et/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/fa/messages.json b/public/_locales/fa/messages.json index a5460f61..5f7210d6 100644 --- a/public/_locales/fa/messages.json +++ b/public/_locales/fa/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/fi/messages.json b/public/_locales/fi/messages.json index e72848e5..4dead20f 100644 --- a/public/_locales/fi/messages.json +++ b/public/_locales/fi/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/fil/messages.json b/public/_locales/fil/messages.json index 5eef95c6..6a561df6 100644 --- a/public/_locales/fil/messages.json +++ b/public/_locales/fil/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/fr/messages.json b/public/_locales/fr/messages.json index 24b4e467..7b73b66a 100644 --- a/public/_locales/fr/messages.json +++ b/public/_locales/fr/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLURE " }, diff --git a/public/_locales/gu/messages.json b/public/_locales/gu/messages.json index 5c0ee81e..c96f75c3 100644 --- a/public/_locales/gu/messages.json +++ b/public/_locales/gu/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/he/messages.json b/public/_locales/he/messages.json index 1d9b37a7..4e1bf96c 100644 --- a/public/_locales/he/messages.json +++ b/public/_locales/he/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/hi/messages.json b/public/_locales/hi/messages.json index d57b5154..712f55ef 100644 --- a/public/_locales/hi/messages.json +++ b/public/_locales/hi/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/hr/messages.json b/public/_locales/hr/messages.json index 02e5abf5..92cf0eaf 100644 --- a/public/_locales/hr/messages.json +++ b/public/_locales/hr/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/hu/messages.json b/public/_locales/hu/messages.json index 578b96d8..93d8a86b 100644 --- a/public/_locales/hu/messages.json +++ b/public/_locales/hu/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/id/messages.json b/public/_locales/id/messages.json index a65a9ab5..182f973b 100644 --- a/public/_locales/id/messages.json +++ b/public/_locales/id/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "KECUALI " }, diff --git a/public/_locales/it/messages.json b/public/_locales/it/messages.json index a2a539c6..f6177a2d 100644 --- a/public/_locales/it/messages.json +++ b/public/_locales/it/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/ja/messages.json b/public/_locales/ja/messages.json index 7cf54978..bc6a185c 100644 --- a/public/_locales/ja/messages.json +++ b/public/_locales/ja/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/kn/messages.json b/public/_locales/kn/messages.json index 1aeddb76..94d27764 100644 --- a/public/_locales/kn/messages.json +++ b/public/_locales/kn/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/ko/messages.json b/public/_locales/ko/messages.json index 79bdcdf9..127b3509 100644 --- a/public/_locales/ko/messages.json +++ b/public/_locales/ko/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/lt/messages.json b/public/_locales/lt/messages.json index 6c055616..b514b1a9 100644 --- a/public/_locales/lt/messages.json +++ b/public/_locales/lt/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/lv/messages.json b/public/_locales/lv/messages.json index 8e38f0fc..49685802 100644 --- a/public/_locales/lv/messages.json +++ b/public/_locales/lv/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/ml/messages.json b/public/_locales/ml/messages.json index 2f4f3219..eea050ba 100644 --- a/public/_locales/ml/messages.json +++ b/public/_locales/ml/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/mr/messages.json b/public/_locales/mr/messages.json index 2107b111..8f4a5a1b 100644 --- a/public/_locales/mr/messages.json +++ b/public/_locales/mr/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/ms/messages.json b/public/_locales/ms/messages.json index b47dd2f6..e92913c6 100644 --- a/public/_locales/ms/messages.json +++ b/public/_locales/ms/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/nl/messages.json b/public/_locales/nl/messages.json index 25d08075..a35c344f 100644 --- a/public/_locales/nl/messages.json +++ b/public/_locales/nl/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/no/messages.json b/public/_locales/no/messages.json index 9daa1bf8..8113cc4b 100644 --- a/public/_locales/no/messages.json +++ b/public/_locales/no/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/pl/messages.json b/public/_locales/pl/messages.json index 6657fdbd..ecd6052f 100644 --- a/public/_locales/pl/messages.json +++ b/public/_locales/pl/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/pt_BR/messages.json b/public/_locales/pt_BR/messages.json index 0647ffac..d6403001 100644 --- a/public/_locales/pt_BR/messages.json +++ b/public/_locales/pt_BR/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/pt_PT/messages.json b/public/_locales/pt_PT/messages.json index b2b7db75..a5ef8c4c 100644 --- a/public/_locales/pt_PT/messages.json +++ b/public/_locales/pt_PT/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/ro/messages.json b/public/_locales/ro/messages.json index b86b26ea..5d608172 100644 --- a/public/_locales/ro/messages.json +++ b/public/_locales/ro/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/ru/messages.json b/public/_locales/ru/messages.json index 197c6a0e..08e2cddb 100644 --- a/public/_locales/ru/messages.json +++ b/public/_locales/ru/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/sk/messages.json b/public/_locales/sk/messages.json index da486cc4..dd8c0849 100644 --- a/public/_locales/sk/messages.json +++ b/public/_locales/sk/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/sl/messages.json b/public/_locales/sl/messages.json index 712ff1c7..f1982ffd 100644 --- a/public/_locales/sl/messages.json +++ b/public/_locales/sl/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/sr/messages.json b/public/_locales/sr/messages.json index 2c096363..01d82374 100644 --- a/public/_locales/sr/messages.json +++ b/public/_locales/sr/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/sv/messages.json b/public/_locales/sv/messages.json index 1300f939..9a44004a 100644 --- a/public/_locales/sv/messages.json +++ b/public/_locales/sv/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/sw/messages.json b/public/_locales/sw/messages.json index a9bd06ed..0a6e3f4e 100644 --- a/public/_locales/sw/messages.json +++ b/public/_locales/sw/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/ta/messages.json b/public/_locales/ta/messages.json index c21b8110..8ce79009 100644 --- a/public/_locales/ta/messages.json +++ b/public/_locales/ta/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/te/messages.json b/public/_locales/te/messages.json index 51cae47d..145a12e0 100644 --- a/public/_locales/te/messages.json +++ b/public/_locales/te/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/th/messages.json b/public/_locales/th/messages.json index bfe19c9a..d1bae7a3 100644 --- a/public/_locales/th/messages.json +++ b/public/_locales/th/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/tr/messages.json b/public/_locales/tr/messages.json index 95f63ed4..ea7d38dc 100644 --- a/public/_locales/tr/messages.json +++ b/public/_locales/tr/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/uk/messages.json b/public/_locales/uk/messages.json index a0ff3b2b..7c93cac6 100644 --- a/public/_locales/uk/messages.json +++ b/public/_locales/uk/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/vi/messages.json b/public/_locales/vi/messages.json index 5b9962c1..b890ae7b 100644 --- a/public/_locales/vi/messages.json +++ b/public/_locales/vi/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/zh_CN/messages.json b/public/_locales/zh_CN/messages.json index 89f0b1ef..5ae0eb83 100644 --- a/public/_locales/zh_CN/messages.json +++ b/public/_locales/zh_CN/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/public/_locales/zh_TW/messages.json b/public/_locales/zh_TW/messages.json index 5b46c0ad..a29cf95b 100644 --- a/public/_locales/zh_TW/messages.json +++ b/public/_locales/zh_TW/messages.json @@ -131,6 +131,9 @@ "Tooltip_Info_Source_Language": { "message": "Tooltip Info Source Language" }, + "Tooltip_Interval_Time": { + "message": "Tooltip Interval Time" + }, "EXCLUDE______________________________________": { "message": "EXCLUDE " }, diff --git a/src/contentScript.js b/src/contentScript.js index 1b18e078..a2a0becb 100644 --- a/src/contentScript.js +++ b/src/contentScript.js @@ -43,7 +43,6 @@ var selectedText = ""; var stagedText = null; var prevStagedParams = []; var prevTooltipText = ""; -var textDetectTime = 300; //tooltip core====================================================================== @@ -72,7 +71,7 @@ var textDetectTime = 300; //determineTooltipShowHide based on hover, check mouse over word on every 700ms function startMouseoverDetector() { - enableMouseoverTextEvent(window, setting["textDetectTime"]); + enableMouseoverTextEvent(window, setting["tooltipIntervalTime"]); addEventHandler("mouseoverText", async function (event) { // if no selected text if ( @@ -89,7 +88,7 @@ function startMouseoverDetector() { //determineTooltipShowHide based on selection function startTextSelectDetector() { - enableSelectionEndEvent(window, setting["textDetectTime"]); //set mouse drag text selection event + enableSelectionEndEvent(window, setting["tooltipIntervalTime"]); //set mouse drag text selection event addEventHandler("selectionEnd", async function (event) { // if translate on selection is enabled if (setting["translateWhen"].includes("select")) { diff --git a/src/event/mouseover.js b/src/event/mouseover.js index 22e34ab7..98637193 100644 --- a/src/event/mouseover.js +++ b/src/event/mouseover.js @@ -15,10 +15,10 @@ const PARENT_TAGS_TO_EXCLUDE = ["STYLE", "SCRIPT", "TITLE"]; export function enableMouseoverTextEvent( _window = window, - textDetectTime = 700 + textDetectTime = 0.7 ) { _win = _window; - textDetectTime = Number(textDetectTime); + textDetectTime = Number(textDetectTime) * 1000; setInterval(() => { triggerMouseoverText(getMouseoverText(clientX, clientY)); diff --git a/src/event/selection.js b/src/event/selection.js index 8ff5e57e..29d0d72f 100644 --- a/src/event/selection.js +++ b/src/event/selection.js @@ -9,11 +9,10 @@ var _win; var prevNoneSelect = false; export function enableSelectionEndEvent( _window = window, - textDetectTime = 700 + textDetectTime = 0.7 ) { _win = _window; - textDetectTime = Number(textDetectTime); - + textDetectTime = Number(textDetectTime) * 1000; const triggerSelectionEndWithDelay = debounce(textDetectTime, () => { triggerSelectionEnd(getSelectionText()); }); diff --git a/src/popup.vue b/src/popup.vue index 9b8dd0b6..98492268 100644 --- a/src/popup.vue +++ b/src/popup.vue @@ -347,6 +347,7 @@ var voiceRateList = getRangeOption(5, 21, 0.1, 1); var voiceRepeatList = getRangeOption(1, 11, 1, 0); var tooltipBackgroundBlurList = getRangeOption(0, 21, 1, 0); var tooltipDistanceList = getRangeOption(0, 41, 1, 0); +var tooltipIntervalTimeList = getRangeOption(5, 21, 0.1, 1); var tooltipPositionList = { Follow: "follow", @@ -546,6 +547,10 @@ var advancedTabData = { description: browser.i18n.getMessage("Tooltip_Info_Source_Language"), optionList: toggleList, }, + tooltipIntervalTime: { + description: browser.i18n.getMessage("Tooltip_Interval_Time"), + optionList: tooltipIntervalTimeList, + }, }; var excludeTabData = { diff --git a/src/util/index.js b/src/util/index.js index 09c7584f..b614e043 100644 --- a/src/util/index.js +++ b/src/util/index.js @@ -57,7 +57,7 @@ export var defaultData = { ignoreCallbackOptionList: ["historyList"], popupCount: "0", langPriority: { auto: 9999999, null: 9999999 }, - textDetectTime: "700", + tooltipIntervalTime: "0.7", }; var rtlLangList = [