1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00

Merge pull request #1654 from MarcAbonce/small_fixes

[fix] Small fixes in Preferences view's text
This commit is contained in:
Alexandre Flament 2019-07-28 10:31:57 +02:00 committed by GitHub
commit c6ac39bcea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 5 deletions

View File

@ -70,4 +70,4 @@ def answer(query):
def self_info():
return {'name': gettext('Random value generator'),
'description': gettext('Generate different random values'),
'examples': [u'random {}'.format(x) for x in random_types]}
'examples': [u'random {}'.format(x.decode('utf-8')) for x in random_types]}

View File

@ -792,7 +792,7 @@ locales:
te : తెలుగు (telugu)
tr : Türkçe (Turkish)
uk : українська мова (Ukrainian)
vi : tiếng việt (㗂越)
vi : tiếng việt (Vietnamese)
zh : 中文 (Chinese)
zh_TW : 國語 (Taiwanese Mandarin)

View File

@ -166,9 +166,6 @@ def get_locale():
and request.form['locale'] in settings['locales']:
locale = request.form['locale']
if locale == 'zh_TW':
locale = 'zh_Hant_TW'
return locale