Merge pull request #2354 from return42/fix-doc-zh

[fix] doc of locales.get_engine_locale() / zh-classical is missleading
This commit is contained in:
Markus Heiser 2023-04-17 08:53:27 +02:00 committed by GitHub
commit 3ba0587666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -166,8 +166,6 @@ def send_wikidata_query(query, method='GET'):
def request(query, params):
# wikidata does not support zh-classical (zh_Hans) / zh-TW, zh-HK and zh-CN
# mapped to zh
eng_tag, _wiki_netloc = get_wiki_params(params['searxng_locale'], traits)
query, attributes = get_query(query, eng_tag)
logger.debug("request --> language %s // len(attributes): %s", eng_tag, len(attributes))

View File

@ -245,7 +245,7 @@ def get_engine_locale(searxng_locale, engine_locales, default=None):
..
'zh' : 'zh'
'zh_Hans' : 'zh'
'zh_Hant' : 'zh-classical'
'zh_Hant' : 'zh_TW'
}
.. hint::