mirror of
https://github.com/searxng/searxng.git
synced 2024-11-29 14:11:02 +00:00
[mod] footer: i18n for the link names in the footer
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
7e1b5f6cc8
commit
53898b8c37
4 changed files with 14 additions and 6 deletions
|
@ -11,6 +11,7 @@ __all__ = [
|
||||||
'CATEGORY_NAMES',
|
'CATEGORY_NAMES',
|
||||||
'CATEGORY_GROUPS',
|
'CATEGORY_GROUPS',
|
||||||
'STYLE_NAMES',
|
'STYLE_NAMES',
|
||||||
|
'BRAND_CUSTOM_LINKS',
|
||||||
]
|
]
|
||||||
|
|
||||||
CONSTANT_NAMES = {
|
CONSTANT_NAMES = {
|
||||||
|
@ -51,3 +52,8 @@ STYLE_NAMES = {
|
||||||
'LIGHT': 'light',
|
'LIGHT': 'light',
|
||||||
'DARK': 'dark',
|
'DARK': 'dark',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BRAND_CUSTOM_LINKS = {
|
||||||
|
'UPTIME': 'Uptime',
|
||||||
|
'ABOUT': 'About',
|
||||||
|
}
|
||||||
|
|
|
@ -19,10 +19,12 @@ brand:
|
||||||
public_instances: https://searx.space
|
public_instances: https://searx.space
|
||||||
wiki_url: https://github.com/searxng/searxng/wiki
|
wiki_url: https://github.com/searxng/searxng/wiki
|
||||||
issue_url: https://github.com/searxng/searxng/issues
|
issue_url: https://github.com/searxng/searxng/issues
|
||||||
# Custom entries in the footer: [title]: [link]
|
|
||||||
# custom:
|
# custom:
|
||||||
# About instance: "https://searxng.org"
|
# maintainer: "Jon Doe"
|
||||||
# Instance admin: "https://searxng.org"
|
# # Custom entries in the footer: [title]: [link]
|
||||||
|
# links:
|
||||||
|
# Uptime: https://uptime.searxng.org/history/darmarit-org
|
||||||
|
# About: "https://searxng.org"
|
||||||
|
|
||||||
search:
|
search:
|
||||||
# Filter results. 0: None, 1: Moderate, 2: Strict
|
# Filter results. 0: None, 1: Moderate, 2: Strict
|
||||||
|
|
|
@ -151,7 +151,7 @@ SCHEMA = {
|
||||||
'docs_url': SettingsValue(str, 'https://docs.searxng.org'),
|
'docs_url': SettingsValue(str, 'https://docs.searxng.org'),
|
||||||
'public_instances': SettingsValue((False, str), 'https://searx.space'),
|
'public_instances': SettingsValue((False, str), 'https://searx.space'),
|
||||||
'wiki_url': SettingsValue(str, 'https://github.com/searxng/searxng/wiki'),
|
'wiki_url': SettingsValue(str, 'https://github.com/searxng/searxng/wiki'),
|
||||||
'custom': SettingsValue(dict, {}),
|
'custom': SettingsValue(dict, {'links': {}}),
|
||||||
},
|
},
|
||||||
'search': {
|
'search': {
|
||||||
'safe_search': SettingsValue((0, 1, 2), 0),
|
'safe_search': SettingsValue((0, 1, 2), 0),
|
||||||
|
|
|
@ -77,8 +77,8 @@
|
||||||
{% if get_setting('general.contact_url') %}
|
{% if get_setting('general.contact_url') %}
|
||||||
| <a href="{{ get_setting('general.contact_url') }}">{{ _('Contact instance maintainer') }}</a>
|
| <a href="{{ get_setting('general.contact_url') }}">{{ _('Contact instance maintainer') }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for title, link in get_setting('brand.custom').items() %}
|
{% for title, link in get_setting('brand.custom.links').items() %}
|
||||||
| <a href="{{ link }}">{{ title }}</a>
|
| <a href="{{ link }}">{{ _(title) }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
Loading…
Reference in a new issue