diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2023-04-17 08:53:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-17 08:53:27 +0200 |
| commit | 3ba058766680f838027767457e7f0f5c9590ff90 (patch) | |
| tree | 755f0a94dbe4020418ddd9e7f83a6885bc56efe6 | |
| parent | c0bc8634fd8d4c433ce91fbc868270504c2e00be (diff) | |
| parent | 9b575a997ba207fcab815af9e48ef4b30975c306 (diff) | |
Merge pull request #2354 from return42/fix-doc-zh
[fix] doc of locales.get_engine_locale() / zh-classical is missleading
| -rw-r--r-- | searx/engines/wikidata.py | 2 | ||||
| -rw-r--r-- | searx/locales.py | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/searx/engines/wikidata.py b/searx/engines/wikidata.py index b9de67ef9..34d408158 100644 --- a/searx/engines/wikidata.py +++ b/searx/engines/wikidata.py @@ -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)) diff --git a/searx/locales.py b/searx/locales.py index ffa5e731c..c765eb198 100644 --- a/searx/locales.py +++ b/searx/locales.py @@ -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:: |