summaryrefslogtreecommitdiff
path: root/.coveragerc
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-06-10 17:01:12 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-06-12 10:52:26 +0200
commitad964562ce249f86b806638d1eab2afc2c4ed8df (patch)
treeb3bd3ebd249effd90c7164252178d61d99112e15 /.coveragerc
parent59ef9b9287f1beda12f7b9a20b93cbc378a22bac (diff)
downloadsearxng-ad964562ce249f86b806638d1eab2afc2c4ed8df.tar.gz
searxng-ad964562ce249f86b806638d1eab2afc2c4ed8df.zip
[fix] move locale code from webapp.py to locales.py and fix #1303
To improve modularization this patch: - moves *locale* related implementation from the webapp.py application to the locale.py module. - The initialization of the locales is now done in the application (webapp) and is no longer done while importing searx.locales. In the searx.locales module a new dictionary named `LOCALE_BEST_MATCH` has been added. In this dictionary we can map languages without a translation to languages we have a translation for. To fix #1303 zh-HK has been mapped to zh-Hant-TW (we do not need additional translations of traditional Chinese) Closes: https://github.com/searxng/searxng/issues/1303 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to '.coveragerc')
0 files changed, 0 insertions, 0 deletions