Markus Heiser
cebc0e395b
Merge pull request #379 from searxng/fix-weblate-push-translations
...
[fix] make weblate.push.translations
2021-10-04 07:32:44 +00:00
Markus Heiser
955eab8240
[mod] searxng_extras - minor improvements
...
- fix docs/searxng_extra/standalone_searx.py.rst
- add SPDX tag
- pylint standalone_searx.py and update_wikidata_units.py
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-10-03 19:04:18 +02:00
Markus Heiser
fda5609a17
Merge pull request #360 from return42/ddg-lite
...
Implement a DuckDuckGo Lite engine
2021-10-02 05:16:29 +00:00
Markus Heiser
97419a770d
[upd] make data.languages
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-10-01 20:01:41 +02:00
Markus Heiser
a5b7ed9550
[mod] engine duckduckgo - update supported_languages_url
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-10-01 20:01:41 +02:00
Markus Heiser
4c9b8b29ee
[mod] engine duckduckgo - use DuckDuckGo-Lite
...
Implement a scrapper for DuckDuckGo-Lite [1]. The existing DuckDuckGo [2]
engine does not support paging. DuckDuckgo-Lite is much faster, less verbose
and does have a paging option (reversed engineered from the input form of [1]).
[1] https://lite.duckduckgo.com/lite
[2] https://duckduckgo.com/
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-10-01 20:01:41 +02:00
Markus Heiser
c74f45b1df
Merge pull request #365 from searxng/update_data_update_wikidata_units.py
...
Update searx.data - update_wikidata_units.py
2021-10-01 07:11:13 +00:00
Markus Heiser
62ea3c7074
Merge pull request #366 from searxng/update_data_update_languages.py
...
Update searx.data - update_languages.py
2021-10-01 06:41:09 +00:00
Markus Heiser
d814f1182f
Merge pull request #364 from searxng/update_data_update_firefox_version.py
...
Update searx.data - update_firefox_version.py
2021-10-01 06:34:20 +00:00
Markus Heiser
8479a83411
Merge pull request #363 from searxng/update_data_update_ahmia_blacklist.py
...
Update searx.data - update_ahmia_blacklist.py
2021-10-01 06:33:51 +00:00
Markus Heiser
e2c8e2855c
Merge pull request #362 from searxng/update_data_update_currencies.py
...
Update searx.data - update_currencies.py
2021-10-01 06:33:13 +00:00
Markus Heiser
ecb3912bd0
[fix] engine stackexchange - decode HTML entities in title & content
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-29 08:08:18 +02:00
Markus Heiser
5efe77bdf5
[mod] engines - add superuser.com (Stack Exchange API)
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-28 19:20:13 +02:00
Markus Heiser
29eb06ab16
[mod] engines - add askubuntu.com (Stack Exchange API)
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-28 19:17:26 +02:00
Markus Heiser
b62851559b
[mod] replace old stackoverflow engine by Stack Exchange API v2.3
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-28 19:12:37 +02:00
Markus Heiser
55fee1e45d
[mod] engines - add Stack Exchange API v2.3
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-28 19:01:04 +02:00
Markus Heiser
73cb80e71d
[build] /static
2021-09-27 17:40:11 +02:00
Markus Heiser
8ac776765c
[theme] simple: do not prefer arial over user's sans-serif font
...
The default *sans-serif* font from the browsers most often renders much better
compared to Arial font.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-27 17:37:15 +02:00
Markus Heiser
55b30b5b49
[fix] searx_extra/update scripts: set_loggers(wikidata, 'wikidata') ( #331 )
...
* [fix] searx_extra/update scripts: set_loggers(wikidata, 'wikidata')
To test use::
./manage pyenv.cmd searx_extra/update/update_currencies.py
./manage pyenv.cmd searx_extra/update/update_osm_keys_tags.py
./manage pyenv.cmd searx_extra/update/update_wikidata_units.py
The script `update_engine_descriptions.py` seems to have some issues not related
to this patch.
./manage pyenv.cmd python -m pip install -U pycld3
./manage pyenv.cmd searx_extra/update/update_engine_descriptions.py
Closes: https://github.com/searxng/searxng/issues/328
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-19 11:10:02 +02:00
Markus Heiser
7a3a1cd115
[mod] manage - use pyenv.activate where it makes sense
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-17 15:31:09 +02:00
Markus Heiser
8905607d1c
Merge pull request #326 from searxng/dependabot/pip/master/sphinx-4.2.0
...
Bump sphinx from 4.1.2 to 4.2.0
2021-09-17 08:23:17 +00:00
Markus Heiser
443bf35e09
[pylint] fix global-variable-not-assigned issues
...
If there is no write access, there is no need for global. Remove global
statement if there is no assignment.
global-variable-not-assigned:
Using global for names but no assignment is done Used when a variable is
defined through the "global" statement but no assignment to this variable is
done.
In Pylint 2.11 the global-variable-not-assigned checker now catches global
variables that are never reassigned in a local scope and catches (reassigned)
functions [1][2]
[1] https://pylint.pycqa.org/en/latest/whatsnew/2.11.html
[2] https://github.com/PyCQA/pylint/issues/1375
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-17 10:14:27 +02:00
Markus Heiser
fe6470cbe6
[pylint] disable consider-using-f-string in .pylintrc
...
Pylint 2.11 added [1][2]
consider-using-f-string:
Emitted when .format() or '%' is being used to format a string.
We're not ready to enforce f-strings everywhere, so just disable this new
warning.
[1] https://pylint.pycqa.org/en/latest/whatsnew/2.11.html
[2] https://github.com/PyCQA/pylint/issues/3592
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-17 09:22:11 +02:00
Markus Heiser
aba3566fbd
Merge pull request #318 from return42/fix-doc-brand
...
[brand] docs - normalize project name to SearXNG
2021-09-13 12:40:47 +00:00
Markus Heiser
ecb7e73e03
[brand] docs - normalize project name to SearXNG
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-13 14:36:24 +02:00
Markus Heiser
de5a8ee7d7
[fix] settings - displayed name is SearXNG
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-13 14:36:24 +02:00
Markus Heiser
97acedd9fe
Merge pull request #305 from dalf/fix-engine-logger
...
[fix] logger per engine: make .logger is always initialized
2021-09-13 07:03:37 +00:00
Markus Heiser
3f2c10ef9c
[fix] manage help(): commands babel.* has been renamed to weblate.*
...
In commit 97355672c the functions named babel.* has been renamed to weblate.*
but it was forgotten to change it also in the help().
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-12 15:46:00 +02:00
Markus Heiser
c3473480f4
Merge pull request #314 from MrPaulBlack/engine-stats-link
...
Engine stats link
2021-09-12 09:11:12 +00:00
Markus Heiser
ecd6ca86d0
Merge pull request #308 from dalf/plugin_hostname_replace
...
[enh] add hostname_replace plugin
2021-09-12 07:53:09 +00:00
Markus Heiser
76e0f6807c
Merge pull request #311 from dalf/fix-pr-302
...
[fix] searx/results.py: strip result['content'] only if it exists
2021-09-10 16:10:33 +00:00
Markus Heiser
13a4d20e8d
Merge pull request #306 from dalf/docs-brand
...
[doc] searxng brand
2021-09-10 15:42:20 +00:00
Markus Heiser
b671e0364f
Merge pull request #302 from dalf/mod_plugin_on_result
...
[mod] plugin: call on_result for each result of each engines.
2021-09-10 09:20:26 +00:00
Markus Heiser
449ff70898
Merge pull request #307 from dalf/remove-transifex-ref
...
[fix] remove references to transifex
2021-09-10 07:14:07 +00:00
Markus Heiser
dad82cac1a
[fix] README - fix minor typo
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-08 09:00:48 +02:00
Markus Heiser
b0623ac9f6
[build] /static
2021-09-07 17:48:56 +02:00
Markus Heiser
0240ca9567
[fix] oscar template - merge the two class attributes into one
...
Suggested-by: @dalf https://github.com/searxng/searxng/pull/295#discussion_r703337237
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-07 16:46:49 +02:00
Markus Heiser
bd830f7449
[fix] simple theme - preferences: fix tooltip overflow
...
Suggested-by: @dalf https://github.com/searxng/searxng/pull/295#discussion_r703370358
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-07 16:46:49 +02:00
Markus Heiser
2a3b9a2e26
[pylint] searx: drop no longer needed 'missing-function-docstring'
...
Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914168470
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-07 13:34:35 +02:00
Markus Heiser
f0059b80ed
[pylint] engines: drop no longer needed 'missing-function-docstring'
...
Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914168470
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-07 13:26:59 +02:00
Markus Heiser
5c86754340
[pylint] .pylintrc - disable missing-function-docstring
...
Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914168470
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-07 13:25:26 +02:00
Markus Heiser
9068a72c6a
[fix] oscar theme - preferences: rename col-checkbox/col-stat
...
[1] https://github.com/searxng/searxng/pull/295#discussion_r703318053
[2] https://github.com/searxng/searxng/pull/295#discussion_r703337237
Suggested-by: @dalf [1] [2]
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-07 12:26:07 +02:00
Markus Heiser
82847df300
[fix] add 'categories' to PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES
...
androp no longer needed (see line 591 in 7b235a1 )::
# pylint: disable=undefined-variable
Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914068609
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-07 10:29:38 +02:00
Markus Heiser
cd033b5416
[fix] drop useless pylint: disable=undefined-variable
...
Since 7b235a1 (see line 591) it is no longer needed to disable
'undefined-variable' for names defined in::
PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES
Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914068609
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-07 10:26:15 +02:00
Markus Heiser
222031e975
[fix] make oscar theme more CSP compliant - col-checkbox
...
Add col-checkbox in::
searx/static/themes/oscar/src/less/preferences.less
Replaced style in file::
searx/templates/oscar/preferences.html
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-07 08:24:48 +02:00
Markus Heiser
9d106ae972
[fix] make oscar theme more CSP compliant - default-image-style
...
Add default-image-style in::
searx/static/themes/oscar/src/less/result_templates.less
Replaced style= in files::
./oscar/result_templates/default.html:19: <img src="{{ image_proxify(result.img_src or result.thumbnail) }}" title="{{ result.title|striptags }}" style="width: auto; max-height: 60px; min-height: 60px;" class="col-xs-2 col-sm-4 col-md-4 result-content">
./oscar/result_templates/files.html:24:<img src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" style="width: auto; max-height: 60px; min-height: 60px;" class="col-xs-2 col-sm-4 col-md-4 result-content">
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-07 08:20:30 +02:00
Markus Heiser
e564cef0fe
[fix] make /preferences more CSP compliant - simple & oscar theme
...
In simple & oscar theme remove ``style=`` properties which violates CSP but seem
not to have a magnification in GUI (UX).
Fixed files::
./oscar/preferences.html:25:<td class="{{ label }}" style="padding: 2px">{{- "" -}}
./simple/preferences.html:39:<td class="{{ label }}" style="padding: 2px; width: 13rem;">{{- "" -}}
./simple/preferences.html:77: <div class="engine-tooltip" style="right: 12rem;" role="tooltip" id="{{engine_name}}_reliability">
./simple/preferences.html:258: <p class="text-muted" style="margin:20px 0;">
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-07 08:20:30 +02:00
Markus Heiser
aecfb2300d
[mod] one logger per engine - drop obsolete logger.getChild
...
Remove the no longer needed `logger = logger.getChild(...)` from engines.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-06 18:05:46 +02:00
Markus Heiser
7b235a1c36
[mod] one logger per engine
...
Suggested-by: @dalf in https://github.com/searxng/searxng/issues/98#issuecomment-849013518
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-06 17:47:28 +02:00
Markus Heiser
0d070fde92
[build] /static
2021-09-06 11:12:17 +02:00
Markus Heiser
ad528c706e
[fix] make result template map more CSP compliant - simple & oscar
...
Add osm-map-box in::
searx/static/themes/__common__/less/result_templates.less
Replaced sty= in files::
./oscar/result_templates/map.html:64: <div style="height:300px; width:100%; margin: 10px 0;" id="osm-map-{{ index }}"></div>
./simple/result_templates/map.html:65: <div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" style="height:300px; width:100%; margin: 10px 0;" ></div></div>
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-06 11:08:50 +02:00
Markus Heiser
48c806954e
[fix] make /preferences more CSP compliant - simple & oscar theme
...
in simple & oscar theme replace bar-graph's *styles* by CSP compliant
implementation in::
searx/static/themes/__common__/less/stats.less
Fixed files::
./oscar/preferences.html:29: <span style="width: calc(max(2px, 100%*{{ (stats[engine_name].time / max_rate95)|round(3) }}))" class="stacked-bar-chart-median"></span>{{- "" -}}
./oscar/preferences.html:30: <span style="width: calc(100%*{{ ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate80"></span>{{- "" -}}
./oscar/preferences.html:31: <span style="width: calc(100%*{{ ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate95"></span>{{- "" -}}
./simple/preferences.html:43: <span style="width: calc(max(2px, 100%*{{ (stats[engine_name].time / max_rate95)|round(3) }}))" class="stacked-bar-chart-median"></span>{{- "" -}}
./simple/preferences.html:44: <span style="width: calc(100%*{{ ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate80"></span>{{- "" -}}
./simple/preferences.html:45: <span style="width: calc(100%*{{ ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate95"></span>{{- "" -}}
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-06 11:08:50 +02:00
Markus Heiser
9ff881f937
[fix] remove minimum length of content for XPath engine
...
Instead of raising an exception and therefore hiding all results of the engine.
It make sense to remove that requirement in order to allow the implementation of
search engines that do not always have a description. In fact some search
engines that in 99% of the case have a description like Brave Search or Mojeek
crash completely if they for some reason included a result with no description.
To test this patch try Mojeek:
!mjk xyz
before and after the patch.
Suggested-by: 0xhtml in https://github.com/searx/searx/discussions/2933
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-04 12:41:23 +02:00
Markus Heiser
730073b850
[enh] add suggestions to brave engine
...
Suggestions should be added too.
suggestion_xpath: //div[@class="text-gray h6"]/a
You can try it with:
!brave recurzuoin
Suggested-by: @allendema in https://github.com/searx/searx/issues/2857#issuecomment-904837023
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-04 11:38:59 +02:00
Markus Heiser
018537080c
Merge pull request #286 from return42/patches-from-allendema
...
Cherry pick some fixes from @allendema
2021-09-04 08:42:46 +00:00
Markus Heiser
ab4456b0d0
Merge pull request #281 from dalf/cleanup
...
Cleanup
2021-09-04 07:17:19 +00:00
Markus Heiser
16c19389a5
Merge pull request #285 from return42/fix-typo
...
[fix] typo in searx.webadapter.parse_lang
2021-09-04 06:55:19 +00:00
Markus Heiser
df351937f4
[fix] typo in searx.webadapter.parse_lang
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-09-04 08:39:45 +02:00
Markus Heiser
e94181337f
Merge pull request #282 from searxng/translations_update
...
Update translations
2021-09-03 07:59:03 +00:00
Markus Heiser
065b4dab56
Merge pull request #278 from searxng/update_data_update_ahmia_blacklist.py
...
Update searx.data - update_ahmia_blacklist.py
2021-09-01 06:48:55 +00:00
Markus Heiser
a7a879181d
Merge pull request #279 from searxng/update_data_update_currencies.py
...
Update searx.data - update_currencies.py
2021-09-01 06:46:29 +00:00
Markus Heiser
00a51fa17f
Merge pull request #280 from searxng/update_data_update_firefox_version.py
...
Update searx.data - update_firefox_version.py
2021-09-01 06:44:22 +00:00
Markus Heiser
4ac67b361f
Merge pull request #277 from searxng/update_data_update_wikidata_units.py
...
Update searx.data - update_wikidata_units.py
2021-09-01 06:43:50 +00:00
Markus Heiser
37b3d8c33b
Merge pull request #276 from dalf/simple_eslint
...
Simple theme: eslint and bug fix
2021-08-31 16:13:47 +00:00
Markus Heiser
840a327564
Merge pull request #275 from koelle25/add-packagist
...
[enh] Add Packagist search engine
2021-08-31 16:05:24 +00:00
Markus Heiser
2948a99b6e
[mod] simple theme - add ESLint
...
[1] https://eslint.org/
[2] https://eslint.org/docs/user-guide/configuring/
[3] https://eslint.org/docs/user-guide/command-line-interface
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-31 12:20:23 +02:00
Markus Heiser
e44f4dc4b3
Merge pull request #269 from dalf/enh_new_bug_form
...
[enh] new issue: include information from searx.version
2021-08-31 09:54:38 +00:00
Markus Heiser
1e942435be
Merge pull request #273 from searxng/dependabot/pip/master/pylint-2.10.2
...
Bump pylint from 2.9.6 to 2.10.2
2021-08-31 09:08:59 +00:00
Markus Heiser
a1adc46fc8
[pylint] Pylint 2.10 - fix redundant-u-string-prefix
...
Pylint 2.10 added new default checks [1]:
redundant-u-string-prefix:
Emitted when the u prefix is added to a string
[1] https://pylint.pycqa.org/en/latest/whatsnew/2.10.html
[2] https://github.com/PyCQA/pylint/issues/4102
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-31 10:54:40 +02:00
Markus Heiser
03e7d423be
[pylint] Pylint 2.10 - unused-variable
...
Pylint 2.10 fixed [1]:
Fixed bug with cell-var-from-loop checker: it no longer has false negatives
when both unused-variable and used-before-assignment are disabled.
[1] https://pylint.pycqa.org/en/latest/whatsnew/2.10.html
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-31 10:51:50 +02:00
Markus Heiser
e856b563dd
[pylint] Pylint 2.10 - unspecified-encoding
...
Pylint 2.10 added new default checks [1]:
unspecified-encoding:
Emitted when open() is called without specifying an encoding [2]
[1] https://pylint.pycqa.org/en/latest/whatsnew/2.10.html
[2] https://github.com/PyCQA/pylint/issues/3826
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-31 10:49:36 +02:00
Markus Heiser
b83c14cf6b
[pylint] Pylint 2.10 - fix use-list-literal & use-dict-literal
...
Pylint 2.10 added new default checks [1]:
use-list-literal
Emitted when list() is called with no arguments instead of using []
use-dict-literal
Emitted when dict() is called with no arguments instead of using {}
[1] https://pylint.pycqa.org/en/latest/whatsnew/2.10.html
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-31 10:40:29 +02:00
Markus Heiser
183c856396
Merge pull request #266 from return42/fix-scripts
...
[fix] utils/searx.sh install settings - do not eval the template
2021-08-22 16:07:37 +00:00
Markus Heiser
29b40338d6
Merge pull request #260 from dalf/mod_locale
...
[mod] searx.webapp.get_locale: read locale from the preferences
2021-08-22 16:07:21 +00:00
Markus Heiser
8ba4dc26d1
[fix] utils/searx.sh install settings - do not eval the template
...
The settings template in utils/templates/etc/searx/settings.yml
does not include any replacements (shell environment variables).
BTW: utils/filtron.sh & utils/lib.sh
Add some more messages to installation procedures, to be more clear.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-20 14:21:54 +02:00
Markus Heiser
8290f70e24
[fix] /config add missing GIT_BRANCH value
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-18 19:51:07 +02:00
Markus Heiser
97355672cd
[translations] ./manage rename shell functions to integrate weblate
...
Functions implemented to run *Weblate* workflows should use prefix 'weblate.':
- babel.setup.translations.worktree --> weblate.translations.worktree
Create git worktree ${TRANSLATIONS_WORKTREE} and checkout branch
'translations' from Weblate's counterpart (weblate) of the SearXNG
(origin)::
remote weblate https://weblate.bubu1.eu/git/searxng/searxng/
- babel.weblate.to.translations --> weblate.to.translations
Update 'translations' branch of SearXNG (origin) with last additions from
Weblate.
- babel.translations.to.master --> weblate.translations.commit
Update 'translations' branch of SearXNG (origin) with last additions from
Weblate. Copy the changes to the master branch, compile translations and
create a commit in the local branch (master)
- babel.master.to.translations --> weblate.push.translations
Push *translation changes* from SearXNG (origin) to Weblate's
counterpart (weblate).
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-16 12:06:12 +02:00
Markus Heiser
0dc8d244c5
[translation] ./manage: add comments to new functions, rename job
...
./mange
Comment functions:
- babel.setup.translations.worktree
- babel.weblate.to.translations
- babel.translations.to.master
- babel.master.to.translations
BTW:
- changed some cd into pushd
- removed obsolete `set -x`
- remove not needed echo from `last_commit_message=$(echo ..`
.github/workflows/translations-update.yml
docs/dev/translation.rst
Rename job to: "create PR for additons from weblate"
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-16 12:00:16 +02:00
Markus Heiser
640ffa3aaa
[translations] WF figure rename label to "weblate clone of SearXNG origin"
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-09 17:59:27 +02:00
Markus Heiser
58344b0827
[translations] additional documentation of the Weblate workflows
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-09 17:58:27 +02:00
Markus Heiser
15bf9fc850
[fix] settings.yml - replace http:// URLs by https://
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-07 16:43:19 +02:00
Markus Heiser
80372d87d9
Merge pull request #252 from searxng/dependabot/pip/master/sphinx-tabs-3.2.0
...
Bump sphinx-tabs from 3.1.0 to 3.2.0
2021-08-06 19:06:29 +00:00
Markus Heiser
c2e8480e60
Merge pull request #251 from searxng/dependabot/pip/master/yamllint-1.26.2
...
Bump yamllint from 1.26.1 to 1.26.2
2021-08-06 19:00:32 +00:00
Markus Heiser
f5c3e9f3dd
Merge pull request #249 from return42/docs-drop-locales
...
[docs] admin/engines/settings.rst remove 'locales' section
2021-08-04 09:37:24 +00:00
Markus Heiser
b3e07db96e
[docs] admin/engines/settings.rst remove 'locales' section
...
'locales' setting has been removed in:
- f30d01ff [mod] settings.yml: remove locales
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-04 11:32:35 +02:00
Markus Heiser
809bf1a105
[mod] pylint & document searx.locales (settings.yml: remove locales)
...
- Add ``# lint: pylint`` header to pylint this python file.
- Fix issues reported by pylint.
- Add source code documentation of modul searx.locales
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-04 07:54:53 +02:00
Markus Heiser
900baf2eae
[mod] manage - implement babel commands, drop update_translations.sh
...
In ./manage implement babel.*:
- extract : extract messages from source files and generate POT file
- update : update existing message catalogs from POT file
- compile : compile translation catalogs into binary MO files
Replace searx_extra/update/update_translations.sh by command:
- ci.babel.update
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-02 10:06:27 +02:00
Markus Heiser
e0ca749ff5
Merge pull request #242 from searxng/update_data_update_currencies.py
...
Update searx.data - update_currencies.py
2021-08-02 07:40:19 +00:00
Markus Heiser
274edd523c
[fix] get common used languages back (min_engines_per_lang = 13)
...
In commit 4d3f2f48d common used languages has been droped. By reducing the
number of `min_engines_per_lang` from 15 to 13 we get theses languages back.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-01 13:04:24 +02:00
Markus Heiser
0fc1dcbfa5
Merge pull request #243 from searxng/update_data_update_wikidata_units.py
...
Update searx.data - update_wikidata_units.py
2021-08-01 09:42:01 +00:00
Markus Heiser
33ba700c3b
Merge pull request #240 from searxng/update_data_update_firefox_version.py
...
Update searx.data - update_firefox_version.py
2021-08-01 09:22:38 +00:00
Markus Heiser
d2d6234f92
Merge pull request #239 from return42/fix-doc-git
...
[fix] documentation - remove brand.git_url & brand.git_branch
2021-08-01 05:29:41 +00:00
Markus Heiser
5e3525a298
Merge pull request #236 from dalf/manage_without_brand
...
manage script: remove unused reference to utils/brand.env and .config.sh
2021-08-01 05:29:24 +00:00
Markus Heiser
aee613d256
[fix] documentation - remove brand.git_url & brand.git_branch
...
In commit 4b43775c9 the brand.git_url & brand.git_branch has been removed, with
this patch these settings are removed from the documentation.
docs/admin/engines/settings.rst
- Remove brand.git_url & brand.git_branch
docs/dev/makefile.rst
- Remove brand.git_url & brand.git_branch
modified docs/dev/lxcdev.rst
- Remove brand.git_url & brand.git_branch
- fix searXNG to SearXNG
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-08-01 06:57:14 +02:00
Markus Heiser
3b97657f3b
Merge pull request #233 from searxng/dependabot/pip/master/sphinx-4.1.2
...
Bump sphinx from 4.1.1 to 4.1.2
2021-07-30 16:27:44 +00:00
Markus Heiser
a2fc031e7a
Merge pull request #232 from searxng/dependabot/pip/master/pylint-2.9.6
...
Bump pylint from 2.9.5 to 2.9.6
2021-07-30 16:22:01 +00:00
Markus Heiser
5b3eeb6e54
[mod] searx.sh - improve some messages prompted while installation
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-07-30 14:53:09 +02:00
Markus Heiser
85e0908e4f
[fix] searx.sh - get_installed_version_variables()
...
Fix the quotation marks in the command line to run
python -m searx.version
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-07-30 14:53:09 +02:00
Markus Heiser
64d64535a2
[fix] buildenv: first unset environment / then import searx package
...
The first import of names from the searx package implies loading the
settings.yml. Before this is done, the enviroment variables must be unset to
not overwrite the values from the settings.yml
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de >
2021-07-30 14:53:09 +02:00
Markus Heiser
beff764d74
Merge pull request #216 from return42/fix-searx.sh
...
normalize environment of installation tasks (shell) with YAML settings
2021-07-27 05:32:57 +00:00