1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-03-15 06:03:38 +01:00

Clean up a couple of not used localize functions

This commit is contained in:
2020-05-17 20:45:40 +02:00
parent b4067b29c9
commit 0fc6e3b081
3 changed files with 7 additions and 121 deletions

View File

@@ -13,12 +13,7 @@ from ebook_converter.utils.config import tweaks
from ebook_converter.utils.titlecase import titlecase
from ebook_converter.utils.icu import capitalize, strcmp, sort_key
from ebook_converter.utils.date import parse_date, format_date, now, UNDEFINED_DATE
from ebook_converter.utils.localization import calibre_langcode_to_name, canonicalize_lang
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
from ebook_converter.utils.localization import langcode_to_name, canonicalize_lang
class FormatterFunctions(object):
@@ -1426,7 +1421,7 @@ class BuiltinLanguageStrings(BuiltinFormatterFunction):
retval = []
for c in [c.strip() for c in lang_codes.split(',') if c.strip()]:
try:
n = calibre_langcode_to_name(c)
n = langcode_to_name(c)
if n:
retval.append(n)
except: