-
-
Notifications
You must be signed in to change notification settings - Fork 119
/
__init__.py
38 lines (27 loc) · 1.2 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import os
from calibre.constants import DEBUG
from calibre.customize import InterfaceActionBase
__license__ = 'GPL v3'
__copyright__ = '2023, bookfere.com <[email protected]>'
__docformat__ = 'restructuredtext en'
load_translations()
# To prevent update errors, avoid importing anything from plugin modules.
def _z(message): return message
class EbookTranslator(InterfaceActionBase):
name = _z('Ebook Translator')
title = _(name)
supported_platforms = ['windows', 'osx', 'linux']
identifier = 'ebook-translator'
author = 'bookfere.com'
version = (2, 3, 5)
__version__ = 'v' + '.'.join(map(str, version))
description = _('A Calibre plugin to translate ebook into a specified '
'language (optionally keeping the original content).')
# see: https://www.mobileread.com/forums/showthread.php?t=242223
minimum_calibre_version = (5, 0, 0)
actual_plugin = 'calibre_plugins.ebook_translator.ui:EbookTranslatorGui'
# The DEBUG constant cannot be shared with new worker processes.
# To ensure that it is available, add it to the OS environment.
DEBUG and os.environ.update(CALIBRE_DEBUG=str(DEBUG))
def is_customizable(self):
return False