mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update localization
This commit is contained in:
parent
3f851e9d0b
commit
3e9ce24eaf
1 changed files with 7 additions and 4 deletions
|
@ -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,10 +2079,10 @@ 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');
|
||||||
|
|
||||||
if (mainDrawerPanelContent) {
|
if (mainDrawerPanelContent) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue