Workaround broken l10n, upgrade deps

master
Chris Josten 3 months ago
parent 1d0d1a54b1
commit 223ca8bc29
  1. 8
      dub.selections.json
  2. 4
      source/nl/netsoj/chris/blog/interfaces/http.d
  3. 2
      views/parts/footer.dt
  4. 2
      views/parts/page.dt

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

@ -58,7 +58,7 @@ struct TranslateContext {
mixin translationModule!"mijnblog";
static string determineLanguage(scope HTTPServerRequest req) {
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;
default:
case HTML:
render!("` ~ templateName ~ `", content);
res.render!("` ~ templateName ~ `", content);
break;
}`;
}

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

@ -46,7 +46,7 @@ html(prefix="og: http://ogp.me/ns#")
section.header-navigation
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")
p& template.page.name
p #{trWeb("template.page.name")}
nav
ul
- menuItem("template.menu.home", "/");

Loading…
Cancel
Save