Move Taipei Times to English (Taiwan)

This commit is contained in:
Kovid Goyal 2017-02-07 23:29:33 +05:30
parent 4c54fca922
commit a7989ebec0
2 changed files with 7 additions and 1 deletions

View File

@ -3,7 +3,7 @@ from calibre.web.feeds.news import BasicNewsRecipe
class TN(BasicNewsRecipe):
title = u'Taipei Times'
language = 'en_CN'
language = 'en_TW'
__author__ = 'Krittika Goyal'
oldest_article = 1 # days
max_articles_per_feed = 25

View File

@ -104,6 +104,7 @@ def zf_exists():
return os.path.exists(P('localization/locales.zip',
allow_user_override=False))
_lang_trans = None
@ -144,6 +145,7 @@ def get_translator(bcp_47_code):
return found, lang, NullTranslations()
return found, lang, get_single_translator(lang)
lcdata = {
u'abday': (u'Sun', u'Mon', u'Tue', u'Wed', u'Thu', u'Fri', u'Sat'),
u'abmon': (u'Jan', u'Feb', u'Mar', u'Apr', u'May', u'Jun', u'Jul', u'Aug', u'Sep', u'Oct', u'Nov', u'Dec'),
@ -223,6 +225,7 @@ def set_translators():
from calibre.utils.config_base import prefs
prefs.retranslate_help()
_iso639 = None
_extra_lang_codes = {
'pt_BR' : _('Brazilian Portuguese'),
@ -258,6 +261,7 @@ _extra_lang_codes = {
'en_YE' : _('English (Yemen)'),
'en_IE' : _('English (Ireland)'),
'en_CN' : _('English (China)'),
'en_TW' : _('English (Taiwan)'),
'en_ZA' : _('English (South Africa)'),
'es_PY' : _('Spanish (Paraguay)'),
'es_UY' : _('Spanish (Uruguay)'),
@ -380,6 +384,7 @@ def canonicalize_lang(raw):
return iso639['name_map'].get(raw, None)
_lang_map = None
@ -422,6 +427,7 @@ def lang_as_iso639_1(name_or_code):
iso639 = _load_iso639()
return iso639['3to2'].get(code, None)
_udc = None