This commit is contained in:
Julian Lam
2017-09-13 12:09:31 -04:00
parent 8b0e6611d9
commit 211482bbc0

View File

@@ -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('');