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
+5 -5
View File
@@ -26,7 +26,7 @@ def website_schema(request):
"@type": "WebSite",
"name": config.APP_TITLE,
"url": base + "/",
"inLanguage": "nl",
"inLanguage": "en",
"potentialAction": {
"@type": "SearchAction",
"target": base + "/docs/search?q={search_term_string}",
@@ -60,9 +60,9 @@ def article_schema(request, post, author):
"headline": _clean(post["title"]),
"datePublished": post.get("published_at") or post.get("created_at"),
"dateModified": post.get("updated_at"),
"inLanguage": "nl",
"inLanguage": "en",
"mainEntityOfPage": f"{base}/posts/{post['slug']}",
"author": {"@type": "Person", "name": author["username"] if author else "retoor", "url": f"{base}/mensen/{author['username'] if author else 'retoor'}"},
"author": {"@type": "Person", "name": author["username"] if author else "retoor", "url": f"{base}/people/{author['username'] if author else 'retoor'}"},
"publisher": {"@type": "Organization", "name": config.APP_TITLE},
}
@@ -72,7 +72,7 @@ def profile_schema(request, person):
return {
"@context": "https://schema.org",
"@type": "ProfilePage",
"mainEntity": {"@type": "Person", "name": person["username"], "url": f"{base}/mensen/{person['username']}"},
"mainEntity": {"@type": "Person", "name": person["username"], "url": f"{base}/people/{person['username']}"},
}
@@ -113,5 +113,5 @@ def base_seo_context(
"json_ld": [json.dumps(schema, ensure_ascii=False).replace("</", "<\\/") for schema in all_schemas],
"prev_url": prev_url,
"next_url": next_url,
"keywords": keywords or "molodetz, schrijven, vakmanschap, software, community",
"keywords": keywords or "molodetz, writing, craftsmanship, software, community",
}