Merge branch 'searxng:master' into master

This commit is contained in:
Fauli1221 2022-12-08 11:43:04 +01:00 committed by GitHub
commit 504830590f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 162 additions and 115 deletions

2
.gitignore vendored
View file

@ -19,3 +19,5 @@ gh-pages/
/package-lock.json /package-lock.json
/node_modules/ /node_modules/
.idea/

View file

@ -1,4 +1,4 @@
FROM alpine:3.16 FROM alpine:3.17
ENTRYPOINT ["/sbin/tini","--","/usr/local/searxng/dockerfiles/docker-entrypoint.sh"] ENTRYPOINT ["/sbin/tini","--","/usr/local/searxng/dockerfiles/docker-entrypoint.sh"]
EXPOSE 8080 EXPOSE 8080
VOLUME /etc/searxng VOLUME /etc/searxng
@ -19,11 +19,9 @@ ENV INSTANCE_NAME=searxng \
WORKDIR /usr/local/searxng WORKDIR /usr/local/searxng
COPY requirements.txt ./requirements.txt COPY requirements.txt ./requirements.txt
RUN apk upgrade --no-cache \ RUN apk add --no-cache -t build-dependencies \
&& apk add --no-cache -t build-dependencies \
build-base \ build-base \
py3-setuptools \ py3-setuptools \
python3-dev \ python3-dev \
@ -45,21 +43,21 @@ RUN apk upgrade --no-cache \
uwsgi \ uwsgi \
uwsgi-python3 \ uwsgi-python3 \
brotli \ brotli \
&& pip3 install --upgrade pip wheel setuptools \
&& pip3 install --no-cache -r requirements.txt \ && pip3 install --no-cache -r requirements.txt \
&& apk del build-dependencies \ && apk del build-dependencies \
&& rm -rf /root/.cache && rm -rf /root/.cache
COPY --chown=searxng:searxng . . COPY --chown=searxng:searxng dockerfiles ./dockerfiles
COPY --chown=searxng:searxng searx ./searx
ARG TIMESTAMP_SETTINGS=0 ARG TIMESTAMP_SETTINGS=0
ARG TIMESTAMP_UWSGI=0 ARG TIMESTAMP_UWSGI=0
ARG VERSION_GITCOMMIT=unknown ARG VERSION_GITCOMMIT=unknown
RUN su searxng -c "/usr/bin/python3 -m compileall -q searx"; \ RUN su searxng -c "/usr/bin/python3 -m compileall -q searx" \
touch -c --date=@${TIMESTAMP_SETTINGS} searx/settings.yml; \ && touch -c --date=@${TIMESTAMP_SETTINGS} searx/settings.yml \
touch -c --date=@${TIMESTAMP_UWSGI} dockerfiles/uwsgi.ini; \ && touch -c --date=@${TIMESTAMP_UWSGI} dockerfiles/uwsgi.ini \
find /usr/local/searxng/searx/static -a \( -name '*.html' -o -name '*.css' -o -name '*.js' \ && find /usr/local/searxng/searx/static -a \( -name '*.html' -o -name '*.css' -o -name '*.js' \
-o -name '*.svg' -o -name '*.ttf' -o -name '*.eot' \) \ -o -name '*.svg' -o -name '*.ttf' -o -name '*.eot' \) \
-type f -exec gzip -9 -k {} \+ -exec brotli --best {} \+ -type f -exec gzip -9 -k {} \+ -exec brotli --best {} \+

View file

@ -2,10 +2,10 @@ mock==4.0.3
nose2[coverage_plugin]==0.12.0 nose2[coverage_plugin]==0.12.0
cov-core==1.15.0 cov-core==1.15.0
black==22.10.0 black==22.10.0
pylint==2.15.6 pylint==2.15.7
splinter==0.18.1 splinter==0.18.1
selenium==4.6.0 selenium==4.7.0
twine==4.0.1 twine==4.0.2
Pallets-Sphinx-Themes==2.0.2 Pallets-Sphinx-Themes==2.0.2
Sphinx==5.3.0 Sphinx==5.3.0
sphinx-issues==3.0.1 sphinx-issues==3.0.1
@ -15,7 +15,7 @@ sphinxcontrib-programoutput==0.17
sphinx-autobuild==2021.3.14 sphinx-autobuild==2021.3.14
sphinx-notfound-page==0.8.3 sphinx-notfound-page==0.8.3
myst-parser==0.18.1 myst-parser==0.18.1
linuxdoc==20221025 linuxdoc==20221127
aiounittest==1.4.2 aiounittest==1.4.2
yamllint==1.28.0 yamllint==1.28.0
wlc==1.13 wlc==1.13

View file

@ -106,8 +106,12 @@ def load_engine(engine_data: dict) -> Optional[Engine]:
- required attribute is not set :py:func:`is_missing_required_attributes` - required attribute is not set :py:func:`is_missing_required_attributes`
""" """
# pylint: disable=too-many-return-statements
engine_name = engine_data['name'] engine_name = engine_data.get('name')
if engine_name is None:
logger.error('An engine does not have a "name" field')
return None
if '_' in engine_name: if '_' in engine_name:
logger.error('Engine name contains underscore: "{}"'.format(engine_name)) logger.error('Engine name contains underscore: "{}"'.format(engine_name))
return None return None
@ -118,7 +122,10 @@ def load_engine(engine_data: dict) -> Optional[Engine]:
engine_data['name'] = engine_name engine_data['name'] = engine_name
# load_module # load_module
engine_module = engine_data['engine'] engine_module = engine_data.get('engine')
if engine_module is None:
logger.error('The "engine" field is missing for the engine named "{}"'.format(engine_name))
return None
try: try:
engine = load_module(engine_module + '.py', ENGINE_DIR) engine = load_module(engine_module + '.py', ENGINE_DIR)
except (SyntaxError, KeyboardInterrupt, SystemExit, SystemError, ImportError, RuntimeError): except (SyntaxError, KeyboardInterrupt, SystemExit, SystemError, ImportError, RuntimeError):

View file

@ -14,7 +14,7 @@ msgstr ""
"Project-Id-Version: searx\n" "Project-Id-Version: searx\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2022-10-14 14:11+0000\n" "POT-Creation-Date: 2022-10-14 14:11+0000\n"
"PO-Revision-Date: 2022-11-11 07:18+0000\n" "PO-Revision-Date: 2022-11-30 15:33+0000\n"
"Last-Translator: Markus Heiser <markus.heiser@darmarit.de>\n" "Last-Translator: Markus Heiser <markus.heiser@darmarit.de>\n"
"Language-Team: Arabic <https://weblate.bubu1.eu/projects/searxng/searxng/ar/>" "Language-Team: Arabic <https://weblate.bubu1.eu/projects/searxng/searxng/ar/>"
"\n" "\n"
@ -712,6 +712,9 @@ msgid ""
"href=\"http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods\"" "href=\"http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods\""
" rel=\"external\">learn more about request methods</a>" " rel=\"external\">learn more about request methods</a>"
msgstr "" msgstr ""
"تغيير طريقة إرسال النماذج، <a href=\"http://en.wikipedia.org/wiki/"
"Hypertext_Transfer_Protocol#Request_methods\" rel=\"external\">إعرف المزيد "
"عن طرق الطلب</a>"
#: searx/templates/simple/preferences.html:269 #: searx/templates/simple/preferences.html:269
msgid "Image proxy" msgid "Image proxy"
@ -1125,7 +1128,7 @@ msgstr "إخفاء الخريطة"
#: searx/templates/simple/result_templates/paper.html:5 #: searx/templates/simple/result_templates/paper.html:5
msgid "Published date" msgid "Published date"
msgstr "" msgstr "تاريخ النشر"
#: searx/templates/simple/result_templates/paper.html:9 #: searx/templates/simple/result_templates/paper.html:9
msgid "Journal" msgid "Journal"
@ -1133,19 +1136,19 @@ msgstr ""
#: searx/templates/simple/result_templates/paper.html:22 #: searx/templates/simple/result_templates/paper.html:22
msgid "Editor" msgid "Editor"
msgstr "" msgstr "المحرر"
#: searx/templates/simple/result_templates/paper.html:23 #: searx/templates/simple/result_templates/paper.html:23
msgid "Publisher" msgid "Publisher"
msgstr "" msgstr "الناشر"
#: searx/templates/simple/result_templates/paper.html:24 #: searx/templates/simple/result_templates/paper.html:24
msgid "Type" msgid "Type"
msgstr "" msgstr "نوع"
#: searx/templates/simple/result_templates/paper.html:25 #: searx/templates/simple/result_templates/paper.html:25
msgid "Tags" msgid "Tags"
msgstr "" msgstr "السمات"
#: searx/templates/simple/result_templates/paper.html:26 #: searx/templates/simple/result_templates/paper.html:26
msgid "DOI" msgid "DOI"
@ -1157,15 +1160,15 @@ msgstr ""
#: searx/templates/simple/result_templates/paper.html:28 #: searx/templates/simple/result_templates/paper.html:28
msgid "ISBN" msgid "ISBN"
msgstr "" msgstr "ISBN"
#: searx/templates/simple/result_templates/paper.html:33 #: searx/templates/simple/result_templates/paper.html:33
msgid "PDF" msgid "PDF"
msgstr "" msgstr "PDF"
#: searx/templates/simple/result_templates/paper.html:34 #: searx/templates/simple/result_templates/paper.html:34
msgid "HTML" msgid "HTML"
msgstr "" msgstr "HTML"
#: searx/templates/simple/result_templates/torrent.html:6 #: searx/templates/simple/result_templates/torrent.html:6
msgid "magnet link" msgid "magnet link"

View file

@ -14,7 +14,7 @@ msgstr ""
"Project-Id-Version: searx\n" "Project-Id-Version: searx\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2022-10-14 14:11+0000\n" "POT-Creation-Date: 2022-10-14 14:11+0000\n"
"PO-Revision-Date: 2022-10-20 07:00+0000\n" "PO-Revision-Date: 2022-11-30 15:33+0000\n"
"Last-Translator: Markus Heiser <markus.heiser@darmarit.de>\n" "Last-Translator: Markus Heiser <markus.heiser@darmarit.de>\n"
"Language-Team: Esperanto <https://weblate.bubu1.eu/projects/searxng/searxng/" "Language-Team: Esperanto <https://weblate.bubu1.eu/projects/searxng/searxng/"
"eo/>\n" "eo/>\n"
@ -134,7 +134,7 @@ msgstr "reto"
#. CATEGORY_GROUPS['SCIENTIFIC PUBLICATIONS'] #. CATEGORY_GROUPS['SCIENTIFIC PUBLICATIONS']
#: searx/searxng.msg #: searx/searxng.msg
msgid "scientific publications" msgid "scientific publications"
msgstr "scienca publikaĵo" msgstr "sciencaj publikaĵoj"
#. STYLE_NAMES['AUTO'] #. STYLE_NAMES['AUTO']
#: searx/searxng.msg #: searx/searxng.msg
@ -448,11 +448,11 @@ msgstr "Funkciigita per"
#: searx/templates/simple/base.html:64 #: searx/templates/simple/base.html:64
msgid "a privacy-respecting, open metasearch engine" msgid "a privacy-respecting, open metasearch engine"
msgstr "" msgstr "privateco-respektanta, libera metaserĉilo"
#: searx/templates/simple/base.html:65 #: searx/templates/simple/base.html:65
msgid "Source code" msgid "Source code"
msgstr "Fontkodo" msgstr "Fonto"
#: searx/templates/simple/base.html:66 #: searx/templates/simple/base.html:66
msgid "Issue tracker" msgid "Issue tracker"

View file

@ -22,8 +22,8 @@ msgstr ""
"Project-Id-Version: searx\n" "Project-Id-Version: searx\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2022-10-14 14:11+0000\n" "POT-Creation-Date: 2022-10-14 14:11+0000\n"
"PO-Revision-Date: 2022-10-28 07:18+0000\n" "PO-Revision-Date: 2022-11-28 13:11+0000\n"
"Last-Translator: zaioti <zaioti@tuta.io>\n" "Last-Translator: Markus Heiser <markus.heiser@darmarit.de>\n"
"Language-Team: Portuguese (Brazil) <https://weblate.bubu1.eu/projects/" "Language-Team: Portuguese (Brazil) <https://weblate.bubu1.eu/projects/"
"searxng/searxng/pt_BR/>\n" "searxng/searxng/pt_BR/>\n"
"Language: pt_BR\n" "Language: pt_BR\n"
@ -92,7 +92,7 @@ msgstr "mapas"
#. CATEGORY_NAMES['ONIONS'] #. CATEGORY_NAMES['ONIONS']
#: searx/searxng.msg #: searx/searxng.msg
msgid "onions" msgid "onions"
msgstr "onion" msgstr "onions"
#. CATEGORY_NAMES['SCIENCE'] #. CATEGORY_NAMES['SCIENCE']
#: searx/searxng.msg #: searx/searxng.msg
@ -147,7 +147,7 @@ msgstr "publicações científicas"
#. STYLE_NAMES['AUTO'] #. STYLE_NAMES['AUTO']
#: searx/searxng.msg #: searx/searxng.msg
msgid "auto" msgid "auto"
msgstr "auto" msgstr "automático"
#. STYLE_NAMES['LIGHT'] #. STYLE_NAMES['LIGHT']
#: searx/searxng.msg #: searx/searxng.msg
@ -169,7 +169,7 @@ msgstr "erro de leitura"
#: searx/webapp.py:166 #: searx/webapp.py:166
msgid "HTTP protocol error" msgid "HTTP protocol error"
msgstr "error de protocolo HTTP" msgstr "erro de protocolo HTTP"
#: searx/webapp.py:167 #: searx/webapp.py:167
msgid "network error" msgid "network error"
@ -254,7 +254,7 @@ msgstr "Gerador de valor aleatório"
#: searx/answerers/random/answerer.py:68 #: searx/answerers/random/answerer.py:68
msgid "Generate different random values" msgid "Generate different random values"
msgstr "Gere diferentes valores aleatórios" msgstr "Gerar diferentes valores aleatórios"
#: searx/answerers/statistics/answerer.py:47 #: searx/answerers/statistics/answerer.py:47
msgid "Statistics functions" msgid "Statistics functions"
@ -262,11 +262,11 @@ msgstr "Funções estatísticas"
#: searx/answerers/statistics/answerer.py:48 #: searx/answerers/statistics/answerer.py:48
msgid "Compute {functions} of the arguments" msgid "Compute {functions} of the arguments"
msgstr "Computa {functions} dos argumentos" msgstr "Computar {functions} dos argumentos"
#: searx/engines/openstreetmap.py:160 #: searx/engines/openstreetmap.py:160
msgid "Get directions" msgid "Get directions"
msgstr "Obter direções" msgstr "Obter instruções"
#: searx/engines/pdbe.py:96 #: searx/engines/pdbe.py:96
msgid "{title} (OBSOLETE)" msgid "{title} (OBSOLETE)"
@ -294,9 +294,9 @@ msgid ""
"format. TinEye only supports images that are JPEG, PNG, GIF, BMP, TIFF or" "format. TinEye only supports images that are JPEG, PNG, GIF, BMP, TIFF or"
" WebP." " WebP."
msgstr "" msgstr ""
"Não foi possível fazer a leitura desta URL. Isso pode ocorrido devido a " "Não foi possível fazer a leitura desta URL. Isso pode ter ocorrido devido a "
"um formato de arquivo não suportado. Apenas os seguintes tipos de imagem " "um formato de arquivo não suportado. Apenas os seguintes tipos de imagem são "
"são suportados pelo TinEye: JPEG, PNG, GIF, BMP, TIFF ou WebP." "suportados pelo TinEye: JPEG, PNG, GIF, BMP, TIFF ou WebP."
#: searx/engines/tineye.py:46 #: searx/engines/tineye.py:46
msgid "" msgid ""
@ -309,7 +309,7 @@ msgstr ""
#: searx/engines/tineye.py:52 #: searx/engines/tineye.py:52
msgid "The image could not be downloaded." msgid "The image could not be downloaded."
msgstr "Essa imagem não pode ser baixada." msgstr "Essa imagem não pôde ser baixada."
#: searx/engines/wttr.py:101 #: searx/engines/wttr.py:101
msgid "Morning" msgid "Morning"
@ -317,15 +317,15 @@ msgstr "manhã"
#: searx/engines/wttr.py:101 #: searx/engines/wttr.py:101
msgid "Noon" msgid "Noon"
msgstr "meio dia" msgstr "Meio dia"
#: searx/engines/wttr.py:101 #: searx/engines/wttr.py:101
msgid "Evening" msgid "Evening"
msgstr "tarde" msgstr "Tarde"
#: searx/engines/wttr.py:101 #: searx/engines/wttr.py:101
msgid "Night" msgid "Night"
msgstr "noite" msgstr "Noite"
#: searx/plugins/hash_plugin.py:24 #: searx/plugins/hash_plugin.py:24
msgid "Converts strings to different hash digests." msgid "Converts strings to different hash digests."
@ -397,20 +397,21 @@ msgid ""
"The TOR exit node list (https://check.torproject.org/exit-addresses) is " "The TOR exit node list (https://check.torproject.org/exit-addresses) is "
"unreachable." "unreachable."
msgstr "" msgstr ""
"A lista de nódulos de saída TOR (https://check.torproject.org/exit-" "A lista de nódulos de saída TOR (https://check.torproject.org/exit-addresses)"
"addresses) não pode ser alcançada." " é inalcançável."
#: searx/plugins/tor_check.py:78 #: searx/plugins/tor_check.py:78
msgid "You are using TOR. Your IP address seems to be: {ip_address}." msgid "You are using TOR. Your IP address seems to be: {ip_address}."
msgstr "Você está usando TOR. Seu endereço IP deve ser: {ip_address}." msgstr "Você está usando TOR. Seu endereço de IP aparenta ser: {ip_address}."
#: searx/plugins/tor_check.py:84 #: searx/plugins/tor_check.py:84
msgid "You are not using TOR. Your IP address seems to be: {ip_address}." msgid "You are not using TOR. Your IP address seems to be: {ip_address}."
msgstr "Você não está usando TOR. Seu endereço IP deve ser: {ip_address}." msgstr ""
"Você não está usando TOR. Seu endereço de IP aparenta ser: {ip_address}."
#: searx/plugins/tracker_url_remover.py:29 #: searx/plugins/tracker_url_remover.py:29
msgid "Tracker URL remover" msgid "Tracker URL remover"
msgstr "Remover rastreador da URL" msgstr "Removedor de rastreador da URL"
#: searx/plugins/tracker_url_remover.py:30 #: searx/plugins/tracker_url_remover.py:30
msgid "Remove trackers arguments from the returned URL" msgid "Remove trackers arguments from the returned URL"
@ -692,7 +693,7 @@ msgstr "Desligado"
#: searx/templates/simple/preferences.html:224 #: searx/templates/simple/preferences.html:224
msgid "Displays results in the center of the page (Oscar layout)." msgid "Displays results in the center of the page (Oscar layout)."
msgstr "Exibe os resultados no centro da página (layout do Oscar)." msgstr "Exibe os resultados no centro da página (layout Oscar)."
#: searx/templates/simple/preferences.html:229 #: searx/templates/simple/preferences.html:229
msgid "Results on new tabs" msgid "Results on new tabs"
@ -920,7 +921,7 @@ msgstr "Voltar"
#: searx/templates/simple/results.html:23 #: searx/templates/simple/results.html:23
msgid "Answers" msgid "Answers"
msgstr "Perguntas" msgstr "Respostas"
#: searx/templates/simple/results.html:39 #: searx/templates/simple/results.html:39
msgid "Number of results" msgid "Number of results"
@ -1115,7 +1116,7 @@ msgstr "ocultar mídia"
#: searx/templates/simple/result_templates/default.html:14 #: searx/templates/simple/result_templates/default.html:14
#: searx/templates/simple/result_templates/videos.html:14 #: searx/templates/simple/result_templates/videos.html:14
msgid "This site did not provide any description." msgid "This site did not provide any description."
msgstr "Esse site não tem uma descrição." msgstr "Esse site não disponibilizou uma descrição."
#: searx/templates/simple/result_templates/images.html:19 #: searx/templates/simple/result_templates/images.html:19
msgid "Format" msgid "Format"

View file

@ -3,13 +3,14 @@
# This file is distributed under the same license as the PROJECT project. # This file is distributed under the same license as the PROJECT project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022. # FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
# Sadith Nadungoda <sadithnadungoda@gmail.com>, 2022. # Sadith Nadungoda <sadithnadungoda@gmail.com>, 2022.
# Chathura madusanka <mcchathuer216@gmail.com>, 2022.
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2022-10-14 14:11+0000\n" "POT-Creation-Date: 2022-10-14 14:11+0000\n"
"PO-Revision-Date: 2022-11-11 07:18+0000\n" "PO-Revision-Date: 2022-11-30 15:33+0000\n"
"Last-Translator: Sadith Nadungoda <sadithnadungoda@gmail.com>\n" "Last-Translator: Chathura madusanka <mcchathuer216@gmail.com>\n"
"Language-Team: Sinhala <https://weblate.bubu1.eu/projects/searxng/searxng/si/" "Language-Team: Sinhala <https://weblate.bubu1.eu/projects/searxng/searxng/si/"
">\n" ">\n"
"Language: si\n" "Language: si\n"
@ -38,7 +39,7 @@ msgstr "ගොනු"
#. CATEGORY_NAMES['GENERAL'] #. CATEGORY_NAMES['GENERAL']
#: searx/searxng.msg #: searx/searxng.msg
msgid "general" msgid "general"
msgstr "" msgstr "සාමාන්‍ය"
#. CATEGORY_NAMES['MUSIC'] #. CATEGORY_NAMES['MUSIC']
#: searx/searxng.msg #: searx/searxng.msg
@ -63,7 +64,7 @@ msgstr "වීඩියෝ"
#. CATEGORY_NAMES['IT'] #. CATEGORY_NAMES['IT']
#: searx/searxng.msg #: searx/searxng.msg
msgid "it" msgid "it"
msgstr "" msgstr "එය"
#. CATEGORY_NAMES['NEWS'] #. CATEGORY_NAMES['NEWS']
#: searx/searxng.msg #: searx/searxng.msg
@ -108,7 +109,7 @@ msgstr "පැකේජ"
#. CATEGORY_GROUPS['Q_A'] #. CATEGORY_GROUPS['Q_A']
#: searx/searxng.msg #: searx/searxng.msg
msgid "q&a" msgid "q&a"
msgstr "" msgstr "ප්‍රශ්න සහ පිළිතුරු"
#. CATEGORY_GROUPS['REPOS'] #. CATEGORY_GROUPS['REPOS']
#: searx/searxng.msg #: searx/searxng.msg
@ -138,12 +139,12 @@ msgstr "ස්වයංක්‍රීය"
#. STYLE_NAMES['LIGHT'] #. STYLE_NAMES['LIGHT']
#: searx/searxng.msg #: searx/searxng.msg
msgid "light" msgid "light"
msgstr "" msgstr "එළිය"
#. STYLE_NAMES['DARK'] #. STYLE_NAMES['DARK']
#: searx/searxng.msg #: searx/searxng.msg
msgid "dark" msgid "dark"
msgstr "" msgstr "අඳුරු"
#: searx/webapp.py:164 #: searx/webapp.py:164
msgid "timeout" msgid "timeout"
@ -264,7 +265,7 @@ msgstr ""
#: searx/engines/qwant.py:219 #: searx/engines/qwant.py:219
msgid "Channel" msgid "Channel"
msgstr "" msgstr "නාලිකාව"
#: searx/engines/semantic_scholar.py:81 #: searx/engines/semantic_scholar.py:81
msgid "" msgid ""
@ -287,23 +288,23 @@ msgstr ""
#: searx/engines/tineye.py:52 #: searx/engines/tineye.py:52
msgid "The image could not be downloaded." msgid "The image could not be downloaded."
msgstr "" msgstr "මෙම රූපය බාගත කල නොහැකි විය."
#: searx/engines/wttr.py:101 #: searx/engines/wttr.py:101
msgid "Morning" msgid "Morning"
msgstr "" msgstr "උදෑසන"
#: searx/engines/wttr.py:101 #: searx/engines/wttr.py:101
msgid "Noon" msgid "Noon"
msgstr "" msgstr "දවල්"
#: searx/engines/wttr.py:101 #: searx/engines/wttr.py:101
msgid "Evening" msgid "Evening"
msgstr "" msgstr "හවස"
#: searx/engines/wttr.py:101 #: searx/engines/wttr.py:101
msgid "Night" msgid "Night"
msgstr "" msgstr "රාත්‍රිය"
#: searx/plugins/hash_plugin.py:24 #: searx/plugins/hash_plugin.py:24
msgid "Converts strings to different hash digests." msgid "Converts strings to different hash digests."
@ -343,7 +344,7 @@ msgstr ""
#: searx/plugins/self_info.py:20 #: searx/plugins/self_info.py:20
msgid "Self Information" msgid "Self Information"
msgstr "" msgstr "තම තොරතුරු"
#: searx/plugins/self_info.py:21 #: searx/plugins/self_info.py:21
msgid "" msgid ""
@ -395,24 +396,24 @@ msgstr ""
#: searx/templates/simple/404.html:4 #: searx/templates/simple/404.html:4
msgid "Page not found" msgid "Page not found"
msgstr "" msgstr "පිටුව සමු නොවීය"
#: searx/templates/simple/404.html:6 #: searx/templates/simple/404.html:6
#, python-format #, python-format
msgid "Go to %(search_page)s." msgid "Go to %(search_page)s."
msgstr "" msgstr "%(search_page)s ට යන්න."
#: searx/templates/simple/404.html:6 #: searx/templates/simple/404.html:6
msgid "search page" msgid "search page"
msgstr "" msgstr "සෙවුම් පිටුව"
#: searx/templates/simple/base.html:46 #: searx/templates/simple/base.html:46
msgid "About" msgid "About"
msgstr "" msgstr "ගැන"
#: searx/templates/simple/base.html:50 #: searx/templates/simple/base.html:50
msgid "Donate" msgid "Donate"
msgstr "" msgstr "ආධාර කරන්න"
#: searx/templates/simple/base.html:54 #: searx/templates/simple/base.html:54
#: searx/templates/simple/preferences.html:99 #: searx/templates/simple/preferences.html:99
@ -421,7 +422,7 @@ msgstr ""
#: searx/templates/simple/base.html:64 #: searx/templates/simple/base.html:64
msgid "Powered by" msgid "Powered by"
msgstr "" msgstr "බලගැන්වීම"
#: searx/templates/simple/base.html:64 #: searx/templates/simple/base.html:64
msgid "a privacy-respecting, open metasearch engine" msgid "a privacy-respecting, open metasearch engine"
@ -429,7 +430,7 @@ msgstr ""
#: searx/templates/simple/base.html:65 #: searx/templates/simple/base.html:65
msgid "Source code" msgid "Source code"
msgstr "" msgstr "මූල කේතය"
#: searx/templates/simple/base.html:66 #: searx/templates/simple/base.html:66
msgid "Issue tracker" msgid "Issue tracker"
@ -437,7 +438,7 @@ msgstr ""
#: searx/templates/simple/base.html:67 searx/templates/simple/stats.html:18 #: searx/templates/simple/base.html:67 searx/templates/simple/stats.html:18
msgid "Engine stats" msgid "Engine stats"
msgstr "" msgstr "යන්ත්‍ර තත්ත්වය"
#: searx/templates/simple/base.html:69 #: searx/templates/simple/base.html:69
#: searx/templates/simple/messages/no_results.html:15 #: searx/templates/simple/messages/no_results.html:15
@ -458,13 +459,13 @@ msgstr ""
#: searx/templates/simple/macros.html:36 #: searx/templates/simple/macros.html:36
msgid "Length" msgid "Length"
msgstr "" msgstr "දිග"
#: searx/templates/simple/macros.html:37 #: searx/templates/simple/macros.html:37
#: searx/templates/simple/result_templates/images.html:18 #: searx/templates/simple/result_templates/images.html:18
#: searx/templates/simple/result_templates/paper.html:6 #: searx/templates/simple/result_templates/paper.html:6
msgid "Author" msgid "Author"
msgstr "" msgstr "කතුවරයා"
#: searx/templates/simple/macros.html:45 #: searx/templates/simple/macros.html:45
msgid "cached" msgid "cached"
@ -492,11 +493,11 @@ msgstr ""
#: searx/templates/simple/new_issue.html:72 #: searx/templates/simple/new_issue.html:72
msgid "Submit a new issue on Github including the above information" msgid "Submit a new issue on Github including the above information"
msgstr "" msgstr "නව ප්‍රශ්න GitHub මත එය පිලිබඳ තොරතුරු සමග යොමුකරන්න"
#: searx/templates/simple/preferences.html:29 #: searx/templates/simple/preferences.html:29
msgid "No HTTPS" msgid "No HTTPS"
msgstr "" msgstr "HTTPS නොවේ"
#: searx/templates/simple/messages/no_results.html:10 #: searx/templates/simple/messages/no_results.html:10
#: searx/templates/simple/preferences.html:31 #: searx/templates/simple/preferences.html:31
@ -508,7 +509,7 @@ msgstr ""
#: searx/templates/simple/preferences.html:53 #: searx/templates/simple/preferences.html:53
#: searx/templates/simple/stats.html:64 #: searx/templates/simple/stats.html:64
msgid "Median" msgid "Median"
msgstr "" msgstr "මධ්‍යනය"
#: searx/templates/simple/preferences.html:54 #: searx/templates/simple/preferences.html:54
#: searx/templates/simple/stats.html:70 #: searx/templates/simple/stats.html:70
@ -526,11 +527,11 @@ msgstr ""
#: searx/templates/simple/preferences.html:85 #: searx/templates/simple/preferences.html:85
msgid "Errors:" msgid "Errors:"
msgstr "" msgstr "වැරදි :"
#: searx/templates/simple/preferences.html:105 #: searx/templates/simple/preferences.html:105
msgid "General" msgid "General"
msgstr "" msgstr "සාමාන්‍යය"
#: searx/templates/simple/preferences.html:108 #: searx/templates/simple/preferences.html:108
msgid "Default categories" msgid "Default categories"
@ -539,20 +540,20 @@ msgstr ""
#: searx/templates/simple/filters/languages.html:1 #: searx/templates/simple/filters/languages.html:1
#: searx/templates/simple/preferences.html:115 #: searx/templates/simple/preferences.html:115
msgid "Search language" msgid "Search language"
msgstr "" msgstr "සෙවුම් භාෂාව"
#: searx/templates/simple/filters/languages.html:2 #: searx/templates/simple/filters/languages.html:2
#: searx/templates/simple/preferences.html:118 #: searx/templates/simple/preferences.html:118
msgid "Default language" msgid "Default language"
msgstr "" msgstr "මූලික භාෂාව"
#: searx/templates/simple/preferences.html:124 #: searx/templates/simple/preferences.html:124
msgid "What language do you prefer for search?" msgid "What language do you prefer for search?"
msgstr "" msgstr "සෙවුම් සඳහා ඔබ කැමති භාෂාව කුමක්ද?"
#: searx/templates/simple/preferences.html:129 #: searx/templates/simple/preferences.html:129
msgid "Autocomplete" msgid "Autocomplete"
msgstr "" msgstr "ස්වයං සම්පූර්ණ කිරීම"
#: searx/templates/simple/preferences.html:138 #: searx/templates/simple/preferences.html:138
msgid "Find stuff as you type" msgid "Find stuff as you type"
@ -565,26 +566,26 @@ msgstr ""
#: searx/templates/simple/preferences.html:143 #: searx/templates/simple/preferences.html:143
#: searx/templates/simple/preferences.html:311 #: searx/templates/simple/preferences.html:311
msgid "SafeSearch" msgid "SafeSearch"
msgstr "" msgstr "ආරක්ෂිත සෙවුම්"
#: searx/templates/simple/filters/safesearch.html:2 #: searx/templates/simple/filters/safesearch.html:2
#: searx/templates/simple/preferences.html:146 #: searx/templates/simple/preferences.html:146
msgid "Strict" msgid "Strict"
msgstr "" msgstr "තද"
#: searx/templates/simple/filters/safesearch.html:3 #: searx/templates/simple/filters/safesearch.html:3
#: searx/templates/simple/preferences.html:147 #: searx/templates/simple/preferences.html:147
msgid "Moderate" msgid "Moderate"
msgstr "" msgstr "මධ්‍යස්ථ"
#: searx/templates/simple/filters/safesearch.html:4 #: searx/templates/simple/filters/safesearch.html:4
#: searx/templates/simple/preferences.html:148 #: searx/templates/simple/preferences.html:148
msgid "None" msgid "None"
msgstr "" msgstr "කිසිවක් නැත"
#: searx/templates/simple/preferences.html:151 #: searx/templates/simple/preferences.html:151
msgid "Filter content" msgid "Filter content"
msgstr "" msgstr "අන්තර්ගතය පෙරීම"
#: searx/templates/simple/preferences.html:157 #: searx/templates/simple/preferences.html:157
msgid "Open Access DOI resolver" msgid "Open Access DOI resolver"
@ -606,19 +607,19 @@ msgstr ""
#: searx/templates/simple/preferences.html:179 #: searx/templates/simple/preferences.html:179
msgid "User interface" msgid "User interface"
msgstr "" msgstr "පරිශීලක අතුරුමුහුණත"
#: searx/templates/simple/preferences.html:182 #: searx/templates/simple/preferences.html:182
msgid "Interface language" msgid "Interface language"
msgstr "" msgstr "අතුරුමුහුණත් භාෂාව"
#: searx/templates/simple/preferences.html:190 #: searx/templates/simple/preferences.html:190
msgid "Change the language of the layout" msgid "Change the language of the layout"
msgstr "" msgstr "පිරිසැලසුම් භාෂාව වෙනස් කරන්න"
#: searx/templates/simple/preferences.html:195 #: searx/templates/simple/preferences.html:195
msgid "Theme" msgid "Theme"
msgstr "" msgstr "තේමාව"
#: searx/templates/simple/preferences.html:203 #: searx/templates/simple/preferences.html:203
msgid "Change SearXNG layout" msgid "Change SearXNG layout"
@ -640,13 +641,13 @@ msgstr ""
#: searx/templates/simple/preferences.html:232 #: searx/templates/simple/preferences.html:232
#: searx/templates/simple/preferences.html:244 #: searx/templates/simple/preferences.html:244
msgid "On" msgid "On"
msgstr "" msgstr "සක්‍රිය"
#: searx/templates/simple/preferences.html:221 #: searx/templates/simple/preferences.html:221
#: searx/templates/simple/preferences.html:233 #: searx/templates/simple/preferences.html:233
#: searx/templates/simple/preferences.html:245 #: searx/templates/simple/preferences.html:245
msgid "Off" msgid "Off"
msgstr "" msgstr "අක්‍රීය"
#: searx/templates/simple/preferences.html:224 #: searx/templates/simple/preferences.html:224
msgid "Displays results in the center of the page (Oscar layout)." msgid "Displays results in the center of the page (Oscar layout)."
@ -674,7 +675,7 @@ msgstr ""
#: searx/templates/simple/preferences.html:257 #: searx/templates/simple/preferences.html:257
msgid "HTTP Method" msgid "HTTP Method"
msgstr "" msgstr "HTTP ආකාරය"
#: searx/templates/simple/preferences.html:264 #: searx/templates/simple/preferences.html:264
msgid "" msgid ""
@ -690,12 +691,12 @@ msgstr ""
#: searx/templates/simple/preferences.html:272 #: searx/templates/simple/preferences.html:272
#: searx/templates/simple/preferences.html:284 #: searx/templates/simple/preferences.html:284
msgid "Enabled" msgid "Enabled"
msgstr "" msgstr "සක්‍රිය"
#: searx/templates/simple/preferences.html:273 #: searx/templates/simple/preferences.html:273
#: searx/templates/simple/preferences.html:285 #: searx/templates/simple/preferences.html:285
msgid "Disabled" msgid "Disabled"
msgstr "" msgstr "අක්‍රීය"
#: searx/templates/simple/preferences.html:276 #: searx/templates/simple/preferences.html:276
msgid "Proxying image results through SearXNG" msgid "Proxying image results through SearXNG"

View file

@ -11,7 +11,7 @@ msgstr ""
"Project-Id-Version: searx\n" "Project-Id-Version: searx\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2022-10-14 14:11+0000\n" "POT-Creation-Date: 2022-10-14 14:11+0000\n"
"PO-Revision-Date: 2022-10-28 07:18+0000\n" "PO-Revision-Date: 2022-11-30 15:33+0000\n"
"Last-Translator: Markus Heiser <markus.heiser@darmarit.de>\n" "Last-Translator: Markus Heiser <markus.heiser@darmarit.de>\n"
"Language-Team: Slovak <https://weblate.bubu1.eu/projects/searxng/searxng/sk/>" "Language-Team: Slovak <https://weblate.bubu1.eu/projects/searxng/searxng/sk/>"
"\n" "\n"
@ -275,6 +275,8 @@ msgid ""
"{numCitations} citations from the year {firstCitationVelocityYear} to " "{numCitations} citations from the year {firstCitationVelocityYear} to "
"{lastCitationVelocityYear}" "{lastCitationVelocityYear}"
msgstr "" msgstr ""
"{numCitations} citácií od roku {firstCitationVelocityYear} do roku "
"{lastCitationVelocityYear}"
#: searx/engines/tineye.py:40 #: searx/engines/tineye.py:40
msgid "" msgid ""
@ -300,19 +302,19 @@ msgstr "Obrázok nemohol byť stiahnutý."
#: searx/engines/wttr.py:101 #: searx/engines/wttr.py:101
msgid "Morning" msgid "Morning"
msgstr "" msgstr "Ráno"
#: searx/engines/wttr.py:101 #: searx/engines/wttr.py:101
msgid "Noon" msgid "Noon"
msgstr "" msgstr "Poludnie"
#: searx/engines/wttr.py:101 #: searx/engines/wttr.py:101
msgid "Evening" msgid "Evening"
msgstr "" msgstr "Večer"
#: searx/engines/wttr.py:101 #: searx/engines/wttr.py:101
msgid "Night" msgid "Night"
msgstr "" msgstr "Noc"
#: searx/plugins/hash_plugin.py:24 #: searx/plugins/hash_plugin.py:24
msgid "Converts strings to different hash digests." msgid "Converts strings to different hash digests."
@ -332,7 +334,7 @@ msgstr "Informácie o sebe"
#: searx/plugins/oa_doi_rewrite.py:9 #: searx/plugins/oa_doi_rewrite.py:9
msgid "Open Access DOI rewrite" msgid "Open Access DOI rewrite"
msgstr "" msgstr "Otvoriť prístup k prepísaniu DOI"
#: searx/plugins/oa_doi_rewrite.py:10 #: searx/plugins/oa_doi_rewrite.py:10
msgid "" msgid ""
@ -356,7 +358,7 @@ msgstr ""
#: searx/plugins/self_info.py:20 #: searx/plugins/self_info.py:20
msgid "Self Information" msgid "Self Information"
msgstr "" msgstr "Vlastné informácie"
#: searx/plugins/self_info.py:21 #: searx/plugins/self_info.py:21
msgid "" msgid ""
@ -368,7 +370,7 @@ msgstr ""
#: searx/plugins/tor_check.py:25 #: searx/plugins/tor_check.py:25
msgid "Tor check plugin" msgid "Tor check plugin"
msgstr "" msgstr "Kontrola Tor plugin"
#: searx/plugins/tor_check.py:28 #: searx/plugins/tor_check.py:28
msgid "" msgid ""
@ -447,7 +449,7 @@ msgstr "Používame"
#: searx/templates/simple/base.html:64 #: searx/templates/simple/base.html:64
msgid "a privacy-respecting, open metasearch engine" msgid "a privacy-respecting, open metasearch engine"
msgstr "" msgstr "otvorený metavyhľadávač rešpektujúci súkromie"
#: searx/templates/simple/base.html:65 #: searx/templates/simple/base.html:65
msgid "Source code" msgid "Source code"
@ -507,10 +509,12 @@ msgstr "Skontrolujte prosím existujúce chyby tohto vyhľadávaču na Githube"
#: searx/templates/simple/new_issue.html:69 #: searx/templates/simple/new_issue.html:69
msgid "I confirm there is no existing bug about the issue I encounter" msgid "I confirm there is no existing bug about the issue I encounter"
msgstr "" msgstr ""
"Potvrdzujem, že neexistuje žiadna chyba týkajúca sa problému, s ktorým sa "
"stretávam"
#: searx/templates/simple/new_issue.html:71 #: searx/templates/simple/new_issue.html:71
msgid "If this is a public instance, please specify the URL in the bug report" msgid "If this is a public instance, please specify the URL in the bug report"
msgstr "" msgstr "Ak ide o verejnú inštanciu, uveďte v hlásení o chybe adresu URL"
#: searx/templates/simple/new_issue.html:72 #: searx/templates/simple/new_issue.html:72
msgid "Submit a new issue on Github including the above information" msgid "Submit a new issue on Github including the above information"
@ -544,7 +548,7 @@ msgstr "P95"
#: searx/templates/simple/preferences.html:83 #: searx/templates/simple/preferences.html:83
msgid "Failed checker test(s): " msgid "Failed checker test(s): "
msgstr "" msgstr "Neúspešný(é) kontrolný(é) test(y): "
#: searx/templates/simple/preferences.html:85 #: searx/templates/simple/preferences.html:85
msgid "Errors:" msgid "Errors:"
@ -617,6 +621,8 @@ msgid ""
"Redirect to open-access versions of publications when available (plugin " "Redirect to open-access versions of publications when available (plugin "
"required)" "required)"
msgstr "" msgstr ""
"Presmerovanie na verzie publikácií s otvoreným prístupom, ak sú k dispozícii "
"(vyžaduje sa plugin)"
#: searx/templates/simple/preferences.html:171 #: searx/templates/simple/preferences.html:171
msgid "Engine tokens" msgid "Engine tokens"
@ -652,7 +658,7 @@ msgstr "Štýl témy"
#: searx/templates/simple/preferences.html:214 #: searx/templates/simple/preferences.html:214
msgid "Choose auto to follow your browser settings" msgid "Choose auto to follow your browser settings"
msgstr "" msgstr "Vyberte možnosť auto, aby sa riadila nastaveniami vášho prehliadača"
#: searx/templates/simple/preferences.html:217 #: searx/templates/simple/preferences.html:217
msgid "Center Alignment" msgid "Center Alignment"
@ -706,6 +712,9 @@ msgid ""
"href=\"http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods\"" "href=\"http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods\""
" rel=\"external\">learn more about request methods</a>" " rel=\"external\">learn more about request methods</a>"
msgstr "" msgstr ""
"Zmena spôsobu odosielania formulárov, <a href=\"http://en.wikipedia.org/wiki/"
"Hypertext_Transfer_Protocol#Request_methods\" rel=\"external\">dozvedieť sa "
"viac o metódach žiadosti</a>"
#: searx/templates/simple/preferences.html:269 #: searx/templates/simple/preferences.html:269
msgid "Image proxy" msgid "Image proxy"
@ -723,17 +732,19 @@ msgstr "Zakázané"
#: searx/templates/simple/preferences.html:276 #: searx/templates/simple/preferences.html:276
msgid "Proxying image results through SearXNG" msgid "Proxying image results through SearXNG"
msgstr "" msgstr "Sprostredkovanie výsledkov snímok cez SearXNG"
#: searx/templates/simple/preferences.html:281 #: searx/templates/simple/preferences.html:281
msgid "Query in the page's title" msgid "Query in the page's title"
msgstr "" msgstr "Dotaz v názve stránky"
#: searx/templates/simple/preferences.html:288 #: searx/templates/simple/preferences.html:288
msgid "" msgid ""
"When enabled, the result page's title contains your query. Your browser " "When enabled, the result page's title contains your query. Your browser "
"can record this title" "can record this title"
msgstr "" msgstr ""
"Ak je táto možnosť povolená, názov stránky s výsledkami obsahuje vašu "
"požiadavku. Váš prehliadač môže tento názov zaznamenať"
#: searx/templates/simple/preferences.html:294 #: searx/templates/simple/preferences.html:294
msgid "Engines" msgid "Engines"
@ -748,6 +759,8 @@ msgid ""
"This tab does not show up for search results, but you can search the " "This tab does not show up for search results, but you can search the "
"engines listed here via bangs." "engines listed here via bangs."
msgstr "" msgstr ""
"Táto karta sa nezobrazuje vo výsledkoch vyhľadávania, ale môžete vyhľadávať "
"v enginoch, ktoré sú tu uvedené, pomocou Bangs."
#: searx/templates/simple/preferences.html:307 #: searx/templates/simple/preferences.html:307
#: searx/templates/simple/preferences.html:358 #: searx/templates/simple/preferences.html:358
@ -775,7 +788,7 @@ msgstr "Časový rozsah"
#: searx/templates/simple/preferences.html:313 #: searx/templates/simple/preferences.html:313
#: searx/templates/simple/stats.html:28 #: searx/templates/simple/stats.html:28
msgid "Response time" msgid "Response time"
msgstr "" msgstr "Doba odozvy"
#: searx/templates/simple/preferences.html:314 #: searx/templates/simple/preferences.html:314
msgid "Max time" msgid "Max time"
@ -784,7 +797,7 @@ msgstr "Maximálny čas"
#: searx/templates/simple/preferences.html:315 #: searx/templates/simple/preferences.html:315
#: searx/templates/simple/stats.html:29 #: searx/templates/simple/stats.html:29
msgid "Reliability" msgid "Reliability"
msgstr "" msgstr "Spoľahlivosť"
#: searx/templates/simple/preferences.html:353 #: searx/templates/simple/preferences.html:353
msgid "Special Queries" msgid "Special Queries"

View file

@ -53,3 +53,25 @@ class TestEnginesInit(SearxTestCase):
self.assertIn('onions', engines.categories) self.assertIn('onions', engines.categories)
self.assertIn('http://engine1.onion', engines.engines['engine1'].search_url) self.assertIn('http://engine1.onion', engines.engines['engine1'].search_url)
self.assertEqual(engines.engines['engine1'].timeout, 120.0) self.assertEqual(engines.engines['engine1'].timeout, 120.0)
def test_missing_name_field(self):
settings['outgoing']['using_tor_proxy'] = False
engine_list = [
{'engine': 'dummy', 'shortcut': 'e1', 'categories': 'general'},
]
with self.assertLogs('searx.engines', level='ERROR') as cm:
engines.load_engines(engine_list)
self.assertEqual(len(engines.engines), 0)
self.assertEqual(cm.output, ['ERROR:searx.engines:An engine does not have a "name" field'])
def test_missing_engine_field(self):
settings['outgoing']['using_tor_proxy'] = False
engine_list = [
{'name': 'engine2', 'shortcut': 'e2', 'categories': 'onions'},
]
with self.assertLogs('searx.engines', level='ERROR') as cm:
engines.load_engines(engine_list)
self.assertEqual(len(engines.engines), 0)
self.assertEqual(
cm.output, ['ERROR:searx.engines:The "engine" field is missing for the engine named "engine2"']
)