Workaround broken l10n, upgrade deps

This commit is contained in:
Chris Josten 2022-05-25 14:46:37 +02:00
parent 1d0d1a54b1
commit 223ca8bc29
4 changed files with 8 additions and 8 deletions

View File

@ -4,8 +4,8 @@
"botan": "1.12.19", "botan": "1.12.19",
"botan-math": "1.0.3", "botan-math": "1.0.3",
"diet-ng": "1.8.0", "diet-ng": "1.8.0",
"dyaml": "0.8.3", "dyaml": "0.8.6",
"eventcore": "0.9.17", "eventcore": "0.9.20",
"fswatch": "0.5.0", "fswatch": "0.5.0",
"libasync": "0.8.6", "libasync": "0.8.6",
"libevent": "2.0.2+2.0.16", "libevent": "2.0.2+2.0.16",
@ -15,7 +15,7 @@
"stdx-allocator": "2.77.5", "stdx-allocator": "2.77.5",
"taggedalgebraic": "0.11.22", "taggedalgebraic": "0.11.22",
"tinyendian": "0.2.0", "tinyendian": "0.2.0",
"vibe-core": "1.19.0", "vibe-core": "1.22.3",
"vibe-d": "0.9.3" "vibe-d": "0.9.4"
} }
} }

View File

@ -58,7 +58,7 @@ struct TranslateContext {
mixin translationModule!"mijnblog"; mixin translationModule!"mijnblog";
static string determineLanguage(scope HTTPServerRequest req) { static string determineLanguage(scope HTTPServerRequest req) {
if ("lang" !in req.query) return req.determineLanguageByHeader(languages); // default behaviour using "Accept-Language" header if ("lang" !in req.query) return req.determineLanguageByHeader(languages); // default behaviour using "Accept-Language" header
return req.query.get("lang", "en_GB"); return determineLanguageByHeader(req.query.get("lang", "en_GB"), languages);
} }
} }
@ -80,7 +80,7 @@ string singleResponseMixin(string arrayName, string templateName) {
break; break;
default: default:
case HTML: case HTML:
render!("` ~ templateName ~ `", content); res.render!("` ~ templateName ~ `", content);
break; break;
}`; }`;
} }

View File

@ -1,2 +1,2 @@
p p
small& template.page.copyright small !{trWeb("template.page.copyright")}

View File

@ -46,7 +46,7 @@ html(prefix="og: http://ogp.me/ns#")
section.header-navigation section.header-navigation
header header
img.logo(src="/static/img/logo.png", alt="The logo of the website: the letter C drawn in an unprofessional manner with wobbly eyes on put on top") img.logo(src="/static/img/logo.png", alt="The logo of the website: the letter C drawn in an unprofessional manner with wobbly eyes on put on top")
p& template.page.name p #{trWeb("template.page.name")}
nav nav
ul ul
- menuItem("template.menu.home", "/"); - menuItem("template.menu.home", "/");