diff options
22 files changed, 125 insertions, 116 deletions
diff --git a/AUTHORS.rst b/AUTHORS.rst index 0239346a2..e9ed45dc5 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -163,3 +163,4 @@ features or generally made searx better: - @xenrox - @OliveiraHermogenes - Paul Alcock @Guilvareux +- Sam A. `<https://samsapti.dev>`_ diff --git a/docs/admin/engines/settings.rst b/docs/admin/engines/settings.rst index 8f4ee12da..b43802d11 100644 --- a/docs/admin/engines/settings.rst +++ b/docs/admin/engines/settings.rst @@ -72,12 +72,16 @@ Global Settings general: debug: false # Debug mode, only for development instance_name: "SearXNG" # displayed name + privacypolicy_url: false # https://example.com/privacy contact_url: false # mailto:contact@example.com ``debug`` : ``$SEARXNG_DEBUG`` Allow a more detailed log if you run SearXNG directly. Display *detailed* error messages in the browser too, so this must be deactivated in production. +``privacypolicy_url``: + Link to privacy policy. + ``contact_url``: Contact ``mailto:`` address or WEB form. diff --git a/docs/conf.py b/docs/conf.py index 171e864ed..750464916 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,6 +18,7 @@ SEARXNG_URL = get_setting('server.base_url') or 'https://example.org/searxng' ISSUE_URL = get_setting('brand.issue_url') DOCS_URL = get_setting('brand.docs_url') PUBLIC_INSTANCES = get_setting('brand.public_instances') +PRIVACYPOLICY_URL = get_setting('general.privacypolicy_url') CONTACT_URL = get_setting('general.contact_url') WIKI_URL = get_setting('brand.wiki_url') @@ -172,6 +173,8 @@ if PUBLIC_INSTANCES: html_context["project_links"].append(ProjectLink("Public instances", PUBLIC_INSTANCES)) if ISSUE_URL: html_context["project_links"].append(ProjectLink("Issue Tracker", ISSUE_URL)) +if PRIVACYPOLICY_URL: + html_context["project_links"].append(ProjectLink("Privacy Policy", PRIVACYPOLICY_URL)) if CONTACT_URL: html_context["project_links"].append(ProjectLink("Contact", CONTACT_URL)) diff --git a/requirements-dev.txt b/requirements-dev.txt index 65c6dec01..55581d0d6 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -17,7 +17,7 @@ sphinx-autobuild==2021.3.14 sphinx-notfound-page==0.8 myst-parser==0.18.0 linuxdoc==20211220 -aiounittest==1.4.1 +aiounittest==1.4.2 yamllint==1.26.3 wlc==1.13 coloredlogs==15.0.1 diff --git a/requirements.txt b/requirements.txt index 9e12a29c9..f5939523a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -certifi==2022.5.18.1 -babel==2.10.1 +certifi==2022.6.15 +babel==2.10.3 flask-babel==2.0.0 flask==2.1.2 jinja2==3.1.2 diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index ae132f48d..3fb0bcfb1 100644 --- a/searx/engines/__init__.py +++ b/searx/engines/__init__.py @@ -149,7 +149,11 @@ def set_loggers(engine, engine_name): engine.logger = logger.getChild(engine_name) # the engine may have load some other engines # may sure the logger is initialized - for module_name, module in sys.modules.items(): + # use sys.modules.copy() to avoid "RuntimeError: dictionary changed size during iteration" + # see https://github.com/python/cpython/issues/89516 + # and https://docs.python.org/3.10/library/sys.html#sys.modules + modules = sys.modules.copy() + for module_name, module in modules.items(): if ( module_name.startswith("searx.engines") and module_name != "searx.engines.__init__" diff --git a/searx/settings.yml b/searx/settings.yml index 4ade99a06..1a5d85d1a 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -1,6 +1,7 @@ general: debug: false # Debug mode, only for development instance_name: "SearXNG" # displayed name + privacypolicy_url: false # https://example.com/privacy contact_url: false # mailto:contact@example.com enable_metrics: true # record stats @@ -1585,8 +1586,8 @@ engines: search_url: https://www.mojeek.com/search?q={query}&s={pageno} results_xpath: //a[@class="ob"] url_xpath: ./@href - title_xpath: ./.. - content_xpath: ../../p[@class="s"] + title_xpath: ./h2 + content_xpath: ../p[@class="s"] suggestion_xpath: /html/body//div[@class="top-info"]/p[@class="top-info spell"]/a first_page_num: 0 page_size: 10 diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py index 938b9714d..35089fbd4 100644 --- a/searx/settings_defaults.py +++ b/searx/settings_defaults.py @@ -140,6 +140,7 @@ SCHEMA = { 'general': { 'debug': SettingsValue(bool, False, 'SEARXNG_DEBUG'), 'instance_name': SettingsValue(str, 'SearXNG'), + 'privacypolicy_url': SettingsValue((None, False, str), None), 'contact_url': SettingsValue((None, False, str), None), 'enable_metrics': SettingsValue(bool, True), }, diff --git a/searx/templates/simple/base.html b/searx/templates/simple/base.html index d8eaaa02b..7e5f535d4 100644 --- a/searx/templates/simple/base.html +++ b/searx/templates/simple/base.html @@ -55,8 +55,13 @@ <a href="{{ searx_git_url }}">{{ _('Source code') }}</a> | <a href="{{ get_setting('brand.issue_url') }}">{{ _('Issue tracker') }}</a> | <a href="{{ url_for('stats') }}">{{ _('Engine stats') }}</a> | - <a href="{{ get_setting('brand.public_instances') }}">{{ _('Public instances') }}</a>{% if get_setting('general.contact_url') %} | - <a href="{{ get_setting('general.contact_url') }}">{{ _('Contact instance maintainer') }}</a>{% endif %} + <a href="{{ get_setting('brand.public_instances') }}">{{ _('Public instances') }}</a> + {% if get_setting('general.privacypolicy_url') %} + | <a href="{{ get_setting('general.privacypolicy_url') }}">{{ _('Privacy policy') }}</a> + {% endif %} + {% if get_setting('general.contact_url') %} + | <a href="{{ get_setting('general.contact_url') }}">{{ _('Contact instance maintainer') }}</a> + {% endif %} </p> </footer> <!--[if gte IE 9]>--> diff --git a/searx/translations/hu/LC_MESSAGES/messages.mo b/searx/translations/hu/LC_MESSAGES/messages.mo Binary files differindex 67c95b3a4..0f760caf7 100644 --- a/searx/translations/hu/LC_MESSAGES/messages.mo +++ b/searx/translations/hu/LC_MESSAGES/messages.mo diff --git a/searx/translations/hu/LC_MESSAGES/messages.po b/searx/translations/hu/LC_MESSAGES/messages.po index 0170fdcf4..2da2bc192 100644 --- a/searx/translations/hu/LC_MESSAGES/messages.po +++ b/searx/translations/hu/LC_MESSAGES/messages.po @@ -9,18 +9,19 @@ # Noémi Ványi <sitbackandwait@gmail.com>, 2016-2017 msgid "" msgstr "" -"Project-Id-Version: searx\n" +"Project-Id-Version: searx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2022-06-05 21:15+0000\n" -"PO-Revision-Date: 2022-06-03 07:18+0000\n" +"PO-Revision-Date: 2022-06-12 20:05+0000\n" "Last-Translator: Markus Heiser <markus.heiser@darmarit.de>\n" +"Language-Team: Hungarian <https://weblate.bubu1.eu/projects/searxng/searxng/" +"hu/>\n" "Language: hu\n" -"Language-Team: Hungarian " -"<https://weblate.bubu1.eu/projects/searxng/searxng/hu/>\n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.12.2\n" "Generated-By: Babel 2.10.1\n" #. CONSTANT_NAMES['DEFAULT_GROUP_NAME'] @@ -404,7 +405,7 @@ msgstr "proxy nézet" #: searx/templates/simple/new_issue.html:63 msgid "Submit a new issue on Github including the above information" -msgstr "" +msgstr "Adjon be egy új problémát Githubon, a feletti információkkal együtt" #: searx/templates/simple/preferences.html:29 msgid "No HTTPS" @@ -415,22 +416,22 @@ msgstr "Nem HTTPS" #: searx/templates/simple/preferences.html:32 #: searx/templates/simple/results.html:49 msgid "View error logs and submit a bug report" -msgstr "" +msgstr "A híbák történelmének megtekintése és egy hiba bejelentése" #: searx/templates/simple/preferences.html:53 #: searx/templates/simple/stats.html:67 msgid "Median" -msgstr "" +msgstr "Középső" #: searx/templates/simple/preferences.html:54 #: searx/templates/simple/stats.html:73 msgid "P80" -msgstr "" +msgstr "P80" #: searx/templates/simple/preferences.html:55 #: searx/templates/simple/stats.html:79 msgid "P95" -msgstr "" +msgstr "P95" #: searx/templates/simple/preferences.html:83 msgid "Failed checker test(s): " @@ -538,15 +539,16 @@ msgstr "" #: searx/templates/simple/preferences.html:203 msgid "Change SearXNG layout" -msgstr "" +msgstr "A SearXNG elrendezésének megváltoztatása" #: searx/templates/simple/preferences.html:206 msgid "Theme style" -msgstr "" +msgstr "Téma stílusa" #: searx/templates/simple/preferences.html:214 msgid "Choose auto to follow your browser settings" msgstr "" +"Válaszd ki az \"automatikus\" beállítást hogy kövesse a böngésződ beállítását" #: searx/templates/simple/preferences.html:219 msgid "Results on new tabs" @@ -580,7 +582,7 @@ msgstr "Magánszféra" #: searx/templates/simple/preferences.html:247 msgid "HTTP Method" -msgstr "" +msgstr "HTTP Módszer" #: searx/templates/simple/preferences.html:254 msgid "" @@ -612,7 +614,7 @@ msgstr "" #: searx/templates/simple/preferences.html:271 msgid "Query in the page's title" -msgstr "" +msgstr "Lekérdezés az oldal címében" #: searx/templates/simple/preferences.html:278 msgid "" @@ -633,6 +635,8 @@ msgid "" "This tab does not show up for search results, but you can search the " "engines listed here via bangs." msgstr "" +"Ez az oldal nem jelen meg a keresés eredményébent, de te tudsz keresni " +"keresőmotorokat a \"bangs\"-al." #: searx/templates/simple/preferences.html:297 #: searx/templates/simple/preferences.html:348 @@ -669,11 +673,11 @@ msgstr "Maximális idő" #: searx/templates/simple/preferences.html:305 #: searx/templates/simple/stats.html:29 msgid "Reliability" -msgstr "" +msgstr "Megbízhatóság" #: searx/templates/simple/preferences.html:343 msgid "Special Queries" -msgstr "" +msgstr "Speciális Lekérdezések" #: searx/templates/simple/preferences.html:349 msgid "Keywords" @@ -1282,4 +1286,3 @@ msgstr "video elrejtése" #~ msgid "Displays results in the center of the page (Oscar layout)." #~ msgstr "" - diff --git a/searx/translations/id/LC_MESSAGES/messages.mo b/searx/translations/id/LC_MESSAGES/messages.mo Binary files differindex 618e9de89..cd72ef896 100644 --- a/searx/translations/id/LC_MESSAGES/messages.mo +++ b/searx/translations/id/LC_MESSAGES/messages.mo diff --git a/searx/translations/id/LC_MESSAGES/messages.po b/searx/translations/id/LC_MESSAGES/messages.po index 6e3282006..df0879379 100644 --- a/searx/translations/id/LC_MESSAGES/messages.po +++ b/searx/translations/id/LC_MESSAGES/messages.po @@ -8,15 +8,16 @@ msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2022-06-05 21:15+0000\n" -"PO-Revision-Date: 2022-05-20 07:19+0000\n" -"Last-Translator: Linerly <linerly@protonmail.com>\n" +"PO-Revision-Date: 2022-06-17 07:17+0000\n" +"Last-Translator: liimee <alt3753.7@gmail.com>\n" +"Language-Team: Indonesian <https://weblate.bubu1.eu/projects/searxng/searxng/" +"id/>\n" "Language: id\n" -"Language-Team: Indonesian " -"<https://weblate.bubu1.eu/projects/searxng/searxng/id/>\n" -"Plural-Forms: nplurals=1; plural=0;\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 4.12.2\n" "Generated-By: Babel 2.10.1\n" #. CONSTANT_NAMES['DEFAULT_GROUP_NAME'] @@ -274,9 +275,7 @@ msgstr "Pengubah nama host" #: searx/plugins/hostname_replace.py:10 msgid "Rewrite result hostnames or remove results based on the hostname" -msgstr "" -"Menulis ulang nama host hasil atau menghapus hasil berdasarkan pada nama " -"host" +msgstr "Tulis ulang nama host hasil atau hapus hasil berdasarkan pada nama host" #: searx/plugins/oa_doi_rewrite.py:9 msgid "Open Access DOI rewrite" @@ -299,8 +298,8 @@ msgid "" "Perform search immediately if a category selected. Disable to select " "multiple categories. (JavaScript required)" msgstr "" -"Melakukan pencarian segera jika sebuah kategori terpilih. Matikan untuk " -"memilih banyak kategori. (Membutuhkan JavaScript)" +"Lakukan pencarian langsung apabila sebuah kategori dipilih. Matikan untuk " +"memilih banyak kategori. (JavaScript dibutuhkan)" #: searx/plugins/self_info.py:20 msgid "Self Informations" @@ -404,7 +403,7 @@ msgstr "proksi" #: searx/templates/simple/new_issue.html:63 msgid "Submit a new issue on Github including the above information" -msgstr "Kirim sebuah masalah baru di GitHub termasuk informasi di atas" +msgstr "Kirim sebuah masalah baru di Github yang mengandung informasi di atas" #: searx/templates/simple/preferences.html:29 msgid "No HTTPS" @@ -511,8 +510,7 @@ msgid "" "Redirect to open-access versions of publications when available (plugin " "required)" msgstr "" -"Mengalihkan ke versi terbuka dari publikasi jika tersedia (membutuhkan " -"plugin)" +"Mengalihkan ke versi terbuka dari publikasi jika tersedia (plugin dibutuhkan)" #: searx/templates/simple/preferences.html:171 msgid "Engine tokens" @@ -557,12 +555,12 @@ msgstr "Hasil pada tab baru" #: searx/templates/simple/preferences.html:222 #: searx/templates/simple/preferences.html:234 msgid "On" -msgstr "Nyala" +msgstr "Aktif" #: searx/templates/simple/preferences.html:223 #: searx/templates/simple/preferences.html:235 msgid "Off" -msgstr "Mati" +msgstr "Nonaktif" #: searx/templates/simple/preferences.html:226 msgid "Open result links on new browser tabs" @@ -654,7 +652,7 @@ msgstr "Nama mesin" #: searx/templates/simple/preferences.html:299 msgid "Shortcut" -msgstr "Jalan pintas" +msgstr "Pintasan" #: searx/templates/simple/preferences.html:300 msgid "Supports selected language" @@ -827,7 +825,7 @@ msgstr "Halaman sebelumnya" #: searx/templates/simple/results.html:187 msgid "Next page" -msgstr "Halaman selanjutnya" +msgstr "Halaman berikutnya" #: searx/templates/simple/search.html:3 msgid "Display the front page" @@ -836,7 +834,7 @@ msgstr "Tanpilkan halaman depan" #: searx/templates/simple/search.html:9 #: searx/templates/simple/simple_search.html:5 msgid "Search for..." -msgstr "Cari untuk..." +msgstr "Cari..." #: searx/templates/simple/search.html:10 #: searx/templates/simple/simple_search.html:6 @@ -1190,4 +1188,3 @@ msgstr "sembunyikan video" #~ msgid "Displays results in the center of the page (Oscar layout)." #~ msgstr "" - diff --git a/searx/translations/it/LC_MESSAGES/messages.mo b/searx/translations/it/LC_MESSAGES/messages.mo Binary files differindex 29876d300..1a181525d 100644 --- a/searx/translations/it/LC_MESSAGES/messages.mo +++ b/searx/translations/it/LC_MESSAGES/messages.mo diff --git a/searx/translations/it/LC_MESSAGES/messages.po b/searx/translations/it/LC_MESSAGES/messages.po index 6bbcc5096..71969035a 100644 --- a/searx/translations/it/LC_MESSAGES/messages.po +++ b/searx/translations/it/LC_MESSAGES/messages.po @@ -14,18 +14,19 @@ # Random_R, 2018-2020 msgid "" msgstr "" -"Project-Id-Version: searx\n" +"Project-Id-Version: searx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2022-06-05 21:15+0000\n" -"PO-Revision-Date: 2022-06-03 07:18+0000\n" +"PO-Revision-Date: 2022-06-17 07:17+0000\n" "Last-Translator: Markus Heiser <markus.heiser@darmarit.de>\n" +"Language-Team: Italian <https://weblate.bubu1.eu/projects/searxng/searxng/it/" +">\n" "Language: it\n" -"Language-Team: Italian " -"<https://weblate.bubu1.eu/projects/searxng/searxng/it/>\n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.12.2\n" "Generated-By: Babel 2.10.1\n" #. CONSTANT_NAMES['DEFAULT_GROUP_NAME'] @@ -756,13 +757,15 @@ msgstr "" #: searx/templates/simple/preferences.html:409 msgid "URL to restore your preferences in another browser" -msgstr "" +msgstr "URL per ripristinare le tue preferenze in un altro browser" #: searx/templates/simple/preferences.html:413 msgid "" "Specifying custom settings in the preferences URL can be used to sync " "preferences across devices." msgstr "" +"Specificare impostazioni personalizzate nel URL delle preferenze può essere " +"usato per sincronizzare le preferenze su più dispositivi." #: searx/templates/simple/preferences.html:418 msgid "" @@ -1019,7 +1022,7 @@ msgstr "nascondi mappa" #: searx/templates/simple/result_templates/torrent.html:6 msgid "magnet link" -msgstr "magnet link" +msgstr "link magnet" #: searx/templates/simple/result_templates/torrent.html:7 msgid "torrent file" @@ -1312,4 +1315,3 @@ msgstr "nascondi video" #~ msgid "Displays results in the center of the page (Oscar layout)." #~ msgstr "" - diff --git a/searx/translations/lv/LC_MESSAGES/messages.mo b/searx/translations/lv/LC_MESSAGES/messages.mo Binary files differindex 0e17c1c34..69a5d5b1c 100644 --- a/searx/translations/lv/LC_MESSAGES/messages.mo +++ b/searx/translations/lv/LC_MESSAGES/messages.mo diff --git a/searx/translations/lv/LC_MESSAGES/messages.po b/searx/translations/lv/LC_MESSAGES/messages.po index 4f37c9284..453e98304 100644 --- a/searx/translations/lv/LC_MESSAGES/messages.po +++ b/searx/translations/lv/LC_MESSAGES/messages.po @@ -8,29 +8,28 @@ msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2022-06-05 21:15+0000\n" -"PO-Revision-Date: 2022-06-03 07:18+0000\n" -"Last-Translator: karlis69420 <korlass.karlis2@gmail.com>\n" +"PO-Revision-Date: 2022-06-17 07:17+0000\n" +"Last-Translator: Markus Heiser <markus.heiser@darmarit.de>\n" +"Language-Team: Latvian <https://weblate.bubu1.eu/projects/searxng/searxng/lv/" +">\n" "Language: lv\n" -"Language-Team: Latvian " -"<https://weblate.bubu1.eu/projects/searxng/searxng/lv/>\n" -"Plural-Forms: nplurals=3; plural=(n % 10 == 0 || n % 100 >= 11 && n % 100" -" <= 19) ? 0 : ((n % 10 == 1 && n % 100 != 11) ? 1 : 2);\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n % 10 == 0 || n % 100 >= 11 && n % 100 <= " +"19) ? 0 : ((n % 10 == 1 && n % 100 != 11) ? 1 : 2);\n" +"X-Generator: Weblate 4.12.2\n" "Generated-By: Babel 2.10.1\n" #. CONSTANT_NAMES['DEFAULT_GROUP_NAME'] #: searx/searxng.msg -#, fuzzy msgid "others" msgstr "citi" #. CONSTANT_NAMES['OTHER_CATEGORY'] #: searx/searxng.msg -#, fuzzy msgid "other" -msgstr "citi" +msgstr "cits" #. CATEGORY_NAMES['FILES'] #: searx/searxng.msg @@ -81,7 +80,7 @@ msgstr "karte" #. CATEGORY_NAMES['ONIONS'] #: searx/searxng.msg msgid "onions" -msgstr "" +msgstr "sīpoli" #. CATEGORY_NAMES['SCIENCE'] #: searx/searxng.msg @@ -106,36 +105,32 @@ msgstr "dziesmu vārdi" #. CATEGORY_GROUPS['PACKAGES'] #: searx/searxng.msg msgid "packages" -msgstr "" +msgstr "pakotnes" #. CATEGORY_GROUPS['Q_A'] #: searx/searxng.msg -#, fuzzy msgid "q&a" -msgstr "q&a" +msgstr "j&a" #. CATEGORY_GROUPS['REPOS'] #: searx/searxng.msg msgid "repos" -msgstr "" +msgstr "repo" #. CATEGORY_GROUPS['SOFTWARE_WIKIS'] #: searx/searxng.msg -#, fuzzy msgid "software wikis" msgstr "programmatūras wiki" #. CATEGORY_GROUPS['WEB'] #: searx/searxng.msg -#, fuzzy msgid "web" msgstr "tīmeklis" #. STYLE_NAMES['AUTO'] #: searx/searxng.msg -#, fuzzy msgid "auto" -msgstr "automātiski" +msgstr "auto" #. STYLE_NAMES['LIGHT'] #: searx/searxng.msg @@ -149,11 +144,11 @@ msgstr "tumšs" #: searx/webapp.py:164 msgid "timeout" -msgstr "" +msgstr "noildze" #: searx/webapp.py:165 msgid "parsing error" -msgstr "analizēšanas kļūda" +msgstr "parsēšanas kļūda" #: searx/webapp.py:166 msgid "HTTP protocol error" @@ -164,9 +159,8 @@ msgid "network error" msgstr "tīkla kļūda" #: searx/webapp.py:169 -#, fuzzy msgid "unexpected crash" -msgstr "negaidīta kļūda" +msgstr "negaidīta avārija" #: searx/webapp.py:176 msgid "HTTP error" @@ -186,26 +180,23 @@ msgid "CAPTCHA" msgstr "CAPTCHA" #: searx/webapp.py:185 -#, fuzzy msgid "too many requests" -msgstr "augsts pieprasījumu skaits" +msgstr "pārāk daudz pieprasījumu" #: searx/webapp.py:186 msgid "access denied" msgstr "piekļuve aizliegta" #: searx/webapp.py:187 -#, fuzzy msgid "server API error" -msgstr "servera lietojumprogrammas saskarnes kļūda" +msgstr "servera API kļūda" #: searx/webapp.py:397 msgid "No item found" -msgstr "" +msgstr "Nav atrasts neviens vienums" #: searx/engines/qwant.py:212 #: searx/templates/simple/result_templates/images.html:20 searx/webapp.py:399 -#, fuzzy msgid "Source" msgstr "Avots" @@ -215,10 +206,9 @@ msgstr "Kļūda lādējot nākošo lapu" #: searx/webapp.py:544 searx/webapp.py:985 msgid "Invalid settings, please edit your preferences" -msgstr "" +msgstr "Nepareizi iestatījumi, lūdzu rediģējiet savas preferences" #: searx/webapp.py:560 -#, fuzzy msgid "Invalid settings" msgstr "Nederīgi iestatījumi" @@ -228,7 +218,7 @@ msgstr "meklēšanas kļūda" #: searx/webapp.py:757 msgid "{minutes} minute(s) ago" -msgstr "pirms {minutes} minūtēm(-es)" +msgstr "pirms {minutes} minūtes(-ēm)" #: searx/webapp.py:759 msgid "{hours} hour(s), {minutes} minute(s) ago" @@ -239,12 +229,10 @@ msgid "Suspended" msgstr "Apturēts" #: searx/answerers/random/answerer.py:67 -#, fuzzy msgid "Random value generator" msgstr "Nejaušu vērtību ģenerators" #: searx/answerers/random/answerer.py:68 -#, fuzzy msgid "Generate different random values" msgstr "Ģenerēt citas nejaušas vērtības" @@ -254,10 +242,9 @@ msgstr "Statistikas funkcijas" #: searx/answerers/statistics/answerer.py:48 msgid "Compute {functions} of the arguments" -msgstr "" +msgstr "Aprēķināt argumentu {functions}" #: searx/engines/openstreetmap.py:156 -#, fuzzy msgid "Get directions" msgstr "Saņemt norādījumus" @@ -267,19 +254,19 @@ msgstr "{title} (NOVECOJIS)" #: searx/engines/pdbe.py:103 msgid "This entry has been superseded by" -msgstr "" +msgstr "Šis ieraksts ir ticis aizstāts ar" #: searx/engines/pubmed.py:78 msgid "No abstract is available for this publication." -msgstr "Šīs publikācijas kopsavilkums nav pieejams." +msgstr "Šai publikācijai nav pieejams kopsavilkums." #: searx/engines/qwant.py:214 msgid "Channel" -msgstr "" +msgstr "Kanāls" #: searx/plugins/hash_plugin.py:24 msgid "Converts strings to different hash digests." -msgstr "" +msgstr "Pārvērš virknes (strings) par dažādiem jaucējkoda īssavilkumiem." #: searx/plugins/hash_plugin.py:52 msgid "hash digest" @@ -1001,51 +988,50 @@ msgstr "" #: searx/templates/simple/result_templates/torrent.html:9 msgid "Seeder" -msgstr "" +msgstr "Sēklotājs" #: searx/templates/simple/result_templates/torrent.html:9 msgid "Leecher" -msgstr "" +msgstr "Sūcējs" #: searx/templates/simple/result_templates/torrent.html:11 msgid "Filesize" -msgstr "" +msgstr "Faila lielums" #: searx/templates/simple/result_templates/torrent.html:12 msgid "Bytes" -msgstr "" +msgstr "Biti" #: searx/templates/simple/result_templates/torrent.html:13 msgid "kiB" -msgstr "" +msgstr "kiB" #: searx/templates/simple/result_templates/torrent.html:14 msgid "MiB" -msgstr "" +msgstr "MiB" #: searx/templates/simple/result_templates/torrent.html:15 msgid "GiB" -msgstr "" +msgstr "GiB" #: searx/templates/simple/result_templates/torrent.html:16 msgid "TiB" -msgstr "" +msgstr "TiB" #: searx/templates/simple/result_templates/torrent.html:20 msgid "Number of Files" -msgstr "" +msgstr "Failu skaits" #: searx/templates/simple/result_templates/videos.html:6 msgid "show video" -msgstr "" +msgstr "rādīt video" #: searx/templates/simple/result_templates/videos.html:6 msgid "hide video" -msgstr "" +msgstr "slēpt video" #~ msgid "Center Alignment" #~ msgstr "" #~ msgid "Displays results in the center of the page (Oscar layout)." #~ msgstr "" - diff --git a/searx/translations/pl/LC_MESSAGES/messages.mo b/searx/translations/pl/LC_MESSAGES/messages.mo Binary files differindex d0ba05114..de794c3f5 100644 --- a/searx/translations/pl/LC_MESSAGES/messages.mo +++ b/searx/translations/pl/LC_MESSAGES/messages.mo diff --git a/searx/translations/pl/LC_MESSAGES/messages.po b/searx/translations/pl/LC_MESSAGES/messages.po index 817c500b0..3179e4521 100644 --- a/searx/translations/pl/LC_MESSAGES/messages.po +++ b/searx/translations/pl/LC_MESSAGES/messages.po @@ -6,20 +6,21 @@ # Artur <artur@komoter.pl>, 2017 msgid "" msgstr "" -"Project-Id-Version: searx\n" +"Project-Id-Version: searx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2022-06-05 21:15+0000\n" -"PO-Revision-Date: 2022-04-22 07:18+0000\n" +"PO-Revision-Date: 2022-06-12 20:06+0000\n" "Last-Translator: Markus Heiser <markus.heiser@darmarit.de>\n" +"Language-Team: Polish <https://weblate.bubu1.eu/projects/searxng/searxng/pl/>" +"\n" "Language: pl\n" -"Language-Team: Polish " -"<https://weblate.bubu1.eu/projects/searxng/searxng/pl/>\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " -"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " -"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n" +"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" +"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"X-Generator: Weblate 4.12.2\n" "Generated-By: Babel 2.10.1\n" #. CONSTANT_NAMES['DEFAULT_GROUP_NAME'] @@ -405,7 +406,7 @@ msgstr "przesłane poprzez proxy" #: searx/templates/simple/new_issue.html:63 msgid "Submit a new issue on Github including the above information" -msgstr "" +msgstr "Zgłoś nowy problem na Githubie, podając powyższe informacje" #: searx/templates/simple/preferences.html:29 msgid "No HTTPS" @@ -1303,4 +1304,3 @@ msgstr "ukryj wideo" #~ msgid "Displays results in the center of the page (Oscar layout)." #~ msgstr "" - diff --git a/searx/translations/sr/LC_MESSAGES/messages.mo b/searx/translations/sr/LC_MESSAGES/messages.mo Binary files differindex 6a6d2b528..516a72e8a 100644 --- a/searx/translations/sr/LC_MESSAGES/messages.mo +++ b/searx/translations/sr/LC_MESSAGES/messages.mo diff --git a/searx/translations/sr/LC_MESSAGES/messages.po b/searx/translations/sr/LC_MESSAGES/messages.po index 676c8b9de..dce31309c 100644 --- a/searx/translations/sr/LC_MESSAGES/messages.po +++ b/searx/translations/sr/LC_MESSAGES/messages.po @@ -11,8 +11,8 @@ msgstr "" "Project-Id-Version: searx\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2022-06-05 21:15+0000\n" -"PO-Revision-Date: 2022-06-10 07:19+0000\n" -"Last-Translator: Markus Heiser <markus.heiser@darmarit.de>\n" +"PO-Revision-Date: 2022-06-17 07:17+0000\n" +"Last-Translator: vmisovic <vladimir.misovic03@gmail.com>\n" "Language-Team: Serbian <https://weblate.bubu1.eu/projects/searxng/searxng/sr/" ">\n" "Language: sr\n" @@ -222,6 +222,7 @@ msgid "{minutes} minute(s) ago" msgstr "пре {minutes} минут(у,е,а)" #: searx/webapp.py:759 +#, fuzzy msgid "{hours} hour(s), {minutes} minute(s) ago" msgstr "пре {hours} час(a) и {minutes} минут(у,е,а)" @@ -409,7 +410,7 @@ msgstr "" #: 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 @@ -439,7 +440,7 @@ msgstr "" #: searx/templates/simple/preferences.html:85 msgid "Errors:" -msgstr "" +msgstr "Грешке:" #: searx/templates/simple/preferences.html:99 msgid "Preferences" diff --git a/searx/webapp.py b/searx/webapp.py index 2ec2f7edd..d4fb1c7dc 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -1355,6 +1355,7 @@ def config(): 'default_theme': settings['ui']['default_theme'], 'version': VERSION_STRING, 'brand': { + 'PRIVACYPOLICY_URL': get_setting('general.privacypolicy_url'), 'CONTACT_URL': get_setting('general.contact_url'), 'GIT_URL': GIT_URL, 'GIT_BRANCH': GIT_BRANCH, |