Browse Source

Merge branch 'master' into master

Michael Vieira 6 years ago
parent
commit
eb0abb0825
No account linked to committer's email

+ 6
- 0
AUTHORS.rst View File

77
 - @pyrrh0n1c
77
 - @pyrrh0n1c
78
 - @cclauss
78
 - @cclauss
79
 - QGW @moon2l
79
 - QGW @moon2l
80
+- Pierre-Alain Toret @daftaupe
81
+- Matthew Olmsted @icegiant
82
+- Michael Tran @trankmichael
83
+- Joseph Nuthalapati @josephkiranbabu
84
+- @maiki
85
+- Richard Didier @zeph33

+ 13
- 0
CHANGELOG.rst View File

1
+0.14.0 2018.02.19
2
+=================
3
+
4
+- New theme: oscar-logicodev dark
5
+- New engines
6
+
7
+  - AskSteem (general)
8
+- Autocompleter fix for py3
9
+- Engine fixes (pdbe, pubmed, gigablast, google, yacy, bing videos, microsoft academic)
10
+- "All" option is removed from languages
11
+- Minor UI changes
12
+- Translation updates
13
+
1
 0.13.1 2017.11.23
14
 0.13.1 2017.11.23
2
 =================
15
 =================
3
 
16
 

+ 2
- 10
manage.sh View File

3
 BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")"
3
 BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")"
4
 export PATH="$BASE_DIR/node_modules/.bin":$PATH
4
 export PATH="$BASE_DIR/node_modules/.bin":$PATH
5
 
5
 
6
-# the script can be sourced to update the PATH
7
-# see https://stackoverflow.com/questions/2683279/how-to-detect-if-a-script-is-being-sourced
8
-if [ $_ != $0 ]; then
9
-    unset BASE_DIR
10
-    # sourced : exit now
11
-    return
12
-fi
13
-
14
 # subshell
6
 # subshell
15
 PYTHONPATH="$BASE_DIR"
7
 PYTHONPATH="$BASE_DIR"
16
 SEARX_DIR="$BASE_DIR/searx"
8
 SEARX_DIR="$BASE_DIR/searx"
56
 
48
 
57
     if [ -z "$1" ]; then
49
     if [ -z "$1" ]; then
58
         if [ -z "$VIRTUAL_ENV" ]; then
50
         if [ -z "$VIRTUAL_ENV" ]; then
59
-            echo "geckodriver can't be installed because VIRTUAL_ENV is not set, you should download it from\n  $GECKODRIVER_URL"
51
+            printf "geckodriver can't be installed because VIRTUAL_ENV is not set, you should download it from\n  %s" "$GECKODRIVER_URL"
60
             exit
52
             exit
61
         else
53
         else
62
             GECKODRIVER_DIR="$VIRTUAL_ENV/bin"
54
             GECKODRIVER_DIR="$VIRTUAL_ENV/bin"
66
         mkdir -p -- "$GECKODRIVER_DIR"
58
         mkdir -p -- "$GECKODRIVER_DIR"
67
     fi
59
     fi
68
 
60
 
69
-    echo "Installing $GECKODRIVER_DIR/geckodriver from\n  $GECKODRIVER_URL"
61
+    printf "Installing %s/geckodriver from\n  %s" "$GECKODRIVER_DIR" "$GECKODRIVER_URL"
70
 
62
 
71
     FILE="`mktemp`"
63
     FILE="`mktemp`"
72
     wget -qO "$FILE" -- "$GECKODRIVER_URL" && tar xz -C "$GECKODRIVER_DIR" -f "$FILE" geckodriver
64
     wget -qO "$FILE" -- "$GECKODRIVER_URL" && tar xz -C "$GECKODRIVER_DIR" -f "$FILE" geckodriver

+ 4
- 4
searx/engines/__init__.py View File

230
 
230
 
231
 def initialize_engines(engine_list):
231
 def initialize_engines(engine_list):
232
     load_engines(engine_list)
232
     load_engines(engine_list)
233
-    for engine in engines.items():
233
+    for engine_name, engine in engines.items():
234
         if hasattr(engine, 'init'):
234
         if hasattr(engine, 'init'):
235
-            init_fn = getattr(engine, engine_attr)
235
+            init_fn = getattr(engine, 'init')
236
 
236
 
237
             def engine_init():
237
             def engine_init():
238
                 init_fn()
238
                 init_fn()
239
-                logger.debug('%s engine initialized', engine_data['name'])
240
-            logger.debug('Starting background initialization of %s engine', engine_data['name'])
239
+                logger.debug('%s engine initialized', engine_name)
240
+            logger.debug('Starting background initialization of %s engine', engine_name)
241
             threading.Thread(target=engine_init).start()
241
             threading.Thread(target=engine_init).start()

+ 44
- 0
searx/engines/asksteem.py View File

1
+"""
2
+ Asksteem (general)
3
+
4
+ @website     https://asksteem.com/
5
+ @provide-api yes
6
+
7
+ @using-api   yes
8
+ @results     JSON (https://github.com/Hoxly/asksteem-docs/wiki)
9
+ @stable      yes
10
+ @parse       url, title, content
11
+"""
12
+
13
+from json import loads
14
+from searx.url_utils import urlencode
15
+
16
+# engine dependent config
17
+categories = ['general']
18
+paging = True
19
+language_support = False
20
+disabled = True
21
+
22
+# search-url
23
+search_url = 'https://api.asksteem.com/search?{params}'
24
+result_url = 'https://steemit.com/@{author}/{title}'
25
+
26
+
27
+# do search-request
28
+def request(query, params):
29
+    url = search_url.format(params=urlencode({'q': query, 'pg': params['pageno']}))
30
+    params['url'] = url
31
+    return params
32
+
33
+
34
+# get response from search-request
35
+def response(resp):
36
+    json = loads(resp.text)
37
+
38
+    results = []
39
+
40
+    for result in json.get('results', []):
41
+        results.append({'url': result_url.format(author=result['author'], title=result['permlink']),
42
+                        'title': result['title'],
43
+                        'content': result['summary']})
44
+    return results

+ 75
- 0
searx/engines/microsoft_academic.py View File

1
+"""
2
+Microsoft Academic (Science)
3
+
4
+@website     https://academic.microsoft.com
5
+@provide-api yes
6
+@using-api   no
7
+@results     JSON
8
+@stable      no
9
+@parse       url, title, content
10
+"""
11
+
12
+from datetime import datetime
13
+from json import loads
14
+from uuid import uuid4
15
+
16
+from searx.url_utils import urlencode
17
+from searx.utils import html_to_text
18
+
19
+categories = ['images']
20
+paging = True
21
+result_url = 'https://academic.microsoft.com/api/search/GetEntityResults?{query}'
22
+
23
+
24
+def request(query, params):
25
+    correlation_id = uuid4()
26
+    msacademic = uuid4()
27
+    time_now = datetime.now()
28
+
29
+    params['url'] = result_url.format(query=urlencode({'correlationId': correlation_id}))
30
+    params['cookies']['msacademic'] = str(msacademic)
31
+    params['cookies']['ai_user'] = 'vhd0H|{now}'.format(now=str(time_now))
32
+    params['method'] = 'POST'
33
+    params['data'] = {
34
+        'Query': '@{query}@'.format(query=query),
35
+        'Limit': 10,
36
+        'Offset': params['pageno'] - 1,
37
+        'Filters': '',
38
+        'OrderBy': '',
39
+        'SortAscending': False,
40
+    }
41
+
42
+    return params
43
+
44
+
45
+def response(resp):
46
+    results = []
47
+    response_data = loads(resp.text)
48
+
49
+    for result in response_data['results']:
50
+        url = _get_url(result)
51
+        title = result['e']['dn']
52
+        content = _get_content(result)
53
+        results.append({
54
+            'url': url,
55
+            'title': html_to_text(title),
56
+            'content': html_to_text(content),
57
+        })
58
+
59
+    return results
60
+
61
+
62
+def _get_url(result):
63
+    if 's' in result['e']:
64
+        return result['e']['s'][0]['u']
65
+    return 'https://academic.microsoft.com/#/detail/{pid}'.format(pid=result['id'])
66
+
67
+
68
+def _get_content(result):
69
+    if 'd' in result['e']:
70
+        content = result['e']['d']
71
+        if len(content) > 300:
72
+            return content[:300] + '...'
73
+        return content
74
+
75
+    return ''

+ 7
- 9
searx/settings.yml View File

66
     categories : science
66
     categories : science
67
     timeout : 4.0
67
     timeout : 4.0
68
 
68
 
69
+  - name : asksteem
70
+    engine : asksteem
71
+    shortcut : as
72
+
69
   - name : base
73
   - name : base
70
     engine : base
74
     engine : base
71
     shortcut : bs
75
     shortcut : bs
398
     shortcut : lo
402
     shortcut : lo
399
 
403
 
400
   - name : microsoft academic
404
   - name : microsoft academic
401
-    engine : json_engine
402
-    paging : True
403
-    search_url : https://academic.microsoft.com/api/search/GetEntityResults?query=%40{query}%40&filters=&offset={pageno}&limit=8&correlationId=undefined
404
-    results_query : results
405
-    url_query : u
406
-    title_query : dn
407
-    content_query : d
408
-    page_size : 8
409
-    first_page_num : 0
405
+    engine : microsoft_academic
410
     categories : science
406
     categories : science
411
     shortcut : ma
407
     shortcut : ma
412
 
408
 
719
     eo : Esperanto (Esperanto)
715
     eo : Esperanto (Esperanto)
720
     es : Español (Spanish)
716
     es : Español (Spanish)
721
     fi : Suomi (Finnish)
717
     fi : Suomi (Finnish)
718
+    fil : Wikang Filipino (Filipino)
722
     fr : Français (French)
719
     fr : Français (French)
723
     he : עברית (Hebrew)
720
     he : עברית (Hebrew)
724
     hr : Hrvatski (Croatian)
721
     hr : Hrvatski (Croatian)
737
     tr : Türkçe (Turkish)
734
     tr : Türkçe (Turkish)
738
     uk : українська мова (Ukrainian)
735
     uk : українська мова (Ukrainian)
739
     zh : 中文 (Chinese)
736
     zh : 中文 (Chinese)
737
+    zh_TW : 國語 (Taiwanese Mandarin)
740
 
738
 
741
 doi_resolvers :
739
 doi_resolvers :
742
   oadoi.org : 'https://oadoi.org/'
740
   oadoi.org : 'https://oadoi.org/'

BIN
searx/translations/es/LC_MESSAGES/messages.mo View File


+ 5
- 4
searx/translations/es/LC_MESSAGES/messages.po View File

5
 # Translators:
5
 # Translators:
6
 # Adam Tauber <asciimoo@gmail.com>, 2015
6
 # Adam Tauber <asciimoo@gmail.com>, 2015
7
 # Alejandro León Aznar, 2014
7
 # Alejandro León Aznar, 2014
8
-# Alejandro León Aznar, 2014-2017
8
+# Alejandro León Aznar, 2014-2018
9
 # Carmen Fernández B., 2016
9
 # Carmen Fernández B., 2016
10
 # juanda097 <juanda097@protonmail.ch>, 2016
10
 # juanda097 <juanda097@protonmail.ch>, 2016
11
 # juanda097 <juanda097@protonmail.ch>, 2017
11
 # juanda097 <juanda097@protonmail.ch>, 2017
12
 # Marc Abonce Seguin, 2016
12
 # Marc Abonce Seguin, 2016
13
+# Marc Abonce Seguin, 2018
13
 # Oscar <ocf@openmailbox.org>, 2015
14
 # Oscar <ocf@openmailbox.org>, 2015
14
 # rivera valdez <riveravaldezmail@gmail.com>, 2016
15
 # rivera valdez <riveravaldezmail@gmail.com>, 2016
15
 # wefwefew ewfewfewf <nnnedmz0d@moakt.ws>, 2016
16
 # wefwefew ewfewfewf <nnnedmz0d@moakt.ws>, 2016
18
 "Project-Id-Version: searx\n"
19
 "Project-Id-Version: searx\n"
19
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
20
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
20
 "POT-Creation-Date: 2017-11-01 21:31+0100\n"
21
 "POT-Creation-Date: 2017-11-01 21:31+0100\n"
21
-"PO-Revision-Date: 2017-12-18 06:34+0000\n"
22
-"Last-Translator: juanda097 <juanda097@protonmail.ch>\n"
22
+"PO-Revision-Date: 2018-02-16 05:29+0000\n"
23
+"Last-Translator: Marc Abonce Seguin\n"
23
 "Language-Team: Spanish (http://www.transifex.com/asciimoo/searx/language/es/)\n"
24
 "Language-Team: Spanish (http://www.transifex.com/asciimoo/searx/language/es/)\n"
24
 "MIME-Version: 1.0\n"
25
 "MIME-Version: 1.0\n"
25
 "Content-Type: text/plain; charset=UTF-8\n"
26
 "Content-Type: text/plain; charset=UTF-8\n"
738
 #: searx/templates/oscar/preferences.html:164
739
 #: searx/templates/oscar/preferences.html:164
739
 #: searx/templates/oscar/preferences.html:174
740
 #: searx/templates/oscar/preferences.html:174
740
 msgid "Selected language"
741
 msgid "Selected language"
741
-msgstr "Elegir idioma"
742
+msgstr "Idioma elegido"
742
 
743
 
743
 #: searx/templates/oscar/preferences.html:166
744
 #: searx/templates/oscar/preferences.html:166
744
 #: searx/templates/oscar/preferences.html:172
745
 #: searx/templates/oscar/preferences.html:172

BIN
searx/translations/fil/LC_MESSAGES/messages.mo View File


+ 1014
- 0
searx/translations/fil/LC_MESSAGES/messages.po
File diff suppressed because it is too large
View File


BIN
searx/translations/nl/LC_MESSAGES/messages.mo View File


+ 30
- 30
searx/translations/nl/LC_MESSAGES/messages.po View File

4
 # 
4
 # 
5
 # Translators:
5
 # Translators:
6
 # André Koot <meneer@tken.net>, 2014-2017
6
 # André Koot <meneer@tken.net>, 2014-2017
7
-# Nathan Follens, 2015-2017
7
+# Nathan Follens, 2015-2018
8
 # Rejo Zenger <rejo@zenger.nl>, 2016-2017
8
 # Rejo Zenger <rejo@zenger.nl>, 2016-2017
9
 msgid ""
9
 msgid ""
10
 msgstr ""
10
 msgstr ""
11
 "Project-Id-Version: searx\n"
11
 "Project-Id-Version: searx\n"
12
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
12
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
13
 "POT-Creation-Date: 2017-11-01 21:31+0100\n"
13
 "POT-Creation-Date: 2017-11-01 21:31+0100\n"
14
-"PO-Revision-Date: 2017-12-17 17:06+0000\n"
15
-"Last-Translator: André Koot <meneer@tken.net>\n"
14
+"PO-Revision-Date: 2018-02-15 22:43+0000\n"
15
+"Last-Translator: Nathan Follens\n"
16
 "Language-Team: Dutch (http://www.transifex.com/asciimoo/searx/language/nl/)\n"
16
 "Language-Team: Dutch (http://www.transifex.com/asciimoo/searx/language/nl/)\n"
17
 "MIME-Version: 1.0\n"
17
 "MIME-Version: 1.0\n"
18
 "Content-Type: text/plain; charset=UTF-8\n"
18
 "Content-Type: text/plain; charset=UTF-8\n"
27
 
27
 
28
 #: searx/search.py:144
28
 #: searx/search.py:144
29
 msgid "request exception"
29
 msgid "request exception"
30
-msgstr "aanvraag uitzondering"
30
+msgstr "aanvraaguitzondering"
31
 
31
 
32
 #: searx/search.py:151
32
 #: searx/search.py:151
33
 msgid "unexpected crash"
33
 msgid "unexpected crash"
55
 
55
 
56
 #: searx/webapp.py:141
56
 #: searx/webapp.py:141
57
 msgid "videos"
57
 msgid "videos"
58
-msgstr "video's"
58
+msgstr "videos"
59
 
59
 
60
 #: searx/webapp.py:142
60
 #: searx/webapp.py:142
61
 msgid "it"
61
 msgid "it"
115
 
115
 
116
 #: searx/engines/__init__.py:198 searx/engines/flycheck___init__.py:205
116
 #: searx/engines/__init__.py:198 searx/engines/flycheck___init__.py:205
117
 msgid "Page loads (sec)"
117
 msgid "Page loads (sec)"
118
-msgstr "Pagina laadt (sec)"
118
+msgstr "Laden van pagina’s (sec)"
119
 
119
 
120
 #: searx/engines/__init__.py:202 searx/engines/flycheck___init__.py:209
120
 #: searx/engines/__init__.py:202 searx/engines/flycheck___init__.py:209
121
 #: searx/templates/oscar/results.html:95
121
 #: searx/templates/oscar/results.html:95
145
 
145
 
146
 #: searx/engines/pubmed.py:74
146
 #: searx/engines/pubmed.py:74
147
 msgid "No abstract is available for this publication."
147
 msgid "No abstract is available for this publication."
148
-msgstr "Voor deze publicatie is geen samenvatting beschikbaar."
148
+msgstr "Voor deze publicatie is geen abstract beschikbaar."
149
 
149
 
150
 #: searx/plugins/https_rewrite.py:32
150
 #: searx/plugins/https_rewrite.py:32
151
 msgid "Rewrite HTTP links to HTTPS if possible"
151
 msgid "Rewrite HTTP links to HTTPS if possible"
157
 
157
 
158
 #: searx/plugins/infinite_scroll.py:4
158
 #: searx/plugins/infinite_scroll.py:4
159
 msgid "Automatically load next page when scrolling to bottom of current page"
159
 msgid "Automatically load next page when scrolling to bottom of current page"
160
-msgstr "Automatisch nieuwe pagina laden bij het bereiken van de onderkant van de huidige pagina"
160
+msgstr "Volgende pagina automatisch laden bij bereiken van de onderkant van de huidige pagina"
161
 
161
 
162
 #: searx/plugins/oa_doi_rewrite.py:9
162
 #: searx/plugins/oa_doi_rewrite.py:9
163
 msgid "Open Access DOI rewrite"
163
 msgid "Open Access DOI rewrite"
195
 msgid ""
195
 msgid ""
196
 "Displays your IP if the query is \"ip\" and your user agent if the query "
196
 "Displays your IP if the query is \"ip\" and your user agent if the query "
197
 "contains \"user agent\"."
197
 "contains \"user agent\"."
198
-msgstr "Geeft je IP-adres weer als de zoekopdracht \"ip\" is en je gebruikersagent als de zoekopdracht \"user agent\" bevat."
198
+msgstr "Geeft je IP-adres weer als de zoekopdracht ‘ip’ is en je gebruikersagent als de zoekopdracht ‘user agent’ bevat."
199
 
199
 
200
 #: searx/plugins/tracker_url_remover.py:26
200
 #: searx/plugins/tracker_url_remover.py:26
201
 msgid "Tracker URL remover"
201
 msgid "Tracker URL remover"
202
-msgstr "Tracker-URL verwijderaar"
202
+msgstr "Tracker-URL-verwijderaar"
203
 
203
 
204
 #: searx/plugins/tracker_url_remover.py:27
204
 #: searx/plugins/tracker_url_remover.py:27
205
 msgid "Remove trackers arguments from the returned URL"
205
 msgid "Remove trackers arguments from the returned URL"
213
 msgid ""
213
 msgid ""
214
 "Navigate search results with Vim-like hotkeys (JavaScript required). Press "
214
 "Navigate search results with Vim-like hotkeys (JavaScript required). Press "
215
 "\"h\" key on main or result page to get help."
215
 "\"h\" key on main or result page to get help."
216
-msgstr "Blader door zoekresultaten met sneltoetsen zoals die in Vim (JavaScript vereist). Druk op \"h\" op de hoofdpagina of de pagina met resultaten voor hulp."
216
+msgstr "Blader door zoekresultaten met sneltoetsen zoals die in Vim (JavaScript vereist). Druk op ‘h’ op de hoofdpagina of de pagina met resultaten voor hulp."
217
 
217
 
218
 #: searx/templates/courgette/404.html:4 searx/templates/legacy/404.html:4
218
 #: searx/templates/courgette/404.html:4 searx/templates/legacy/404.html:4
219
 #: searx/templates/oscar/404.html:4 searx/templates/pix-art/404.html:4
219
 #: searx/templates/oscar/404.html:4 searx/templates/pix-art/404.html:4
282
 #: searx/templates/simple/languages.html:2
282
 #: searx/templates/simple/languages.html:2
283
 #: searx/templates/simple/preferences.html:42
283
 #: searx/templates/simple/preferences.html:42
284
 msgid "Default language"
284
 msgid "Default language"
285
-msgstr "Standaard taal"
285
+msgstr "Standaardtaal"
286
 
286
 
287
 #: searx/templates/courgette/preferences.html:24
287
 #: searx/templates/courgette/preferences.html:24
288
 #: searx/templates/legacy/preferences.html:25
288
 #: searx/templates/legacy/preferences.html:25
365
 #: searx/templates/pix-art/preferences.html:39
365
 #: searx/templates/pix-art/preferences.html:39
366
 #: searx/templates/simple/preferences.html:131
366
 #: searx/templates/simple/preferences.html:131
367
 msgid "Themes"
367
 msgid "Themes"
368
-msgstr "Thema's"
368
+msgstr "Themas"
369
 
369
 
370
 #: searx/templates/courgette/preferences.html:83
370
 #: searx/templates/courgette/preferences.html:83
371
 msgid "Color"
371
 msgid "Color"
538
 #: searx/templates/legacy/result_templates/images.html:4
538
 #: searx/templates/legacy/result_templates/images.html:4
539
 #: searx/templates/pix-art/result_templates/images.html:4
539
 #: searx/templates/pix-art/result_templates/images.html:4
540
 msgid "original context"
540
 msgid "original context"
541
-msgstr "originele inhoud"
541
+msgstr "oorspronkelijke context"
542
 
542
 
543
 #: searx/templates/courgette/result_templates/torrent.html:7
543
 #: searx/templates/courgette/result_templates/torrent.html:7
544
 #: searx/templates/legacy/result_templates/torrent.html:11
544
 #: searx/templates/legacy/result_templates/torrent.html:11
545
 #: searx/templates/oscar/result_templates/torrent.html:6
545
 #: searx/templates/oscar/result_templates/torrent.html:6
546
 #: searx/templates/simple/result_templates/torrent.html:9
546
 #: searx/templates/simple/result_templates/torrent.html:9
547
 msgid "Seeder"
547
 msgid "Seeder"
548
-msgstr "Aanbieder"
548
+msgstr "Seeders"
549
 
549
 
550
 #: searx/templates/courgette/result_templates/torrent.html:7
550
 #: searx/templates/courgette/result_templates/torrent.html:7
551
 #: searx/templates/legacy/result_templates/torrent.html:11
551
 #: searx/templates/legacy/result_templates/torrent.html:11
552
 #: searx/templates/oscar/result_templates/torrent.html:6
552
 #: searx/templates/oscar/result_templates/torrent.html:6
553
 #: searx/templates/simple/result_templates/torrent.html:9
553
 #: searx/templates/simple/result_templates/torrent.html:9
554
 msgid "Leecher"
554
 msgid "Leecher"
555
-msgstr "Ophaler"
555
+msgstr "Leechers"
556
 
556
 
557
 #: searx/templates/courgette/result_templates/torrent.html:9
557
 #: searx/templates/courgette/result_templates/torrent.html:9
558
 #: searx/templates/legacy/result_templates/torrent.html:9
558
 #: searx/templates/legacy/result_templates/torrent.html:9
597
 #: searx/templates/oscar/macros.html:34 searx/templates/oscar/macros.html:48
597
 #: searx/templates/oscar/macros.html:34 searx/templates/oscar/macros.html:48
598
 #: searx/templates/simple/macros.html:43
598
 #: searx/templates/simple/macros.html:43
599
 msgid "cached"
599
 msgid "cached"
600
-msgstr "gecached"
600
+msgstr "gecachet"
601
 
601
 
602
 #: searx/templates/oscar/advanced.html:4
602
 #: searx/templates/oscar/advanced.html:4
603
 msgid "Advanced settings"
603
 msgid "Advanced settings"
673
 #: searx/templates/oscar/preferences.html:48
673
 #: searx/templates/oscar/preferences.html:48
674
 #: searx/templates/simple/preferences.html:128
674
 #: searx/templates/simple/preferences.html:128
675
 msgid "Change the language of the layout"
675
 msgid "Change the language of the layout"
676
-msgstr "Wijzig de taal van de layout"
676
+msgstr "Wijzig de taal van de lay-out"
677
 
677
 
678
 #: searx/templates/oscar/preferences.html:58
678
 #: searx/templates/oscar/preferences.html:58
679
 #: searx/templates/simple/preferences.html:60
679
 #: searx/templates/simple/preferences.html:60
690
 "Change how forms are submited, <a "
690
 "Change how forms are submited, <a "
691
 "href=\"http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods\""
691
 "href=\"http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods\""
692
 " rel=\"external\">learn more about request methods</a>"
692
 " rel=\"external\">learn more about request methods</a>"
693
-msgstr "Bepaal hoe de formulieren worden ingestuurd, <a href=\"http://nl.wikipedia.org/wiki/Hypertext_Transfer_Protocol#HTTP-requests\" rel=\"external\">lees meer over request methodes</a>"
693
+msgstr "Bepaal hoe de formulieren worden ingestuurd, <a href=\"http://nl.wikipedia.org/wiki/Hypertext_Transfer_Protocol#HTTP-requests\" rel=\"external\">lees meer over opvraagmethodes</a>"
694
 
694
 
695
 #: searx/templates/oscar/preferences.html:87
695
 #: searx/templates/oscar/preferences.html:87
696
 #: searx/templates/simple/preferences.html:71
696
 #: searx/templates/simple/preferences.html:71
700
 #: searx/templates/oscar/preferences.html:97
700
 #: searx/templates/oscar/preferences.html:97
701
 #: searx/templates/simple/preferences.html:139
701
 #: searx/templates/simple/preferences.html:139
702
 msgid "Change searx layout"
702
 msgid "Change searx layout"
703
-msgstr "Wijzig searx layout"
703
+msgstr "Opmaak van searx aanpassen"
704
 
704
 
705
 #: searx/templates/oscar/preferences.html:106
705
 #: searx/templates/oscar/preferences.html:106
706
 #: searx/templates/oscar/preferences.html:111
706
 #: searx/templates/oscar/preferences.html:111
714
 
714
 
715
 #: searx/templates/oscar/preferences.html:122
715
 #: searx/templates/oscar/preferences.html:122
716
 msgid "Open Access DOI resolver"
716
 msgid "Open Access DOI resolver"
717
-msgstr "Open Access DOI oplossen"
717
+msgstr "Open Access DOI herschrijven"
718
 
718
 
719
 #: searx/templates/oscar/preferences.html:123
719
 #: searx/templates/oscar/preferences.html:123
720
 msgid ""
720
 msgid ""
721
 "Redirect to open-access versions of publications when available (plugin "
721
 "Redirect to open-access versions of publications when available (plugin "
722
 "required)"
722
 "required)"
723
-msgstr "Doorverwijzen naar vrij toegankelijke versies van publicaties indien beschikbaar (plug-in vereist)"
723
+msgstr "Doorverwijzen naar vrij toegankelijke versies van publicaties, indien beschikbaar (plug-in vereist)"
724
 
724
 
725
 #: searx/templates/oscar/preferences.html:163
725
 #: searx/templates/oscar/preferences.html:163
726
 #: searx/templates/oscar/preferences.html:175
726
 #: searx/templates/oscar/preferences.html:175
753
 
753
 
754
 #: searx/templates/oscar/preferences.html:248
754
 #: searx/templates/oscar/preferences.html:248
755
 msgid "This is the list of searx's instant answering modules."
755
 msgid "This is the list of searx's instant answering modules."
756
-msgstr "Dit is het overzicht van searx's direct antwoordende modules."
756
+msgstr "Dit is het overzicht van de instantantwoordmodules van searx."
757
 
757
 
758
 #: searx/templates/oscar/preferences.html:252
758
 #: searx/templates/oscar/preferences.html:252
759
 msgid "Name"
759
 msgid "Name"
791
 
791
 
792
 #: searx/templates/oscar/preferences.html:301
792
 #: searx/templates/oscar/preferences.html:301
793
 msgid "Search URL of the currently saved preferences"
793
 msgid "Search URL of the currently saved preferences"
794
-msgstr "Zoek-URL van de momenteel opgeslagen voorkeuren"
794
+msgstr "Zoek-URL van de huidig opgeslagen voorkeuren"
795
 
795
 
796
 #: searx/templates/oscar/preferences.html:301
796
 #: searx/templates/oscar/preferences.html:301
797
 msgid ""
797
 msgid ""
815
 
815
 
816
 #: searx/templates/oscar/results.html:131
816
 #: searx/templates/oscar/results.html:131
817
 msgid "Links"
817
 msgid "Links"
818
-msgstr "Links"
818
+msgstr "Koppelingen"
819
 
819
 
820
 #: searx/templates/oscar/search.html:8
820
 #: searx/templates/oscar/search.html:8
821
 #: searx/templates/oscar/search_full.html:11
821
 #: searx/templates/oscar/search_full.html:11
855
 #: searx/templates/oscar/messages/first_time.html:6
855
 #: searx/templates/oscar/messages/first_time.html:6
856
 #: searx/templates/oscar/messages/no_data_available.html:3
856
 #: searx/templates/oscar/messages/no_data_available.html:3
857
 msgid "Heads up!"
857
 msgid "Heads up!"
858
-msgstr "Heads up!"
858
+msgstr "Opgelet!"
859
 
859
 
860
 #: searx/templates/oscar/messages/first_time.html:7
860
 #: searx/templates/oscar/messages/first_time.html:7
861
 msgid "It look like you are using searx first time."
861
 msgid "It look like you are using searx first time."
881
 #: searx/templates/oscar/messages/no_results.html:10
881
 #: searx/templates/oscar/messages/no_results.html:10
882
 #: searx/templates/simple/messages/no_results.html:10
882
 #: searx/templates/simple/messages/no_results.html:10
883
 msgid "Please, try again later or find another searx instance."
883
 msgid "Please, try again later or find another searx instance."
884
-msgstr "Probeer het later opnieuw, of gebruik een andere searx zoekserver."
884
+msgstr "Probeer het later opnieuw, of gebruik een andere instantie van searx."
885
 
885
 
886
 #: searx/templates/oscar/messages/no_results.html:14
886
 #: searx/templates/oscar/messages/no_results.html:14
887
 #: searx/templates/simple/messages/no_results.html:14
887
 #: searx/templates/simple/messages/no_results.html:14
893
 msgid ""
893
 msgid ""
894
 "we didn't find any results. Please use another query or search in more "
894
 "we didn't find any results. Please use another query or search in more "
895
 "categories."
895
 "categories."
896
-msgstr "we kregen geen resultaat. Probeer een andere opvraag of zoek in meer categorieën."
896
+msgstr "We konden geen resultaten vinden. Probeer een andere zoekopdracht, of zoek in meer categorieën."
897
 
897
 
898
 #: searx/templates/oscar/messages/save_settings_successfull.html:7
898
 #: searx/templates/oscar/messages/save_settings_successfull.html:7
899
 msgid "Well done!"
899
 msgid "Well done!"
901
 
901
 
902
 #: searx/templates/oscar/messages/save_settings_successfull.html:8
902
 #: searx/templates/oscar/messages/save_settings_successfull.html:8
903
 msgid "Settings saved successfully."
903
 msgid "Settings saved successfully."
904
-msgstr "Instellingen succesvol opgeslagen."
904
+msgstr "Instellingen opgeslagen."
905
 
905
 
906
 #: searx/templates/oscar/messages/unknow_error.html:7
906
 #: searx/templates/oscar/messages/unknow_error.html:7
907
 msgid "Oh snap!"
907
 msgid "Oh snap!"
908
-msgstr "Oops!"
908
+msgstr "Oeps!"
909
 
909
 
910
 #: searx/templates/oscar/messages/unknow_error.html:8
910
 #: searx/templates/oscar/messages/unknow_error.html:8
911
 msgid "Something went wrong."
911
 msgid "Something went wrong."

BIN
searx/translations/pt_BR/LC_MESSAGES/messages.mo View File


+ 7
- 6
searx/translations/pt_BR/LC_MESSAGES/messages.po View File

8
 # Guimarães Mello <maeslor@cryptolab.net>, 2017
8
 # Guimarães Mello <maeslor@cryptolab.net>, 2017
9
 # Neton Brício <fervelinux@gmail.com>, 2015
9
 # Neton Brício <fervelinux@gmail.com>, 2015
10
 # pizzaiolo, 2016
10
 # pizzaiolo, 2016
11
+# Shizuka 静香 <deusadaji@gmail.com>, 2018
11
 msgid ""
12
 msgid ""
12
 msgstr ""
13
 msgstr ""
13
 "Project-Id-Version: searx\n"
14
 "Project-Id-Version: searx\n"
14
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
15
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
15
 "POT-Creation-Date: 2017-11-01 21:31+0100\n"
16
 "POT-Creation-Date: 2017-11-01 21:31+0100\n"
16
-"PO-Revision-Date: 2017-11-13 19:51+0000\n"
17
-"Last-Translator: Adam Tauber <asciimoo@gmail.com>\n"
17
+"PO-Revision-Date: 2018-02-04 10:39+0000\n"
18
+"Last-Translator: Shizuka 静香 <deusadaji@gmail.com>\n"
18
 "Language-Team: Portuguese (Brazil) (http://www.transifex.com/asciimoo/searx/language/pt_BR/)\n"
19
 "Language-Team: Portuguese (Brazil) (http://www.transifex.com/asciimoo/searx/language/pt_BR/)\n"
19
 "MIME-Version: 1.0\n"
20
 "MIME-Version: 1.0\n"
20
 "Content-Type: text/plain; charset=UTF-8\n"
21
 "Content-Type: text/plain; charset=UTF-8\n"
745
 #: searx/templates/oscar/preferences.html:171
746
 #: searx/templates/oscar/preferences.html:171
746
 #: searx/templates/simple/preferences.html:92
747
 #: searx/templates/simple/preferences.html:92
747
 msgid "Avg. time"
748
 msgid "Avg. time"
748
-msgstr "Avg.tempo"
749
+msgstr "Tempo médio"
749
 
750
 
750
 #: searx/templates/oscar/preferences.html:168
751
 #: searx/templates/oscar/preferences.html:168
751
 #: searx/templates/oscar/preferences.html:170
752
 #: searx/templates/oscar/preferences.html:170
813
 #: searx/templates/oscar/results.html:100
814
 #: searx/templates/oscar/results.html:100
814
 #: searx/templates/simple/results.html:25
815
 #: searx/templates/simple/results.html:25
815
 msgid "Engines cannot retrieve results"
816
 msgid "Engines cannot retrieve results"
816
-msgstr "Os motores de busca não podem obter resultados"
817
+msgstr "Os motores de busca não conseguiram obter resultados"
817
 
818
 
818
 #: searx/templates/oscar/results.html:131
819
 #: searx/templates/oscar/results.html:131
819
 msgid "Links"
820
 msgid "Links"
832
 #: searx/templates/oscar/time-range.html:3
833
 #: searx/templates/oscar/time-range.html:3
833
 #: searx/templates/simple/time-range.html:3
834
 #: searx/templates/simple/time-range.html:3
834
 msgid "Anytime"
835
 msgid "Anytime"
835
-msgstr "A qualquer tempo"
836
+msgstr "A qualquer momento"
836
 
837
 
837
 #: searx/templates/oscar/time-range.html:6
838
 #: searx/templates/oscar/time-range.html:6
838
 #: searx/templates/simple/time-range.html:6
839
 #: searx/templates/simple/time-range.html:6
861
 
862
 
862
 #: searx/templates/oscar/messages/first_time.html:7
863
 #: searx/templates/oscar/messages/first_time.html:7
863
 msgid "It look like you are using searx first time."
864
 msgid "It look like you are using searx first time."
864
-msgstr "Parece que você está usando searx primeira vez."
865
+msgstr "Parece que você está usando o searx pela primeira vez."
865
 
866
 
866
 #: searx/templates/oscar/messages/no_cookies.html:3
867
 #: searx/templates/oscar/messages/no_cookies.html:3
867
 msgid "Information!"
868
 msgid "Information!"

BIN
searx/translations/zh_Hant_TW/LC_MESSAGES/messages.mo View File


+ 1014
- 0
searx/translations/zh_Hant_TW/LC_MESSAGES/messages.po
File diff suppressed because it is too large
View File


+ 2
- 2
searx/version.py View File

18
 
18
 
19
 # version of searx
19
 # version of searx
20
 VERSION_MAJOR = 0
20
 VERSION_MAJOR = 0
21
-VERSION_MINOR = 13
22
-VERSION_BUILD = 1
21
+VERSION_MINOR = 14
22
+VERSION_BUILD = 0
23
 
23
 
24
 VERSION_STRING = "{0}.{1}.{2}".format(VERSION_MAJOR,
24
 VERSION_STRING = "{0}.{1}.{2}".format(VERSION_MAJOR,
25
                                       VERSION_MINOR,
25
                                       VERSION_MINOR,

+ 3
- 0
searx/webapp.py View File

165
        and request.form['locale'] in settings['locales']:
165
        and request.form['locale'] in settings['locales']:
166
         locale = request.form['locale']
166
         locale = request.form['locale']
167
 
167
 
168
+    if locale == 'zh_TW':
169
+        locale = 'zh_Hant_TW'
170
+
168
     return locale
171
     return locale
169
 
172
 
170
 
173