Skip to content

Commit

Permalink
Upgraded the plugin version to 2.3.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
bookfere committed May 5, 2024
1 parent b3afafd commit c4808c7
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
## v2.3.4

Added features and fixed bugs as follows:

1. feat: Added filtering feature to Advanced mode.
2. feat: Supports reserving elements using CSS selectors.
3. feat: Supports setting priority elements for extraction.
4. feat: Added translation status indicator. Credit to @Andy-AO.
5. feat: Added non-aligned items counter in Advanced mode. Credit to @Andy-AO.
6. feat: Marks failed translations with red color.
7. feat: Shows last modification time for caches on cache manager.
8. feat: Supports disabling and auto-hiding notifications.
9. feat: Added keyboard shortcut and mnemonics features.
10. feat: Allows users to choose the text direction for translation.
11. feat: Separated translation progress from conversion progress.
12. fix: Fixed bug preventing setting original text color.
13. fix: Fixed bug when adding translation for line breaks.
14. fix: Fixed bug causing error when deleting rows.
15. fix: Properly shows item status after saving edits.

---

## v2.3.3

Added features and fixed bugs as follows:
Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class EbookTranslator(InterfaceActionBase):
supported_platforms = ['windows', 'osx', 'linux']
identifier = 'ebook-translator'
author = 'bookfere.com'
version = (2, 3, 3)
version = (2, 3, 4)
__version__ = 'v' + '.'.join(map(str, version))
description = _('A Calibre plugin to translate ebook into a specified '
'language (optionally keeping the original content).')
Expand Down
6 changes: 6 additions & 0 deletions advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,12 @@ def layout_review(self):
original_text = QPlainTextEdit()
original_text.setReadOnly(True)
translation_text = QPlainTextEdit()
if self.ebook.target_direction == 'rtl':
translation_text.setLayoutDirection(Qt.RightToLeft)
document = translation_text.document()
option = document.defaultTextOption()
option.setAlignment(Qt.AlignRight)
document.setDefaultTextOption(option)
translation_text.setPlaceholderText(_('No translation yet'))
splitter.addWidget(raw_text)
splitter.addWidget(original_text)
Expand Down
2 changes: 2 additions & 0 deletions engines/languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@

deepl = {
'source': {
'Arabic': 'AR',
'Bulgarian': 'BG',
'Czech': 'CS',
'Danish': 'DA',
Expand Down Expand Up @@ -210,6 +211,7 @@
'Chinese': 'ZH'
},
'target': {
'Arabic': 'AR',
'Bulgarian': 'BG',
'Czech': 'CS',
'Danish': 'DA',
Expand Down

0 comments on commit c4808c7

Please sign in to comment.