mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
rename globalize method
This commit is contained in:
parent
ec65069323
commit
b843de2586
21 changed files with 31 additions and 30 deletions
|
@ -15,12 +15,12 @@
|
|||
},
|
||||
"devDependencies": {},
|
||||
"ignore": [],
|
||||
"version": "1.1.22",
|
||||
"_release": "1.1.22",
|
||||
"version": "1.1.23",
|
||||
"_release": "1.1.23",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.1.22",
|
||||
"commit": "e24e9e35b215c2982601535ccb2496c962dfc1a9"
|
||||
"tag": "1.1.23",
|
||||
"commit": "56056e9019d793eea2ce4011bea382c562d2593f"
|
||||
},
|
||||
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
|
||||
"_target": "~1.1.5",
|
||||
|
|
|
@ -238,6 +238,7 @@ define(['connectionManager', 'userSettings', 'events'], function (connectionMana
|
|||
return {
|
||||
getString: translate,
|
||||
translate: translate,
|
||||
translateDocument: translateHtml,
|
||||
translateHtml: translateHtml,
|
||||
loadStrings: loadTranslations,
|
||||
defaultModule: defaultModule
|
||||
|
|
|
@ -32,14 +32,14 @@
|
|||
"web-component-tester": "^4.0.0",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"homepage": "https://github.com/polymerelements/iron-icon",
|
||||
"homepage": "https://github.com/PolymerElements/iron-icon",
|
||||
"_release": "1.0.8",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.8",
|
||||
"commit": "f36b38928849ef3853db727faa8c9ef104d611eb"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/iron-icon.git",
|
||||
"_source": "git://github.com/PolymerElements/iron-icon.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "polymerelements/iron-icon"
|
||||
"_originalSource": "PolymerElements/iron-icon"
|
||||
}
|
|
@ -36,7 +36,7 @@
|
|||
"tag": "v1.2.4",
|
||||
"commit": "1ee4e2e11a9e5118320987d93fc2c03ae9a489f4"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/iron-selector.git",
|
||||
"_source": "git://github.com/PolymerElements/iron-selector.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "polymerelements/iron-selector"
|
||||
"_originalSource": "PolymerElements/iron-selector"
|
||||
}
|
|
@ -193,7 +193,7 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
html += Globalize.translateHtml(template);
|
||||
html += Globalize.translateDocument(template);
|
||||
|
||||
dlg.innerHTML = html;
|
||||
document.body.appendChild(dlg);
|
||||
|
|
|
@ -521,7 +521,7 @@
|
|||
dlg.classList.add('formDialog');
|
||||
dlg.classList.add('filterDialog');
|
||||
|
||||
dlg.innerHTML = Globalize.translateHtml(template);
|
||||
dlg.innerHTML = Globalize.translateDocument(template);
|
||||
|
||||
setVisibility(dlg, options);
|
||||
document.body.appendChild(dlg);
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
html += Globalize.translateHtml(template);
|
||||
html += Globalize.translateDocument(template);
|
||||
|
||||
dlg.innerHTML = html;
|
||||
document.body.appendChild(dlg);
|
||||
|
|
|
@ -289,7 +289,7 @@
|
|||
html += '</h2>';
|
||||
|
||||
html += '<div class="editorContent">';
|
||||
html += Globalize.translateHtml(template);
|
||||
html += Globalize.translateDocument(template);
|
||||
html += '</div>';
|
||||
|
||||
dlg.innerHTML = html;
|
||||
|
|
|
@ -262,7 +262,7 @@
|
|||
html += '</h2>';
|
||||
|
||||
html += '<div class="editorContent">';
|
||||
html += Globalize.translateHtml(template);
|
||||
html += Globalize.translateDocument(template);
|
||||
html += '</div>';
|
||||
|
||||
dlg.innerHTML = html;
|
||||
|
|
|
@ -154,7 +154,7 @@
|
|||
html += '</h2>';
|
||||
|
||||
html += '<div class="editorContent">';
|
||||
html += Globalize.translateHtml(template);
|
||||
html += Globalize.translateDocument(template);
|
||||
html += '</div>';
|
||||
|
||||
dlg.innerHTML = html;
|
||||
|
|
|
@ -295,7 +295,7 @@
|
|||
dlg.classList.add('background-theme-b');
|
||||
|
||||
var html = '';
|
||||
html += Globalize.translateHtml(template);
|
||||
html += Globalize.translateDocument(template);
|
||||
|
||||
dlg.innerHTML = html;
|
||||
document.body.appendChild(dlg);
|
||||
|
@ -361,7 +361,7 @@
|
|||
dlg.classList.add('background-theme-a');
|
||||
|
||||
var html = '';
|
||||
html += Globalize.translateHtml(template);
|
||||
html += Globalize.translateDocument(template);
|
||||
|
||||
dlg.innerHTML = html;
|
||||
document.body.appendChild(dlg);
|
||||
|
|
|
@ -215,7 +215,7 @@
|
|||
html += '</h2>';
|
||||
|
||||
html += '<div class="editorContent" style="max-width:800px;margin:auto;">';
|
||||
html += Globalize.translateHtml(template);
|
||||
html += Globalize.translateDocument(template);
|
||||
html += '</div>';
|
||||
|
||||
dlg.innerHTML = html;
|
||||
|
|
|
@ -169,7 +169,7 @@
|
|||
html += '</h2>';
|
||||
|
||||
html += '<div class="editorContent" style="max-width:800px;margin:auto;">';
|
||||
html += Globalize.translateHtml(template);
|
||||
html += Globalize.translateDocument(template);
|
||||
html += '</div>';
|
||||
|
||||
dlg.innerHTML = html;
|
||||
|
|
|
@ -1232,7 +1232,7 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
html += Globalize.translateHtml(template);
|
||||
html += Globalize.translateDocument(template);
|
||||
|
||||
dlg.innerHTML = html;
|
||||
document.body.appendChild(dlg);
|
||||
|
@ -1267,7 +1267,7 @@
|
|||
|
||||
var template = this.response;
|
||||
|
||||
elem.innerHTML = Globalize.translateHtml(template);
|
||||
elem.innerHTML = Globalize.translateDocument(template);
|
||||
|
||||
elem.querySelector('.btnCancel').classList.add('hide');
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
var html = '';
|
||||
var submitted = false;
|
||||
|
||||
html += Globalize.translateHtml(template);
|
||||
html += Globalize.translateDocument(template);
|
||||
|
||||
dlg.innerHTML = html;
|
||||
document.body.appendChild(dlg);
|
||||
|
|
|
@ -346,7 +346,7 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
html += Globalize.translateHtml(template);
|
||||
html += Globalize.translateDocument(template);
|
||||
|
||||
dlg.innerHTML = html;
|
||||
document.body.appendChild(dlg);
|
||||
|
|
|
@ -370,7 +370,7 @@
|
|||
html += '</div>';
|
||||
|
||||
html += '<div class="editorContent">';
|
||||
html += Globalize.translateHtml(template);
|
||||
html += Globalize.translateDocument(template);
|
||||
html += '</div>';
|
||||
|
||||
dlg.innerHTML = html;
|
||||
|
|
|
@ -476,7 +476,7 @@
|
|||
|
||||
var template = this.response;
|
||||
var tabContent = options.element;
|
||||
tabContent.innerHTML = Globalize.translateHtml(template);
|
||||
tabContent.innerHTML = Globalize.translateDocument(template);
|
||||
|
||||
tabContent.querySelector('.programGrid').addEventListener('scroll', function (e) {
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
var html = this.response;
|
||||
var elem = page.querySelector('.providerTemplate');
|
||||
elem.innerHTML = Globalize.translateHtml(html);
|
||||
elem.innerHTML = Globalize.translateDocument(html);
|
||||
$(elem).trigger('create');
|
||||
|
||||
init(page, type, providerId);
|
||||
|
|
|
@ -33,7 +33,7 @@ var Dashboard = {
|
|||
html = html.substring(0, lastIndex) + html.substring(lastIndex + 3);
|
||||
}
|
||||
|
||||
return Globalize.translateHtml(html, 'core');
|
||||
return Globalize.translateDocument(html, 'core');
|
||||
},
|
||||
|
||||
isConnectMode: function () {
|
||||
|
@ -2145,7 +2145,7 @@ var AppInfo = {};
|
|||
}
|
||||
|
||||
function onGlobalizeInit() {
|
||||
document.title = Globalize.translateHtml(document.title, 'core');
|
||||
document.title = Globalize.translateDocument(document.title, 'core');
|
||||
|
||||
var mainDrawerPanelContent = document.querySelector('.mainDrawerPanelContent');
|
||||
|
||||
|
@ -2180,7 +2180,7 @@ var AppInfo = {};
|
|||
MediaPlayer.init();
|
||||
|
||||
// Don't like having to use jQuery here, but it takes care of making sure that embedded script executes
|
||||
$(mainDrawerPanelContent).html(Globalize.translateHtml(newHtml, 'core'));
|
||||
$(mainDrawerPanelContent).html(Globalize.translateDocument(newHtml, 'core'));
|
||||
onAppReady();
|
||||
});
|
||||
return;
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
}).then(function (html) {
|
||||
|
||||
var elem = page.querySelector('.providerTemplate');
|
||||
elem.innerHTML = Globalize.translateHtml(html);
|
||||
elem.innerHTML = Globalize.translateDocument(html);
|
||||
|
||||
init(page, type);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue