diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-12-01 13:25:28 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-12-01 13:25:28 +0100 |
commit | 6efbdeb31d1b035d1ecf2732aa94cc613bf5f8d2 (patch) | |
tree | 9342e6ac90796d5a96d2fb40d32cca92fb410d6a | |
parent | Create settings file. (diff) | |
download | mu4web-6efbdeb31d1b035d1ecf2732aa94cc613bf5f8d2.tar.gz mu4web-6efbdeb31d1b035d1ecf2732aa94cc613bf5f8d2.tar.xz |
Further translations.
-rw-r--r-- | mu4web/main.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mu4web/main.py b/mu4web/main.py index 9786070..ef7624a 100644 --- a/mu4web/main.py +++ b/mu4web/main.py @@ -278,7 +278,7 @@ def search_result(q: str, by: Optional[str], direction: str) -> HTML: body.append(('tr', rowdata)) if len(rows) == 0: - return "No results" + return "Inga träffar" else: heads: list[HTML] = [] @@ -313,7 +313,7 @@ def search_page(q: str, by: Optional[str], if q: main_body.append(search_result(q, by, direction)) - return render_document(page_base(title='Search', + return render_document(page_base(title='Sökning', body=main_body)) @@ -331,7 +331,7 @@ def index_page(): body = [('div', ('table', ('tbody', rows))), ('div', entries), ] - return render_document(page_base(title='Mail index', + return render_document(page_base(title='E-postindex', body=body)) |