From 3e9ce24eafa4e88f10b2050e94eab0e1dd6af989 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 27 Jul 2015 23:32:33 -0400 Subject: [PATCH] update localization --- dashboard-ui/scripts/site.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index cedaf95ccb..90cbe2484f 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -78,8 +78,11 @@ var Dashboard = { html = html.replace(''), ""); + var lastIndex = html.lastIndexOf('-->'); + + if (lastIndex != -1) { + html = html.substring(0, lastIndex) + html.substring(lastIndex + 3); + } return Globalize.translateDocument(html, 'html'); }, @@ -2076,9 +2079,9 @@ var AppInfo = {}; function onConnectionManagerCreated(deferred) { Globalize.ensure().done(function () { - $(function () { + document.title = Globalize.translateDocument(document.title, 'html'); - document.title = Globalize.translateDocument(document.title, 'html'); + $(function () { var mainDrawerPanelContent = document.querySelector('.mainDrawerPanelContent');