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
+1 -1
View File
@@ -92,7 +92,7 @@ def _media_pass(html):
if not MENTION_PATTERN.search(text):
continue
escaped = mistune.escape(text)
replaced = MENTION_PATTERN.sub(lambda m: f'<a class="mention" href="/mensen/{m.group(1)}">@{m.group(1)}</a>', escaped)
replaced = MENTION_PATTERN.sub(lambda m: f'<a class="mention" href="/people/{m.group(1)}">@{m.group(1)}</a>', escaped)
fragment = BeautifulSoup(replaced, "html.parser")
node.replace_with(*list(fragment.contents))
return str(soup)