summaryrefslogtreecommitdiff
path: root/searx/locales.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2023-04-17 08:40:44 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2023-04-17 08:48:57 +0200
commit9b575a997ba207fcab815af9e48ef4b30975c306 (patch)
tree755f0a94dbe4020418ddd9e7f83a6885bc56efe6 /searx/locales.py
parentc0bc8634fd8d4c433ce91fbc868270504c2e00be (diff)
downloadsearxng-9b575a997ba207fcab815af9e48ef4b30975c306.tar.gz
searxng-9b575a997ba207fcab815af9e48ef4b30975c306.zip
[fix] doc of locales.get_engine_locale() / zh-classical is missleading
Wikipedia's zh-classical is not zh_Hant (see doc-string of engines.wikipedia). Fixed the example in the doc-string of locales.get_engine_locale() to 'zh_TW'. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/locales.py')
-rw-r--r--searx/locales.py2
1 files changed, 1 insertions, 1 deletions
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::