diff --git a/src/_locales/options/messages.json b/src/_locales/options/messages.json index 55d7bed2d..e7d2a7d2e 100644 --- a/src/_locales/options/messages.json +++ b/src/_locales/options/messages.json @@ -2,13 +2,18 @@ "storage_updated": { "zh_CN": "设置已更新", "zh_TW": "設定已更新", - "en": "Options updated" + "en": "Settings updated" }, "reset": { "zh_CN": "重置", "zh_TW": "重置", "en": "Reset" }, + "language": { + "zh_CN": "界面语言", + "zh_TW": "介面語言", + "en": "App Language" + }, "none": { "zh_CN": "无", "zh_TW": "無", @@ -17,12 +22,12 @@ "reset_modal_title": { "zh_CN": "重置设定", "zh_TW": "重設設定", - "en": "Reset Config" + "en": "Reset Settings" }, "reset_modal_content": { "zh_CN": "所有设定将还原到默认值,确定?", "zh_TW": "所有設定將還原到還原點,確定?", - "en": "Reset to default config. Confirm?" + "en": "Reset to default settings. Confirm?" }, "title": { "zh_CN": "Saladict 设置", @@ -41,19 +46,44 @@ }, "app_active": { "zh_CN": "启用划词翻译", - "zh_TW": "啟用劃詞翻譯", - "en": "Enable inline translator" + "zh_TW": "啟用滑鼠劃字翻譯", + "en": "Enable Inline Translator" }, "pdf_sniff": { "zh_CN": "默认用本扩展浏览 PDF", - "zh_TW": "確認用本延伸視窗介面擴展瀏覽 PDF 功能", - "en": "Default PDF Viewer" + "zh_TW": "使用本應用程式瀏覽 PDF", + "en": "Enable PDF Viewer" }, "app_active_description": { "zh_CN": "关闭后划词翻译功能将关闭,快捷查词功能依然可用。开启默认 PDF 浏览所有 PDF 链接将自动跳转到本扩展打开(包括本地)。", "zh_TW": "關閉後,滑鼠劃字和句子翻譯功能將關閉,迅速查單字和句子的功能依然可以用。開啟確認鍵後, PDF 瀏覽功能可以運作使用。所有 PDF 鏈接,將自動跳轉到本延伸擴展視窗介面,打開後,可以查看(包括本地)。", "en": "Quick Search is still available even if Inline translation is turned off. PDF links will be automatically captured if the sniffer is turned on." }, + "dict_panel_title": { + "zh_CN": "查词面板", + "zh_TW": "查字典介面", + "en": "Dict Panel" + }, + "dict_panel_description": { + "zh_CN": "查词面板相关设置", + "zh_TW": "查字典介面相關設置", + "en": "Dictionary Panel settings" + }, + "dict_panel_width": { + "zh_CN": "查词面板宽度", + "zh_TW": "查字典介面寬度", + "en": "Panel width" + }, + "dict_panel_height_ratio": { + "zh_CN": "查词面板最高占屏幕比例", + "zh_TW": "查字典介面最高占螢幕高度比例", + "en": "Panel max height ratio" + }, + "dict_panel_font_size": { + "zh_CN": "词典内容字体大小", + "zh_TW": "字典内容字體大小", + "en": "Font size for search reasults" + }, "word_list_title": { "zh_CN": "单词列表", "zh_TW": "單字和例句列表", @@ -62,7 +92,7 @@ "word_list_history": { "zh_CN": "记录查词历史", "zh_TW": "記錄查字歷史", - "en": "Track search history" + "en": "Keep search history" }, "word_list_description": { "zh_CN": "关闭记录查词历史后先前的记录依然保留,可在查词历史页面手动清空。", @@ -112,7 +142,7 @@ "pinmode_title": { "zh_CN": "钉住查词", "zh_TW": "釘住查字", - "en": "Pinned Search Mode" + "en": "Pinned Mode" }, "pinmode_description": { "zh_CN": "当面板被钉住时的查词模式。", @@ -121,7 +151,7 @@ }, "preload": { "zh_CN": "预先加载", - "zh_TW": "預先加載", + "zh_TW": "預先下載", "en": "Preload" }, "preload_clipboard": { @@ -201,8 +231,8 @@ }, "triple_ctrl_description": { "zh_CN": "连续按三次Ctrl或者Command ⌘键将弹出词典界面。选择预先加载内容会显示在输入框里。启动自动查词将在面板出现之后自动开始查词。", - "zh_TW": "連續按滑鼠三次Ctrl或者Command ⌘鍵,將會彈出字典視窗介面。選擇預先下載的內容,會顯示在輸入框裡。啟動自動查字功能,字典視窗介面會出現,此時,會自動開始查尋單字。", - "en": "Press Ctrl or Command ⌘ key three times summons the dictionary panel. Preloaded content will be inserted into input box. Enable auto search to search as soon as the panel shows up." + "zh_TW": "連續按三次Ctrl或者Command ⌘鍵,將會彈出字典視窗介面。選擇預先下載的內容,會顯示在輸入框裡。啟動自動查字功能,字典視窗介面會出現,此時,會自動開始查尋單字。", + "en": "Press Ctrl or Command ⌘ key three times to summon the dictionary panel. Preloaded content will be inserted into input box. Enable auto search to search as soon as the panel shows up." }, "popup_title": { "zh_CN": "右上弹框", @@ -216,7 +246,7 @@ }, "language_title": { "zh_CN": "语言支持", - "zh_TW": "語言支持", + "zh_TW": "語言支援", "en": "Language" }, "language_chinese": { @@ -262,7 +292,7 @@ "autopron_description": { "zh_CN": "下拉列表的项目为支持自动发音的词典,开启功能还必须启用词典,见下方“词典配置”。“默认展开”与相应的语言显示须要勾选。", "zh_TW": "下拉列表的選項項目為支持自動發音的字典。開啟功能,還必須啟動字典。見下方「字典配置設定」。「確認展開」與相對應的語言顯示,須要勾選。", - "en": "To fully enable auto pronunciation, selected the dicts that are needed to be activated. \"Default Unfold\" and language match should be checked. See below." + "en": "To fully enable auto pronunciation, selected the dicts that are needed to be activated. \"Default Unfold\" and language match should be checked accordingly. See below." }, "dicts_title": { "zh_CN": "词典设置", @@ -286,12 +316,12 @@ }, "dict_default_height": { "zh_CN": "默认高度", - "zh_TW": "確認高度", + "zh_TW": "預設高度", "en": "Default height" }, "dict_default_unfold": { "zh_CN": "默认展开", - "zh_TW": "確認展開", + "zh_TW": "自動展開", "en": "Default Unfold" }, "dict_show_when_chs": { @@ -317,7 +347,7 @@ "context_description": { "zh_CN": "选择单词之后可以通过右键查找或者搜索。拖动标题可以进行排序。", "zh_TW": "選擇單字和句子後可以按滑鼠右鍵查尋或者搜尋。使用滑鼠拖動標題可以進行排列。", - "en": "Context menu when right click a text selection. Drag to sort." + "en": "Context menu shows up when right clicking a text selection. Drag items to sort." }, "contact_author": { "zh_CN": "联系作者", @@ -336,8 +366,8 @@ }, "buy_me_a_coffee": { "zh_CN": "觉得好用的话欢迎支持一下我买杯咖啡哦~", - "zh_TW": "覺得好用的話,歡迎支持我一下。買杯咖啡送給我哦!謝謝!~", - "en": "Enjoy the Extension? Buy me a coffee~" + "zh_TW": "覺得好用的話,歡迎支持我一下買杯咖啡哦!謝謝!~", + "en": "Enjoying the extension? Care to oblige me with a cup of coffee?" }, "wechat": { "zh_CN": "微信", diff --git a/src/options/Coffee.vue b/src/options/Coffee.vue index f9de2dfe7..b5e5da5c6 100644 --- a/src/options/Coffee.vue +++ b/src/options/Coffee.vue @@ -25,9 +25,9 @@

- {{ $t('opt:contact_author') }} + {{ $t('opt:contact_author') }} -

+
@@ -80,6 +80,16 @@ export default { } }, methods: { + showSocialMedia (flag) { + clearTimeout(this.__showSocialMediaTimeout) + if (flag) { + this.isShowSocial = true + } else { + this.__showSocialMediaTimeout = setTimeout(() => { + this.isShowSocial = false + }, 400) + } + }, coffeeMouseover () { this.showPayment = true }, diff --git a/src/options/OptDictPanel.vue b/src/options/OptDictPanel.vue new file mode 100644 index 000000000..39fe9d72f --- /dev/null +++ b/src/options/OptDictPanel.vue @@ -0,0 +1,73 @@ + + + diff --git a/src/options/OptDicts.vue b/src/options/OptDicts.vue index 82b47076a..1b8504fa9 100644 --- a/src/options/OptDicts.vue +++ b/src/options/OptDicts.vue @@ -67,7 +67,7 @@
{{ $t('opt:dict_default_height') }}
- +
px
@@ -77,7 +77,7 @@
{{ $t(`dict:${id}_${optKey}`) }}
- +
{{ $t(`dict:${id}_${optKey}_unit`) }}
@@ -104,7 +104,7 @@ diff --git a/src/options/Options.vue b/src/options/Options.vue index 7b6d566c2..3e9fc59e4 100644 --- a/src/options/Options.vue +++ b/src/options/Options.vue @@ -13,9 +13,9 @@ + + - @@ -39,12 +40,12 @@
- + > -->
@@ -58,12 +59,13 @@