diff --git a/src/scripts/dashboardpage.js b/src/scripts/dashboardpage.js
index c1d68861f8..e16d540ce6 100644
--- a/src/scripts/dashboardpage.js
+++ b/src/scripts/dashboardpage.js
@@ -61,16 +61,11 @@ define(["datetime", "events", "itemHelper", "serverNotifications", "dom", "globa
if (session.TranscodingInfo && session.TranscodingInfo.TranscodeReasons && session.TranscodingInfo.TranscodeReasons.length) {
text.push("
");
text.push(globalize.translate("sharedcomponents#LabelReasonForTranscoding"));
- showTranscodeReasons = true;
+ session.TranscodingInfo.TranscodeReasons.forEach(function (transcodeReason) {
+ text.push(globalize.translate("sharedcomponents#" + transcodeReason));
+ });
}
}
-
- if (showTranscodeReasons) {
- session.TranscodingInfo.TranscodeReasons.forEach(function (t__e) {
- text.push(globalize.translate("sharedcomponents#" + t__e));
- });
- }
-
alert({
text: text.join("
"),
title: title
diff --git a/src/scripts/plugincatalogpage.js b/src/scripts/plugincatalogpage.js
index 4e9418c673..83fc5290fe 100644
--- a/src/scripts/plugincatalogpage.js
+++ b/src/scripts/plugincatalogpage.js
@@ -21,8 +21,8 @@ define(["loading", "libraryMenu", "globalize", "cardStyle", "emby-linkbutton", "
}
function getHeaderText(category) {
- category.replace(" ", "").replace(" ", "");
-
+ category = category.replace(" ", "");
+
if ("Channel" === category) {
category = "Channels";
} else if ("Theme" === category) {