Skip to content

Commit

Permalink
Fix regression:If there is no dictionary definition, the translated w…
Browse files Browse the repository at this point in the history
…ord itself is reported.
  • Loading branch information
cary-rowen committed Dec 2, 2023
1 parent 502ce4f commit 943e2c6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 210 deletions.
206 changes: 0 additions & 206 deletions addon/doc/zh_CN/readme.md

This file was deleted.

4 changes: 1 addition & 3 deletions addon/globalPlugins/clipboardEnhancement/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,9 +493,7 @@ def _switchWord(self, step=0):
# Translate and message word if step is zero
elif step == 0:
word = words[self.word].lower()
translated_word = utility.translateWord(self.Dict, word)
if translated_word:
ui.message(translated_word)
ui.message(utility.translateWord(self.Dict, word) or word)

# Return if the line changed
if flag:
Expand Down
2 changes: 1 addition & 1 deletion buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _(arg):
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
"addon_description": _("""对 Windows 剪贴板和 NVDA 最后一次朗读的内容进行增强支持。"""),
# version
"addon_version": "2.7.5",
"addon_version": "2.7.6",
# Author(s)
"addon_author": "大可 <[email protected]>; Cary-rowen <[email protected]>",
# URL for the add-on documentation support
Expand Down
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
- huaiyinfeilong (代码贡献者)

## 更新日志
### V2.7.6 更新日志
* 修复回归:在没有词典定义时则读出被查询单词本身。

### V2.7.5 更新日志
* 解决连续播放音效引起的 potential freeze 错误,进而解决在启用了 WASAPI 情况下逐一浏览剪贴板文件的明显卡顿。
* 优化了多处代码逻辑以提高性能。
Expand Down

0 comments on commit 943e2c6

Please sign in to comment.