1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-14 17:43:31 +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

@@ -151,10 +151,10 @@ def get_metadata_(src, encoding=None):
return ans
# Title
title = get('title') or title_tag.strip() or _('Unknown')
title = get('title') or title_tag.strip() or 'Unknown'
# Author
authors = authors_to_string(get_all('authors')) or _('Unknown')
authors = authors_to_string(get_all('authors')) or 'Unknown'
# Create MetaInformation with Title and Author
mi = Metadata(title, string_to_authors(authors))
@@ -340,7 +340,7 @@ class MetadataHtmlTest(unittest.TestCase):
def test_input_title(self):
stream_meta = get_metadata(self.get_stream('title'))
canon_meta = Metadata('A Title Tag & Title Ⓒ', [_('Unknown')])
canon_meta = Metadata('A Title Tag & Title Ⓒ', ['Unknown'])
self.compare_metadata(stream_meta, canon_meta)
def test_input_meta_single(self):