From 211482bbc0f5218d0d96657b9da3a1a42e8676b1 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 13 Sep 2017 12:09:31 -0400 Subject: [PATCH] fixes #5927 --- public/src/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/src/app.js b/public/src/app.js index 913360c615..d6acad4554 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -439,6 +439,9 @@ app.cacheBuster = null; .replace('{pageTitle}', function () { return title; }) .replace('{browserTitle}', function () { return config.browserTitle; }); + // Allow translation strings in title on ajaxify (#5927) + title = title.replace(/[/g, '[').replace(/]/g, ']'); + translator.translate(title, function (translated) { titleObj.titles[0] = translated; app.alternatingTitle('');