diff --git a/src/components/accessschedule/accessschedule.js b/src/components/accessschedule/accessschedule.js
index 2f4be8b2a7..28b09b893b 100644
--- a/src/components/accessschedule/accessschedule.js
+++ b/src/components/accessschedule/accessschedule.js
@@ -1,4 +1,4 @@
-define(["dialogHelper", "datetime", "emby-select", "paper-icon-button-light", "formDialogStyle"], function (dialogHelper, datetime) {
+define(["dialogHelper", "datetime", "globalize", "emby-select", "paper-icon-button-light", "formDialogStyle"], function (dialogHelper, datetime, globalize) {
"use strict";
function getDisplayTime(hours) {
@@ -38,7 +38,7 @@ define(["dialogHelper", "datetime", "emby-select", "paper-icon-button-light", "f
};
if (parseFloat(updatedSchedule.StartHour) >= parseFloat(updatedSchedule.EndHour)) {
- return void alert(Globalize.translate("ErrorMessageStartHourGreaterThanEnd"));
+ return void alert(globalize.translate("ErrorMessageStartHourGreaterThanEnd"));
}
context.submitted = true;
@@ -60,7 +60,7 @@ define(["dialogHelper", "datetime", "emby-select", "paper-icon-button-light", "f
});
dlg.classList.add("formDialog");
var html = "";
- html += Globalize.translateDocument(template);
+ html += globalize.translateDocument(template);
dlg.innerHTML = html;
populateHours(dlg);
loadSchedule(dlg, options.schedule);
diff --git a/src/components/apphost.js b/src/components/apphost.js
index eb5e4edea9..6891ef9aa8 100644
--- a/src/components/apphost.js
+++ b/src/components/apphost.js
@@ -1,4 +1,4 @@
-define(["appSettings", "browser", "events", "htmlMediaHelper", "webSettings"], function (appSettings, browser, events, htmlMediaHelper, webSettings) {
+define(["appSettings", "browser", "events", "htmlMediaHelper", "webSettings", "globalize"], function (appSettings, browser, events, htmlMediaHelper, webSettings, globalize) {
"use strict";
function getBaseProfileOptions(item) {
@@ -328,10 +328,10 @@ define(["appSettings", "browser", "events", "htmlMediaHelper", "webSettings"], f
require(["actionsheet"], function (actionsheet) {
exitPromise = actionsheet.show({
- title: Globalize.translate("MessageConfirmAppExit"),
+ title: globalize.translate("MessageConfirmAppExit"),
items: [
- {id: "yes", name: Globalize.translate("Yes")},
- {id: "no", name: Globalize.translate("No")}
+ {id: "yes", name: globalize.translate("Yes")},
+ {id: "no", name: globalize.translate("No")}
]
}).then(function (value) {
if (value === "yes") {
diff --git a/src/components/directorybrowser/directorybrowser.js b/src/components/directorybrowser/directorybrowser.js
index fc976068e7..65fe34df12 100644
--- a/src/components/directorybrowser/directorybrowser.js
+++ b/src/components/directorybrowser/directorybrowser.js
@@ -1,4 +1,4 @@
-define(['loading', 'dialogHelper', 'dom', 'listViewStyle', 'emby-input', 'paper-icon-button-light', 'css!./directorybrowser', 'formDialogStyle', 'emby-button'], function(loading, dialogHelper, dom) {
+define(['loading', 'dialogHelper', 'dom', 'globalize', 'listViewStyle', 'emby-input', 'paper-icon-button-light', 'css!./directorybrowser', 'formDialogStyle', 'emby-button'], function(loading, dialogHelper, dom, globalize) {
'use strict';
function getSystemInfo() {
@@ -53,7 +53,7 @@ define(['loading', 'dialogHelper', 'dom', 'listViewStyle', 'emby-input', 'paper-
}
if (!path) {
- html += getItem("lnkPath lnkDirectory", "", "Network", Globalize.translate("ButtonNetwork"));
+ html += getItem("lnkPath lnkDirectory", "", "Network", globalize.translate("ButtonNetwork"));
}
page.querySelector(".results").innerHTML = html;
@@ -89,16 +89,16 @@ define(['loading', 'dialogHelper', 'dom', 'listViewStyle', 'emby-input', 'paper-
var instruction = options.instruction ? options.instruction + "
" : "";
html += '
' + noLibDescription + '
'; html += '" + Globalize.translate("ValueContainer", profile.Container || allText) + "
"; + html += "" + globalize.translate("ValueContainer", profile.Container || allText) + "
"; if ("Video" == profile.Type) { - html += "" + Globalize.translate("ValueVideoCodec", profile.VideoCodec || allText) + "
"; - html += "" + Globalize.translate("ValueAudioCodec", profile.AudioCodec || allText) + "
"; + html += "" + globalize.translate("ValueVideoCodec", profile.VideoCodec || allText) + "
"; + html += "" + globalize.translate("ValueAudioCodec", profile.AudioCodec || allText) + "
"; } else { if ("Audio" == profile.Type) { - html += "" + Globalize.translate("ValueCodec", profile.AudioCodec || allText) + "
"; + html += "" + globalize.translate("ValueCodec", profile.AudioCodec || allText) + "
"; } } @@ -319,14 +319,14 @@ define(["jQuery", "loading", "fnchecked", "emby-select", "emby-button", "emby-in html += "Protocol: " + (profile.Protocol || "Http") + "
"; - html += "" + Globalize.translate("ValueContainer", profile.Container || allText) + "
"; + html += "" + globalize.translate("ValueContainer", profile.Container || allText) + "
"; if ("Video" == profile.Type) { - html += "" + Globalize.translate("ValueVideoCodec", profile.VideoCodec || allText) + "
"; - html += "" + Globalize.translate("ValueAudioCodec", profile.AudioCodec || allText) + "
"; + html += "" + globalize.translate("ValueVideoCodec", profile.VideoCodec || allText) + "
"; + html += "" + globalize.translate("ValueAudioCodec", profile.AudioCodec || allText) + "
"; } else { if ("Audio" == profile.Type) { - html += "" + Globalize.translate("ValueCodec", profile.AudioCodec || allText) + "
"; + html += "" + globalize.translate("ValueCodec", profile.AudioCodec || allText) + "
"; } } @@ -404,11 +404,11 @@ define(["jQuery", "loading", "fnchecked", "emby-select", "emby-button", "emby-in html += "" + Globalize.translate("ValueContainer", profile.Container || allText) + "
"; + html += "" + globalize.translate("ValueContainer", profile.Container || allText) + "
"; if (profile.Conditions && profile.Conditions.length) { html += ""; - html += Globalize.translate("ValueConditions", profile.Conditions.map(function (c) { + html += globalize.translate("ValueConditions", profile.Conditions.map(function (c) { return c.Property; }).join(", ")); html += "
"; @@ -476,11 +476,11 @@ define(["jQuery", "loading", "fnchecked", "emby-select", "emby-button", "emby-in html += "