From 8c29cd26b77be4555c650e3ff514b14bd1b65d71 Mon Sep 17 00:00:00 2001 From: ngosang Date: Tue, 29 Nov 2022 22:29:50 +0100 Subject: [PATCH 01/10] Add PyCharm configuration files to .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 9b3eff158..262e9c1c1 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,5 @@ gh-pages/ /package-lock.json /node_modules/ + +.idea/ From 9417c284d3baf0f10534b9e3cc0a0c3ffe9c8544 Mon Sep 17 00:00:00 2001 From: ngosang Date: Wed, 26 Oct 2022 21:00:19 +0200 Subject: [PATCH 02/10] Reduce Docker image size * Remove compiled sources. Most of them are never used. Those in use are compiled in the first run really fast. * Copy only source code and Docker entypoint * Image size reduced by 41 MB (195 MB -> 154 MB uncompressed) --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 64aa8bcef..71e27f0f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,21 +45,21 @@ RUN apk upgrade --no-cache \ uwsgi \ uwsgi-python3 \ brotli \ - && pip3 install --upgrade pip wheel setuptools \ && pip3 install --no-cache -r requirements.txt \ && apk del build-dependencies \ - && rm -rf /root/.cache + && rm -rf /root/.cache \ + && find /usr/lib/python*/ -name '*.pyc' -delete -COPY --chown=searxng:searxng . . +COPY --chown=searxng:searxng dockerfiles ./dockerfiles +COPY --chown=searxng:searxng searx ./searx ARG TIMESTAMP_SETTINGS=0 ARG TIMESTAMP_UWSGI=0 ARG VERSION_GITCOMMIT=unknown -RUN su searxng -c "/usr/bin/python3 -m compileall -q searx"; \ - touch -c --date=@${TIMESTAMP_SETTINGS} searx/settings.yml; \ - touch -c --date=@${TIMESTAMP_UWSGI} dockerfiles/uwsgi.ini; \ - find /usr/local/searxng/searx/static -a \( -name '*.html' -o -name '*.css' -o -name '*.js' \ +RUN touch -c --date=@${TIMESTAMP_SETTINGS} searx/settings.yml \ + && touch -c --date=@${TIMESTAMP_UWSGI} dockerfiles/uwsgi.ini \ + && find /usr/local/searxng/searx/static -a \( -name '*.html' -o -name '*.css' -o -name '*.js' \ -o -name '*.svg' -o -name '*.ttf' -o -name '*.eot' \) \ -type f -exec gzip -9 -k {} \+ -exec brotli --best {} \+ From 6b88e857f9df5df6b0f35af618b651271363c2a2 Mon Sep 17 00:00:00 2001 From: ngosang Date: Tue, 29 Nov 2022 23:13:15 +0100 Subject: [PATCH 03/10] fix --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 71e27f0f6..79602553d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,8 +22,7 @@ WORKDIR /usr/local/searxng COPY requirements.txt ./requirements.txt -RUN apk upgrade --no-cache \ - && apk add --no-cache -t build-dependencies \ +RUN apk add --no-cache -t build-dependencies \ build-base \ py3-setuptools \ python3-dev \ @@ -47,8 +46,7 @@ RUN apk upgrade --no-cache \ brotli \ && pip3 install --no-cache -r requirements.txt \ && apk del build-dependencies \ - && rm -rf /root/.cache \ - && find /usr/lib/python*/ -name '*.pyc' -delete + && rm -rf /root/.cache COPY --chown=searxng:searxng dockerfiles ./dockerfiles COPY --chown=searxng:searxng searx ./searx @@ -57,7 +55,8 @@ ARG TIMESTAMP_SETTINGS=0 ARG TIMESTAMP_UWSGI=0 ARG VERSION_GITCOMMIT=unknown -RUN touch -c --date=@${TIMESTAMP_SETTINGS} searx/settings.yml \ +RUN su searxng -c "/usr/bin/python3 -m compileall -q searx" \ + && touch -c --date=@${TIMESTAMP_SETTINGS} searx/settings.yml \ && touch -c --date=@${TIMESTAMP_UWSGI} dockerfiles/uwsgi.ini \ && find /usr/local/searxng/searx/static -a \( -name '*.html' -o -name '*.css' -o -name '*.js' \ -o -name '*.svg' -o -name '*.ttf' -o -name '*.eot' \) \ From ba61457220d788e22a26847116f6bb3848f2dcba Mon Sep 17 00:00:00 2001 From: ngosang Date: Tue, 29 Nov 2022 23:45:10 +0100 Subject: [PATCH 04/10] Update base Docker image to Alpine 3.17 * Python version is unchanged 3.10.8 * This issue is fixed https://github.com/searxng/searxng-docker/issues/31 --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 64aa8bcef..a2c216b34 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.16 +FROM alpine:3.17 ENTRYPOINT ["/sbin/tini","--","/usr/local/searxng/dockerfiles/docker-entrypoint.sh"] EXPOSE 8080 VOLUME /etc/searxng @@ -19,7 +19,6 @@ ENV INSTANCE_NAME=searxng \ WORKDIR /usr/local/searxng - COPY requirements.txt ./requirements.txt RUN apk upgrade --no-cache \ From 8ec037bbb952df0545763dfab41b7f8f04af3ead Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 2 Dec 2022 07:00:44 +0000 Subject: [PATCH 05/10] Bump pylint from 2.15.6 to 2.15.7 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.15.6 to 2.15.7. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Commits](https://github.com/PyCQA/pylint/compare/v2.15.6...v2.15.7) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 7c89498eb..99cc18741 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,7 +2,7 @@ mock==4.0.3 nose2[coverage_plugin]==0.12.0 cov-core==1.15.0 black==22.10.0 -pylint==2.15.6 +pylint==2.15.7 splinter==0.18.1 selenium==4.6.0 twine==4.0.1 From b47b4e9fe4d9eaf043b18465198f3dd386f963ec Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 2 Dec 2022 07:00:46 +0000 Subject: [PATCH 06/10] Bump linuxdoc from 20221025 to 20221127 Bumps [linuxdoc](https://github.com/return42/linuxdoc) from 20221025 to 20221127. - [Release notes](https://github.com/return42/linuxdoc/releases) - [Commits](https://github.com/return42/linuxdoc/commits) --- updated-dependencies: - dependency-name: linuxdoc dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 7c89498eb..87f4f45cc 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -15,7 +15,7 @@ sphinxcontrib-programoutput==0.17 sphinx-autobuild==2021.3.14 sphinx-notfound-page==0.8.3 myst-parser==0.18.1 -linuxdoc==20221025 +linuxdoc==20221127 aiounittest==1.4.2 yamllint==1.28.0 wlc==1.13 From f40d1c0004c7c3758e6ce00556840190fc30b698 Mon Sep 17 00:00:00 2001 From: searxng-bot Date: Fri, 2 Dec 2022 07:15:43 +0000 Subject: [PATCH 07/10] [translations] update from Weblate cc5cf5d8 - 2022-11-30 - Chathura madusanka 97776fbf - 2022-11-29 - Markus Heiser c3c9f988 - 2022-11-29 - Markus Heiser a1cf339e - 2022-11-29 - Markus Heiser 4429167c - 2022-11-25 - Markus Heiser --- searx/translations/ar/LC_MESSAGES/messages.mo | Bin 20974 -> 21620 bytes searx/translations/ar/LC_MESSAGES/messages.po | 21 ++-- searx/translations/eo/LC_MESSAGES/messages.mo | Bin 12822 -> 12928 bytes searx/translations/eo/LC_MESSAGES/messages.po | 8 +- .../pt_BR/LC_MESSAGES/messages.mo | Bin 18113 -> 18167 bytes .../pt_BR/LC_MESSAGES/messages.po | 47 ++++----- searx/translations/si/LC_MESSAGES/messages.mo | Bin 3179 -> 5937 bytes searx/translations/si/LC_MESSAGES/messages.po | 95 +++++++++--------- searx/translations/sk/LC_MESSAGES/messages.mo | Bin 12452 -> 14943 bytes searx/translations/sk/LC_MESSAGES/messages.po | 45 ++++++--- 10 files changed, 117 insertions(+), 99 deletions(-) diff --git a/searx/translations/ar/LC_MESSAGES/messages.mo b/searx/translations/ar/LC_MESSAGES/messages.mo index a39b16606ef44d14518d51ce9d636634b6b9acbd..cdbe6f7e0c289c2da9c3fa447f8720f7bace3e49 100644 GIT binary patch delta 4808 zcmcK7i&IqR8OQOL<)Q)#q9|(71yPJa&|thE-fw6zBA|)!f{Uy`Mb|7#)Yf*RMXKbY zDYY?4M`u#-R&Th*NOd$`(vFJJnmAq5G&4;k)tXCd>`W6I`~B@Xo%{uLnEjmhyzhD5 z=Y8ID&aPklHtg#?VgA1)L~JwsiwHC32bkMYt?&OWj5j8d<|0hNrFMHGcA)*DZ39Np zeiLKyEu4ynuoxd;1kUVgObpIO;`+@34iw0Rj4_p%h(E?%xD_?=$OLQLd|MYjuJJes zx1lCDh0%Bp)9`)lgZEM6Dpg63oVAyp4=C;oYr-dZ02+M-?XYUT-WbdLW*`ThF&i~-BKE@>=)_9Y3hGe-b|HV} z03RBE&h`>2!4I$#-ohkoM@{(1?vEjRjq8s7E*vCtpcQ5Cp$R6V2FyfFP=rogfEvFJ z!|_Gr&urmCrQc=yJJf`SkvYvt)RtUBifcYXRp=i*sQ)+)96hZ76LA{tX{Z1%V;sJY zx~cY}w&oZrzy-|28>k9)V!2AZr>zq;@nfip47VMJT3B8Z_1B6EIH3!lMzxpN1Ike= z_1OK@_W5191F(WrRwsKk1q#;4n6pqKVAKL=W2BXXmgqo@i0fDXKf z#5R|aMVfXTfZw6UrS-NPWSfE7qM@jS#-l1Q13g%bId~pNqyG^H8ZeqWOeLR!%D4bk zqQ$6y%TVKLa3H>b+JfD7|8dlWe?)RKe?qp|{2k|@gO`iq7h@JKLE`$&Rt_}bPShSB zK;0z2#|ij8W?&r8rV_|Sm2x_2tMcvhML2}^VpP1BP?dcHmC!!a`17d5FJVVL|F`Up z+qU;mnchbQc!VyD>uZ(%Iponcub~3&$6O4cuKNlps(Fa2NKc++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k4@>Mpi7>zrT zZ;aW4>i-T_;RUS6(m6KHeq>viW2pGwp%NdJNBu)I()h|O!7|hmw4+M+M;wWNbNAmx zCGZ()hQsphl1xU;Y$lGz0@RF`p$1%unsFWKy+)^(PyO}6Hf{t0#yo}^;PLBhfR|8f zei*eheW;mVMg6EKQ;hj0=q?tIjHm8kx=pw@mXs#0%zG!!sYV9iFAYA&kd zI@C-y<5q0O4R{6jVojl~SZt9!&l#u*6ryIl+FfrzRrUc?0*~Vi^geZsG5ph~H7rJ* z<62C`NX}j_reist#$?PXw!3{1GI_HG@4*fvClfv2CQ^=(T(3h-Xd{lnMy$~J|E0Te z9JO|5Q5Cp`Dt-C_8)yz{Mk`Q(YEaMbK+Wu4oPfW~QHW%dJhKX!55 zgX~+giZY(WZ8+1T@v}u_gOB0&n`W_{StY6xYut4!PT~4d)PGD4Agg5hQ8OR8#P-WX zif67vmAVqN)J$_Nn6H$ukcq`jb~6LzJZ;i3aml}szEJ5 zJt~3wQEUA>B$Rmyqwp-o;6+q_ExhhWSFrvHJeC{URN2mQXALUg7EHyhsME3&6<`ml z-;1c3_M-+kg&OcYCgC-AKcUhl8bZaLS4sU9XdyS`a?~bVh57((z-icu8sIt9ChSGM z-;a}V5EXC;6ESRseLopfxXwX+AC@|6oXs8$zLsV?@=Y?hlv%$YBE+gO<$NxRd zk4bnU(6J}6(_b|1beNwzzAfM%olq6-XQajj{drScBcgJ1L$j_g%$@81WBRUee@;$y z(C^3%g?GH1_fNk)|58NM!0v&A1N#R4+)*++(ce|{moWdK;(|#3Na+KS{_16uhW`(B C?$PxC diff --git a/searx/translations/ar/LC_MESSAGES/messages.po b/searx/translations/ar/LC_MESSAGES/messages.po index 60445c428..d1056ebc7 100644 --- a/searx/translations/ar/LC_MESSAGES/messages.po +++ b/searx/translations/ar/LC_MESSAGES/messages.po @@ -14,7 +14,7 @@ msgstr "" "Project-Id-Version: searx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\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 \n" "Language-Team: Arabic " "\n" @@ -712,6 +712,9 @@ msgid "" "href=\"http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods\"" " rel=\"external\">learn more about request methods" msgstr "" +"تغيير طريقة إرسال النماذج، إعرف المزيد " +"عن طرق الطلب" #: searx/templates/simple/preferences.html:269 msgid "Image proxy" @@ -1125,7 +1128,7 @@ msgstr "إخفاء الخريطة" #: searx/templates/simple/result_templates/paper.html:5 msgid "Published date" -msgstr "" +msgstr "تاريخ النشر" #: searx/templates/simple/result_templates/paper.html:9 msgid "Journal" @@ -1133,19 +1136,19 @@ msgstr "" #: searx/templates/simple/result_templates/paper.html:22 msgid "Editor" -msgstr "" +msgstr "المحرر" #: searx/templates/simple/result_templates/paper.html:23 msgid "Publisher" -msgstr "" +msgstr "الناشر" #: searx/templates/simple/result_templates/paper.html:24 msgid "Type" -msgstr "" +msgstr "نوع" #: searx/templates/simple/result_templates/paper.html:25 msgid "Tags" -msgstr "" +msgstr "السمات" #: searx/templates/simple/result_templates/paper.html:26 msgid "DOI" @@ -1157,15 +1160,15 @@ msgstr "" #: searx/templates/simple/result_templates/paper.html:28 msgid "ISBN" -msgstr "" +msgstr "ISBN" #: searx/templates/simple/result_templates/paper.html:33 msgid "PDF" -msgstr "" +msgstr "PDF" #: searx/templates/simple/result_templates/paper.html:34 msgid "HTML" -msgstr "" +msgstr "HTML" #: searx/templates/simple/result_templates/torrent.html:6 msgid "magnet link" diff --git a/searx/translations/eo/LC_MESSAGES/messages.mo b/searx/translations/eo/LC_MESSAGES/messages.mo index e03b2b568ed4fd55cb624a6b6e38d3b768efbb47..bd7fc2e5a0790db30cdf45a6757eead65d750138 100644 GIT binary patch delta 3627 zcmYM%drVhl9LMno!5_#?0Y$>ppBLn=B5Bf0aTBMY7NO~KT0ilp+yvsHF>*)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lyL^?*p9+NoQkjFZq&Hz z*4xN|G+juJ#zk}`>P20rV;W9Daxkk%=TvYyYTN?Uf=X@wTI5YI)u?#&s092?G`uu|NDih0N8lq= z;FMHnV20I)nqWLqZ8HhA$BR)bE3A3$x{5!46bD!TNd|3O20*o9#jO5J26 zYNau#JxxSSl!e-&amd%ryn-5EY+a7pg4L*%)}j)qM;-FRsIzt)N9jdxp`n0}>;U(0 z=aeSle_skz#$#=NAu8Y;49A7`elaSM3S?!b5+iW4bsOq_Exv~zpqu$k-*hL?5Y&oO zQJMN|e*s2vJq35;3{*vav38@LdxqL`H+9xoO0Z_*7_O(H65C|mihgx$qoGp0k7c+Y zwPIJMGjTjBp=8v`Gf|}lg1 zJ`7)=0-eNOcow6v4f!=4{89fi)c9Um&R+LNZN(ULV;)9hAu8T1)crT?^;@XKS7cFt z?fqstB5|)BZ~&EQ18Snvw!h8x|AZUpzmE!BGSYc_R$?L7yRZ`5k!?29vz^kfLsfP? z>h0L>r=h(%h#ve3bx2w<0xw$Ik-5w@bYobK^IRNif=qk?XJH=h!B{+xigOhe_a>@> zw=ov|-89l@{EezW3LB=9Wm-q09+-eSBZa60UPt}^T8tjth?;0SYWyzL+1iJi_+yO0 zgVrXe-)~OQ(1T}Cd)9(V;4-ST*H8gE?e%Zgd#H(fP!m2yB^K#(CXPofXn=JnYR}VA ziR7bO@Bhm*^g)p!=v({t&f*qEXHk z&P1K9&A3XL)X~s{A;BuoIZtp|a-}QUmp$6&^*x{O^9An=X^wG~l`jnjvX;1lxw*?j W+}?E?idU~JThel(JQ(oZ4EYzX>Pc7t diff --git a/searx/translations/eo/LC_MESSAGES/messages.po b/searx/translations/eo/LC_MESSAGES/messages.po index 995c9079c..50e4c751f 100644 --- a/searx/translations/eo/LC_MESSAGES/messages.po +++ b/searx/translations/eo/LC_MESSAGES/messages.po @@ -14,7 +14,7 @@ msgstr "" "Project-Id-Version: searx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\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 \n" "Language-Team: Esperanto \n" @@ -134,7 +134,7 @@ msgstr "reto" #. CATEGORY_GROUPS['SCIENTIFIC PUBLICATIONS'] #: searx/searxng.msg msgid "scientific publications" -msgstr "scienca publikaĵo" +msgstr "sciencaj publikaĵoj" #. STYLE_NAMES['AUTO'] #: searx/searxng.msg @@ -448,11 +448,11 @@ msgstr "Funkciigita per" #: searx/templates/simple/base.html:64 msgid "a privacy-respecting, open metasearch engine" -msgstr "" +msgstr "privateco-respektanta, libera metaserĉilo" #: searx/templates/simple/base.html:65 msgid "Source code" -msgstr "Fontkodo" +msgstr "Fontaĵo" #: searx/templates/simple/base.html:66 msgid "Issue tracker" diff --git a/searx/translations/pt_BR/LC_MESSAGES/messages.mo b/searx/translations/pt_BR/LC_MESSAGES/messages.mo index a9e36bc715bd8990c2478cd0b572893ea06425b6..aaab923a0e091932af7681671b95928bcfdbd3d3 100644 GIT binary patch delta 2421 zcmZY9YiyHM9LMqVY_f52V`Cd2bq*{G4UXOQVhHW{i1ij4>3=GuRzp#U8i```|WIzYj47593_yKnL?njmg3& z=HVJt|JN`Z-^2pkh6C|nsfnAT6uzQi5Vk#%9J{4b()19%FKGAP&P) z9D#Fi61KYEKSK3CiQnOu*dKRzjmgBL-gtUvpU|KQzeX+mBR+`N@FBd76EUyMm>|x; z2QZ0!@nh7^&tOkHhq-tebMPjr-@n)!i^|iP7!jv1j)qCDVbqS=QK>tHO8pts0$1Gj zYp5f-fjXitv@ye%UU(R4p$gRa8qCM}I0~1cG85lKK@)97Ew~ev>V2qzr%|c8ghhA- zwev35yQoZMRHVQ6Mg=qiwc|2WAaytg7of)POB*)_C@i4i5UOK#W%}~;L#1vs>e7tI z0r&(?!2tHdc2s6QMWwtGwUM)^z%ID$zo3rxZ`97Mu?m#)??FKe6`(#mjLJv}YUdSh zeLQNR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$qV*;5k%DFQGDg-E$B#_5BZ9#6J{Xw!~ND0#Se#*n6PG?cthyvmBE zN=x2Pv)Yn3%Y0UAYGQd;rmwBPCt`1iG==O~C~7+`>zua!Lr#<9H;ZF2#}2nT&7oG? y8\n" +"PO-Revision-Date: 2022-11-28 13:11+0000\n" +"Last-Translator: Markus Heiser \n" "Language-Team: Portuguese (Brazil) \n" "Language: pt_BR\n" @@ -92,7 +92,7 @@ msgstr "mapas" #. CATEGORY_NAMES['ONIONS'] #: searx/searxng.msg msgid "onions" -msgstr "onion" +msgstr "onions" #. CATEGORY_NAMES['SCIENCE'] #: searx/searxng.msg @@ -147,7 +147,7 @@ msgstr "publicações científicas" #. STYLE_NAMES['AUTO'] #: searx/searxng.msg msgid "auto" -msgstr "auto" +msgstr "automático" #. STYLE_NAMES['LIGHT'] #: searx/searxng.msg @@ -169,7 +169,7 @@ msgstr "erro de leitura" #: searx/webapp.py:166 msgid "HTTP protocol error" -msgstr "error de protocolo HTTP" +msgstr "erro de protocolo HTTP" #: searx/webapp.py:167 msgid "network error" @@ -254,7 +254,7 @@ msgstr "Gerador de valor aleatório" #: searx/answerers/random/answerer.py:68 msgid "Generate different random values" -msgstr "Gere diferentes valores aleatórios" +msgstr "Gerar diferentes valores aleatórios" #: searx/answerers/statistics/answerer.py:47 msgid "Statistics functions" @@ -262,11 +262,11 @@ msgstr "Funções estatísticas" #: searx/answerers/statistics/answerer.py:48 msgid "Compute {functions} of the arguments" -msgstr "Computa {functions} dos argumentos" +msgstr "Computar {functions} dos argumentos" #: searx/engines/openstreetmap.py:160 msgid "Get directions" -msgstr "Obter direções" +msgstr "Obter instruções" #: searx/engines/pdbe.py:96 msgid "{title} (OBSOLETE)" @@ -294,9 +294,9 @@ msgid "" "format. TinEye only supports images that are JPEG, PNG, GIF, BMP, TIFF or" " WebP." msgstr "" -"Não foi possível fazer a leitura desta URL. Isso pode ocorrido devido a " -"um formato de arquivo não suportado. Apenas os seguintes tipos de imagem " -"são suportados pelo TinEye: JPEG, PNG, GIF, BMP, TIFF ou WebP." +"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 são " +"suportados pelo TinEye: JPEG, PNG, GIF, BMP, TIFF ou WebP." #: searx/engines/tineye.py:46 msgid "" @@ -309,7 +309,7 @@ msgstr "" #: searx/engines/tineye.py:52 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 msgid "Morning" @@ -317,15 +317,15 @@ msgstr "manhã" #: searx/engines/wttr.py:101 msgid "Noon" -msgstr "meio dia" +msgstr "Meio dia" #: searx/engines/wttr.py:101 msgid "Evening" -msgstr "tarde" +msgstr "Tarde" #: searx/engines/wttr.py:101 msgid "Night" -msgstr "noite" +msgstr "Noite" #: searx/plugins/hash_plugin.py:24 msgid "Converts strings to different hash digests." @@ -397,20 +397,21 @@ msgid "" "The TOR exit node list (https://check.torproject.org/exit-addresses) is " "unreachable." msgstr "" -"A lista de nódulos de saída TOR (https://check.torproject.org/exit-" -"addresses) não pode ser alcançada." +"A lista de nódulos de saída TOR (https://check.torproject.org/exit-addresses)" +" é inalcançável." #: searx/plugins/tor_check.py:78 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 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 msgid "Tracker URL remover" -msgstr "Remover rastreador da URL" +msgstr "Removedor de rastreador da URL" #: searx/plugins/tracker_url_remover.py:30 msgid "Remove trackers arguments from the returned URL" @@ -692,7 +693,7 @@ msgstr "Desligado" #: searx/templates/simple/preferences.html:224 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 msgid "Results on new tabs" @@ -920,7 +921,7 @@ msgstr "Voltar" #: searx/templates/simple/results.html:23 msgid "Answers" -msgstr "Perguntas" +msgstr "Respostas" #: searx/templates/simple/results.html:39 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/videos.html:14 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 msgid "Format" diff --git a/searx/translations/si/LC_MESSAGES/messages.mo b/searx/translations/si/LC_MESSAGES/messages.mo index 33b63262d233ff8a2527b88b7e94a544f8a3bd52..e6ba2a06fd02e8cdf06084f58c6c50c5ece34265 100644 GIT binary patch literal 5937 zcmbW4ZH!!18OIOuqAY5mzAM3l3EE0$x3i^4rY}&s+jdEpT{|lVBQ_ndQPW_Me@ zu-U!8d)}V&Jpbo8XJ-Gp@{;c>erEW)n!lgEPg;YYuV1PZzv?a?m%%dpAiNu13-`hI z!zbaD@EQ04_yUyquln&{LRt4~_!;;I-~YDff8mGeznDd0ZzcRV{4~4*=HbWSCO8C( z@FQ?HTnQ5>`yYhE@EGJ*z2^BFD1QAOiv8CiTdKeN{(r&`(S93V0xx2c@G^KYyaI|e zE1>wf5{e(!!ZmP>Z{G=5(5^u7Cxe(&2cg9AsBb?3H`0C@UJhS}pM!5f@#}J&m3>yg zFTiV{__qy;Uo)O}dhUjzZyCz^Cd8DQgR=iOq4SZ1>?-x+w`7IPXe}=N}8&LLr6Mh2z3yNQt5~R#u2}PG{p!APGnZFTU1;_mO z9Z>e2gh}6$getpajB0(@Fw^p_+|JP-#@};pQSwxWuAdj@Avxl z6YzT4r{EO)6BK{GNU&mmBb4!NQ0g~x? z8)zSZV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z)B{~Q$C*n}FW7O)o^2@)G(ug4z;nJgU*e#kPclv%baQ?mp>e^( zitl!t-VyfaaoNd|S?}TkQj=0}>5-xC_O3x2RBTK%$yh zVD&+pE+nLjq@BW9tgwUkldFcriB9&iqxYoSZj0U`Yk&dy!ncDjd}3YvZa>CC zHjAab)PBB@_FJ-ipGLZMem+0lcV6;thbi@F~b>2`LovYyIlGdD;b%$ zCj8ZbLzIX_g|T_t;4+lL((dZQCd*t^px3i*8g39!Ux@=u#s<9vAZHwH=|V_6bArJoRV-!C?GhDfF>SD)ae12#riL~euL z?h**=$RanrNWQFM&yVVYv#iU#Q|Sz0cwTIa1)dZXg5u?I`!9>_UMiOu_EqvMPP%#- zd~UgrNgsELM9LH-VhdKuJ)vwNx?_EU!H4Zklx4n4Qojg9VVuFk#W$|hF*!Z0tyOA( zOU5p=$#&b*Mt)`y$ces3asb%gRnCI;|3$6A34&lU?(vi|v(KZe*kSeHe=Dnue3`<4 Ld>O;kdt3K^!%c#% delta 927 zcmYMxPe>F|9Ki9nW$XI?&$1~fHYHKvpWMWhO(LV9A~r%hbZgid*NJsznVAJWlpsxma3n#QKUxMO)-VGHLYmr;-C5JzSON%^>U=@l7|#nW5*WjA0fRju~mw zD!5tCGL6CDPsaV1C|<9OMfB(Dw0=`FqZezF`g!fVUaCv#nR-iKY-rWhjqSQ6KB*ta b+hfbGHecM^Twc<@;v2dlal80B5k!6iP5znu diff --git a/searx/translations/si/LC_MESSAGES/messages.po b/searx/translations/si/LC_MESSAGES/messages.po index ac21b33df..277483f38 100644 --- a/searx/translations/si/LC_MESSAGES/messages.po +++ b/searx/translations/si/LC_MESSAGES/messages.po @@ -3,13 +3,14 @@ # This file is distributed under the same license as the PROJECT project. # FIRST AUTHOR , 2022. # Sadith Nadungoda , 2022. +# Chathura madusanka , 2022. msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2022-10-14 14:11+0000\n" -"PO-Revision-Date: 2022-11-11 07:18+0000\n" -"Last-Translator: Sadith Nadungoda \n" +"PO-Revision-Date: 2022-11-30 15:33+0000\n" +"Last-Translator: Chathura madusanka \n" "Language-Team: Sinhala \n" "Language: si\n" @@ -38,7 +39,7 @@ msgstr "ගොනු" #. CATEGORY_NAMES['GENERAL'] #: searx/searxng.msg msgid "general" -msgstr "" +msgstr "සාමාන්‍ය" #. CATEGORY_NAMES['MUSIC'] #: searx/searxng.msg @@ -63,7 +64,7 @@ msgstr "වීඩියෝ" #. CATEGORY_NAMES['IT'] #: searx/searxng.msg msgid "it" -msgstr "" +msgstr "එය" #. CATEGORY_NAMES['NEWS'] #: searx/searxng.msg @@ -108,7 +109,7 @@ msgstr "පැකේජ" #. CATEGORY_GROUPS['Q_A'] #: searx/searxng.msg msgid "q&a" -msgstr "" +msgstr "ප්‍රශ්න සහ පිළිතුරු" #. CATEGORY_GROUPS['REPOS'] #: searx/searxng.msg @@ -138,12 +139,12 @@ msgstr "ස්වයංක්‍රීය" #. STYLE_NAMES['LIGHT'] #: searx/searxng.msg msgid "light" -msgstr "" +msgstr "එළිය" #. STYLE_NAMES['DARK'] #: searx/searxng.msg msgid "dark" -msgstr "" +msgstr "අඳුරු" #: searx/webapp.py:164 msgid "timeout" @@ -264,7 +265,7 @@ msgstr "" #: searx/engines/qwant.py:219 msgid "Channel" -msgstr "" +msgstr "නාලිකාව" #: searx/engines/semantic_scholar.py:81 msgid "" @@ -287,23 +288,23 @@ msgstr "" #: searx/engines/tineye.py:52 msgid "The image could not be downloaded." -msgstr "" +msgstr "මෙම රූපය බාගත කල නොහැකි විය." #: searx/engines/wttr.py:101 msgid "Morning" -msgstr "" +msgstr "උදෑසන" #: searx/engines/wttr.py:101 msgid "Noon" -msgstr "" +msgstr "දවල්" #: searx/engines/wttr.py:101 msgid "Evening" -msgstr "" +msgstr "හවස" #: searx/engines/wttr.py:101 msgid "Night" -msgstr "" +msgstr "රාත්‍රිය" #: searx/plugins/hash_plugin.py:24 msgid "Converts strings to different hash digests." @@ -343,7 +344,7 @@ msgstr "" #: searx/plugins/self_info.py:20 msgid "Self Information" -msgstr "" +msgstr "තම තොරතුරු" #: searx/plugins/self_info.py:21 msgid "" @@ -395,24 +396,24 @@ msgstr "" #: searx/templates/simple/404.html:4 msgid "Page not found" -msgstr "" +msgstr "පිටුව සමු නොවීය" #: searx/templates/simple/404.html:6 #, python-format msgid "Go to %(search_page)s." -msgstr "" +msgstr "%(search_page)s ට යන්න." #: searx/templates/simple/404.html:6 msgid "search page" -msgstr "" +msgstr "සෙවුම් පිටුව" #: searx/templates/simple/base.html:46 msgid "About" -msgstr "" +msgstr "ගැන" #: searx/templates/simple/base.html:50 msgid "Donate" -msgstr "" +msgstr "ආධාර කරන්න" #: searx/templates/simple/base.html:54 #: searx/templates/simple/preferences.html:99 @@ -421,7 +422,7 @@ msgstr "" #: searx/templates/simple/base.html:64 msgid "Powered by" -msgstr "" +msgstr "බලගැන්වීම" #: searx/templates/simple/base.html:64 msgid "a privacy-respecting, open metasearch engine" @@ -429,7 +430,7 @@ msgstr "" #: searx/templates/simple/base.html:65 msgid "Source code" -msgstr "" +msgstr "මූල කේතය" #: searx/templates/simple/base.html:66 msgid "Issue tracker" @@ -437,7 +438,7 @@ msgstr "" #: searx/templates/simple/base.html:67 searx/templates/simple/stats.html:18 msgid "Engine stats" -msgstr "" +msgstr "යන්ත්‍ර තත්ත්වය" #: searx/templates/simple/base.html:69 #: searx/templates/simple/messages/no_results.html:15 @@ -458,13 +459,13 @@ msgstr "" #: searx/templates/simple/macros.html:36 msgid "Length" -msgstr "" +msgstr "දිග" #: searx/templates/simple/macros.html:37 #: searx/templates/simple/result_templates/images.html:18 #: searx/templates/simple/result_templates/paper.html:6 msgid "Author" -msgstr "" +msgstr "කතුවරයා" #: searx/templates/simple/macros.html:45 msgid "cached" @@ -492,11 +493,11 @@ msgstr "" #: searx/templates/simple/new_issue.html:72 msgid "Submit a new issue on Github including the above information" -msgstr "" +msgstr "නව ප්‍රශ්න GitHub මත එය පිලිබඳ තොරතුරු සමග යොමුකරන්න" #: searx/templates/simple/preferences.html:29 msgid "No HTTPS" -msgstr "" +msgstr "HTTPS නොවේ" #: searx/templates/simple/messages/no_results.html:10 #: searx/templates/simple/preferences.html:31 @@ -508,7 +509,7 @@ msgstr "" #: searx/templates/simple/preferences.html:53 #: searx/templates/simple/stats.html:64 msgid "Median" -msgstr "" +msgstr "මධ්‍යනය" #: searx/templates/simple/preferences.html:54 #: searx/templates/simple/stats.html:70 @@ -526,11 +527,11 @@ msgstr "" #: searx/templates/simple/preferences.html:85 msgid "Errors:" -msgstr "" +msgstr "වැරදි :" #: searx/templates/simple/preferences.html:105 msgid "General" -msgstr "" +msgstr "සාමාන්‍යය" #: searx/templates/simple/preferences.html:108 msgid "Default categories" @@ -539,20 +540,20 @@ msgstr "" #: searx/templates/simple/filters/languages.html:1 #: searx/templates/simple/preferences.html:115 msgid "Search language" -msgstr "" +msgstr "සෙවුම් භාෂාව" #: searx/templates/simple/filters/languages.html:2 #: searx/templates/simple/preferences.html:118 msgid "Default language" -msgstr "" +msgstr "මූලික භාෂාව" #: searx/templates/simple/preferences.html:124 msgid "What language do you prefer for search?" -msgstr "" +msgstr "සෙවුම් සඳහා ඔබ කැමති භාෂාව කුමක්ද?" #: searx/templates/simple/preferences.html:129 msgid "Autocomplete" -msgstr "" +msgstr "ස්වයං සම්පූර්ණ කිරීම" #: searx/templates/simple/preferences.html:138 msgid "Find stuff as you type" @@ -565,26 +566,26 @@ msgstr "" #: searx/templates/simple/preferences.html:143 #: searx/templates/simple/preferences.html:311 msgid "SafeSearch" -msgstr "" +msgstr "ආරක්ෂිත සෙවුම්" #: searx/templates/simple/filters/safesearch.html:2 #: searx/templates/simple/preferences.html:146 msgid "Strict" -msgstr "" +msgstr "තද" #: searx/templates/simple/filters/safesearch.html:3 #: searx/templates/simple/preferences.html:147 msgid "Moderate" -msgstr "" +msgstr "මධ්‍යස්ථ" #: searx/templates/simple/filters/safesearch.html:4 #: searx/templates/simple/preferences.html:148 msgid "None" -msgstr "" +msgstr "කිසිවක් නැත" #: searx/templates/simple/preferences.html:151 msgid "Filter content" -msgstr "" +msgstr "අන්තර්ගතය පෙරීම" #: searx/templates/simple/preferences.html:157 msgid "Open Access DOI resolver" @@ -606,19 +607,19 @@ msgstr "" #: searx/templates/simple/preferences.html:179 msgid "User interface" -msgstr "" +msgstr "පරිශීලක අතුරුමුහුණත" #: searx/templates/simple/preferences.html:182 msgid "Interface language" -msgstr "" +msgstr "අතුරුමුහුණත් භාෂාව" #: searx/templates/simple/preferences.html:190 msgid "Change the language of the layout" -msgstr "" +msgstr "පිරිසැලසුම් භාෂාව වෙනස් කරන්න" #: searx/templates/simple/preferences.html:195 msgid "Theme" -msgstr "" +msgstr "තේමාව" #: searx/templates/simple/preferences.html:203 msgid "Change SearXNG layout" @@ -640,13 +641,13 @@ msgstr "" #: searx/templates/simple/preferences.html:232 #: searx/templates/simple/preferences.html:244 msgid "On" -msgstr "" +msgstr "සක්‍රිය" #: searx/templates/simple/preferences.html:221 #: searx/templates/simple/preferences.html:233 #: searx/templates/simple/preferences.html:245 msgid "Off" -msgstr "" +msgstr "අක්‍රීය" #: searx/templates/simple/preferences.html:224 msgid "Displays results in the center of the page (Oscar layout)." @@ -674,7 +675,7 @@ msgstr "" #: searx/templates/simple/preferences.html:257 msgid "HTTP Method" -msgstr "" +msgstr "HTTP ආකාරය" #: searx/templates/simple/preferences.html:264 msgid "" @@ -690,12 +691,12 @@ msgstr "" #: searx/templates/simple/preferences.html:272 #: searx/templates/simple/preferences.html:284 msgid "Enabled" -msgstr "" +msgstr "සක්‍රිය" #: searx/templates/simple/preferences.html:273 #: searx/templates/simple/preferences.html:285 msgid "Disabled" -msgstr "" +msgstr "අක්‍රීය" #: searx/templates/simple/preferences.html:276 msgid "Proxying image results through SearXNG" diff --git a/searx/translations/sk/LC_MESSAGES/messages.mo b/searx/translations/sk/LC_MESSAGES/messages.mo index 57e7816374fc3694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+r z_=tfm@QvK z^}CKbBe$)8qcRZ9@^vV?q5{lBjr%e-$9#`%P>4Ew^X-cbs8hVnmcKwva1s^y6ijyJZ1Ary_HUE+!d!J{-!fNp{A|h zJu*K(Z=xCJcl)ZmW$rot`Q@`Im3y5>3F*P?#JI57`30rELbtEHvdU9lNdNbe+BylX zhB*bTE(CL0&vV82a!tOk%\n" "Language-Team: Slovak " "\n" @@ -275,6 +275,8 @@ msgid "" "{numCitations} citations from the year {firstCitationVelocityYear} to " "{lastCitationVelocityYear}" msgstr "" +"{numCitations} citácií od roku {firstCitationVelocityYear} do roku " +"{lastCitationVelocityYear}" #: searx/engines/tineye.py:40 msgid "" @@ -300,19 +302,19 @@ msgstr "Obrázok nemohol byť stiahnutý." #: searx/engines/wttr.py:101 msgid "Morning" -msgstr "" +msgstr "Ráno" #: searx/engines/wttr.py:101 msgid "Noon" -msgstr "" +msgstr "Poludnie" #: searx/engines/wttr.py:101 msgid "Evening" -msgstr "" +msgstr "Večer" #: searx/engines/wttr.py:101 msgid "Night" -msgstr "" +msgstr "Noc" #: searx/plugins/hash_plugin.py:24 msgid "Converts strings to different hash digests." @@ -332,7 +334,7 @@ msgstr "Informácie o sebe" #: searx/plugins/oa_doi_rewrite.py:9 msgid "Open Access DOI rewrite" -msgstr "" +msgstr "Otvoriť prístup k prepísaniu DOI" #: searx/plugins/oa_doi_rewrite.py:10 msgid "" @@ -356,7 +358,7 @@ msgstr "" #: searx/plugins/self_info.py:20 msgid "Self Information" -msgstr "" +msgstr "Vlastné informácie" #: searx/plugins/self_info.py:21 msgid "" @@ -368,7 +370,7 @@ msgstr "" #: searx/plugins/tor_check.py:25 msgid "Tor check plugin" -msgstr "" +msgstr "Kontrola Tor plugin" #: searx/plugins/tor_check.py:28 msgid "" @@ -447,7 +449,7 @@ msgstr "Používame" #: searx/templates/simple/base.html:64 msgid "a privacy-respecting, open metasearch engine" -msgstr "" +msgstr "otvorený metavyhľadávač rešpektujúci súkromie" #: searx/templates/simple/base.html:65 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 msgid "I confirm there is no existing bug about the issue I encounter" 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 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 msgid "Submit a new issue on Github including the above information" @@ -544,7 +548,7 @@ msgstr "P95" #: searx/templates/simple/preferences.html:83 msgid "Failed checker test(s): " -msgstr "" +msgstr "Neúspešný(é) kontrolný(é) test(y): " #: searx/templates/simple/preferences.html:85 msgid "Errors:" @@ -617,6 +621,8 @@ msgid "" "Redirect to open-access versions of publications when available (plugin " "required)" 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 msgid "Engine tokens" @@ -652,7 +658,7 @@ msgstr "Štýl témy" #: searx/templates/simple/preferences.html:214 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 msgid "Center Alignment" @@ -706,6 +712,9 @@ msgid "" "href=\"http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods\"" " rel=\"external\">learn more about request methods" msgstr "" +"Zmena spôsobu odosielania formulárov, dozvedieť sa " +"viac o metódach žiadosti" #: searx/templates/simple/preferences.html:269 msgid "Image proxy" @@ -723,17 +732,19 @@ msgstr "Zakázané" #: searx/templates/simple/preferences.html:276 msgid "Proxying image results through SearXNG" -msgstr "" +msgstr "Sprostredkovanie výsledkov snímok cez SearXNG" #: searx/templates/simple/preferences.html:281 msgid "Query in the page's title" -msgstr "" +msgstr "Dotaz v názve stránky" #: searx/templates/simple/preferences.html:288 msgid "" "When enabled, the result page's title contains your query. Your browser " "can record this title" 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 msgid "Engines" @@ -748,6 +759,8 @@ msgid "" "This tab does not show up for search results, but you can search the " "engines listed here via bangs." 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:358 @@ -775,7 +788,7 @@ msgstr "Časový rozsah" #: searx/templates/simple/preferences.html:313 #: searx/templates/simple/stats.html:28 msgid "Response time" -msgstr "" +msgstr "Doba odozvy" #: searx/templates/simple/preferences.html:314 msgid "Max time" @@ -784,7 +797,7 @@ msgstr "Maximálny čas" #: searx/templates/simple/preferences.html:315 #: searx/templates/simple/stats.html:29 msgid "Reliability" -msgstr "" +msgstr "Spoľahlivosť" #: searx/templates/simple/preferences.html:353 msgid "Special Queries" From d9a2bd0a28c89c5ce7136bc68a2568826e6a4453 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 2 Dec 2022 07:31:01 +0000 Subject: [PATCH 08/10] Bump twine from 4.0.1 to 4.0.2 Bumps [twine](https://github.com/pypa/twine) from 4.0.1 to 4.0.2. - [Release notes](https://github.com/pypa/twine/releases) - [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/twine/compare/4.0.1...4.0.2) --- updated-dependencies: - dependency-name: twine dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 99cc18741..976a9a0d5 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,7 +5,7 @@ black==22.10.0 pylint==2.15.7 splinter==0.18.1 selenium==4.6.0 -twine==4.0.1 +twine==4.0.2 Pallets-Sphinx-Themes==2.0.2 Sphinx==5.3.0 sphinx-issues==3.0.1 From 9e6c23ffe95107be3237047d078aa23835c9c3cb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 2 Dec 2022 08:02:54 +0000 Subject: [PATCH 09/10] Bump selenium from 4.6.0 to 4.7.0 Bumps [selenium](https://github.com/SeleniumHQ/Selenium) from 4.6.0 to 4.7.0. - [Release notes](https://github.com/SeleniumHQ/Selenium/releases) - [Commits](https://github.com/SeleniumHQ/Selenium/compare/selenium-4.6.0...selenium-4.7.0) --- updated-dependencies: - dependency-name: selenium dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index d93a716fe..cf50bd573 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -4,7 +4,7 @@ cov-core==1.15.0 black==22.10.0 pylint==2.15.7 splinter==0.18.1 -selenium==4.6.0 +selenium==4.7.0 twine==4.0.2 Pallets-Sphinx-Themes==2.0.2 Sphinx==5.3.0 From 269326063ac9113dacb222c3b1dd0516483e05b8 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sun, 4 Dec 2022 23:43:59 +0100 Subject: [PATCH 10/10] Fix: don't crash when engine or name is missing in settings.yml SearXNG crashes if the engine or name fields are missing. With this commit, the app displays an error in the log and keeps loading. Close #1951 --- searx/engines/__init__.py | 11 +++++++++-- tests/unit/test_engines_init.py | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index c61f50d4b..52bb5f20d 100644 --- a/searx/engines/__init__.py +++ b/searx/engines/__init__.py @@ -106,8 +106,12 @@ def load_engine(engine_data: dict) -> Optional[Engine]: - 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: logger.error('Engine name contains underscore: "{}"'.format(engine_name)) return None @@ -118,7 +122,10 @@ def load_engine(engine_data: dict) -> Optional[Engine]: engine_data['name'] = engine_name # 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: engine = load_module(engine_module + '.py', ENGINE_DIR) except (SyntaxError, KeyboardInterrupt, SystemExit, SystemError, ImportError, RuntimeError): diff --git a/tests/unit/test_engines_init.py b/tests/unit/test_engines_init.py index c72f5c8e5..2844569d1 100644 --- a/tests/unit/test_engines_init.py +++ b/tests/unit/test_engines_init.py @@ -53,3 +53,25 @@ class TestEnginesInit(SearxTestCase): self.assertIn('onions', engines.categories) self.assertIn('http://engine1.onion', engines.engines['engine1'].search_url) 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"'] + )