1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-18 12:03:33 +02:00

Removed gettext related functions

This commit is contained in:
2020-05-03 19:00:20 +02:00
parent 35445cb736
commit 212cb56d42
92 changed files with 1505 additions and 1605 deletions

View File

@@ -12,13 +12,6 @@ import sys
from ebook_converter import constants
# Default translation is NOOP
builtins.__dict__['_'] = lambda s: s
# For strings which belong in the translation tables, but which shouldn't be
# immediately translated to the environment language
builtins.__dict__['__'] = lambda s: s
# For backwards compat with some third party plugins
builtins.__dict__['dynamic_property'] = lambda func: func(None)
@@ -93,12 +86,6 @@ if not _run_once:
import ebook_converter.utils.resources as resources
resources
#
# Setup translations
from ebook_converter.utils.localization import set_translators
set_translators()
#
# Initialize locale
# Import string as we do not want locale specific