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