Skip to content

Commit

Permalink
Release 1.7.2
Browse files Browse the repository at this point in the history
修复剪贴板翻译无法翻译的问题。
  • Loading branch information
huaiyinfeilong committed Jun 5, 2023
1 parent d3c1eeb commit ecf77d0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions addon/doc/zh_CN/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@

## 升级日志

### Version 1.7.2

* 修复剪贴板翻译无法翻译的问题。

### Version 1.7.1

* 设置中增加“清除缓存”功能,可对翻译历史缓存数据进行清除。
Expand Down
2 changes: 1 addition & 1 deletion addon/globalPlugins/baiduTranslation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def clipboard_translation(self, reverse=False):
temp = from_language
from_language = to_language
to_language = temp
self._translate(to_language, from_language, self._data)
self._translate(from_language, to_language, text)

def _onResult(self, fromLanguage, toLanguage, source, target):
if isinstance(target, TranslationException):
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": _("An NVDA add-on that provides baidu translation"),
# version
"addon_version": "1.7.1",
"addon_version": "1.7.2",
# Translators: Author(s)
"addon_author": "huaiyinfeilong <huaiyinfeilong@163.com>",
# URL for the add-on documentation support
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ Any comments and suggestions are welcome to communicate:

## Upgrade log

### Version 1.7.2

* Fix the issue of clipboard translation not being able to translate.

### Version 1.7.1

* Add the "Clear Cache" function in the settings to clear the translation history cache data.
Expand Down

0 comments on commit ecf77d0

Please sign in to comment.