1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update localization

This commit is contained in:
Luke Pulverenti 2015-07-27 23:32:33 -04:00
parent 3f851e9d0b
commit 3e9ce24eaf

View file

@ -78,8 +78,11 @@ var Dashboard = {
html = html.replace('<!--', ''); html = html.replace('<!--', '');
// replace the last instance // replace the last instance
// https://stackoverflow.com/questions/29188409/how-do-i-replace-the-last-occurance-of-a-variable-in-a-string var lastIndex = html.lastIndexOf('-->');
html = html.replace(new RegExp("(.*)" + '-->'), "");
if (lastIndex != -1) {
html = html.substring(0, lastIndex) + html.substring(lastIndex + 3);
}
return Globalize.translateDocument(html, 'html'); return Globalize.translateDocument(html, 'html');
}, },
@ -2076,9 +2079,9 @@ var AppInfo = {};
function onConnectionManagerCreated(deferred) { function onConnectionManagerCreated(deferred) {
Globalize.ensure().done(function () { 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'); var mainDrawerPanelContent = document.querySelector('.mainDrawerPanelContent');