Translate the whole site to English: English routes with 301 redirects from the Dutch paths, English UI, docs, seeds and captions, one-time live content migration

This commit is contained in:
2026-10-05 11:25:41 +02:00
parent bbdecdc95b
commit ff547e1677
153 changed files with 1095 additions and 774 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ from molodetz.cli.main import build_parser
def test_parser_groups():
parser = build_parser()
args = parser.parse_args(["posts", "import", "notitie.md", "--topic", "standaard"])
assert args.topic == "standaard" and args.path == "notitie.md"
args = parser.parse_args(["posts", "import", "note.md", "--topic", "standard"])
assert args.topic == "standard" and args.path == "note.md"
args = parser.parse_args(["system", "prune", "--dry-run"])
assert args.dry_run is True
args = parser.parse_args(["role", "set", "retoor", "Admin"])
+1 -1
View File
@@ -6,7 +6,7 @@ import pytest
from tests.conftest import TEST_DATA_DIR
QUERIES = [
("idx_posts_published", "SELECT * FROM posts WHERE topic = 'rol' AND status = 'published' AND deleted_at IS NULL ORDER BY published_at DESC LIMIT 25"),
("idx_posts_published", "SELECT * FROM posts WHERE topic = 'roll' AND status = 'published' AND deleted_at IS NULL ORDER BY published_at DESC LIMIT 25"),
("idx_posts_slug", "SELECT * FROM posts WHERE slug = 'x'"),
("idx_sessions_token", "SELECT * FROM sessions WHERE token = 'x'"),
("idx_users_api_key", "SELECT * FROM users WHERE api_key = 'x'"),
+1 -1
View File
@@ -8,7 +8,7 @@ from molodetz.utils.request_meta import safe_next
"value,expected",
[
("/admin", "/admin"),
("/rol?page=2", "/rol?page=2"),
("/roll?page=2", "/roll?page=2"),
("https://evil.example/", "/"),
("//evil.example/", "/"),
("/\\evil.example", "/"),