diff --git a/src/components/directorybrowser/directorybrowser.js b/src/components/directorybrowser/directorybrowser.js
index db53f0a39..1d5c23eb1 100644
--- a/src/components/directorybrowser/directorybrowser.js
+++ b/src/components/directorybrowser/directorybrowser.js
@@ -89,7 +89,7 @@ define(['loading', 'dialogHelper', 'dom', 'listViewStyle', 'emby-input', 'paper-
var instruction = options.instruction ? options.instruction + "
" : "";
html += '
" + Globalize.translate("ValueContainer").replace("{0}", profile.Container || allText) + "
"; + html += "" + Globalize.translate("ValueContainer", profile.Container || allText) + "
"; if ("Video" == profile.Type) { - html += "" + Globalize.translate("ValueVideoCodec").replace("{0}", profile.VideoCodec || allText) + "
"; - html += "" + Globalize.translate("ValueAudioCodec").replace("{0}", 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").replace("{0}", 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").replace("{0}", profile.Container || allText) + "
"; + html += "" + Globalize.translate("ValueContainer", profile.Container || allText) + "
"; if ("Video" == profile.Type) { - html += "" + Globalize.translate("ValueVideoCodec").replace("{0}", profile.VideoCodec || allText) + "
"; - html += "" + Globalize.translate("ValueAudioCodec").replace("{0}", 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").replace("{0}", 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").replace("{0}", profile.Container || allText) + "
"; + html += "" + Globalize.translate("ValueContainer", profile.Container || allText) + "
"; if (profile.Conditions && profile.Conditions.length) { html += ""; - html += Globalize.translate("ValueConditions").replace("{0}", 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 += "" + Globalize.translate("ValueCodec").replace("{0}", profile.Codec || allText) + "
"; + html += "" + Globalize.translate("ValueCodec", profile.Codec || allText) + "
"; if (profile.Conditions && profile.Conditions.length) { html += ""; - html += Globalize.translate("ValueConditions").replace("{0}", profile.Conditions.map(function (c) { + html += Globalize.translate("ValueConditions", profile.Conditions.map(function (c) { return c.Property; }).join(", ")); html += "
"; @@ -547,20 +547,20 @@ define(["jQuery", "loading", "fnchecked", "emby-select", "emby-button", "emby-in html += "" + Globalize.translate("ValueContainer").replace("{0}", profile.Container || allText) + "
"; + html += "" + Globalize.translate("ValueContainer", profile.Container || allText) + "
"; if ("Video" == profile.Type) { - html += "" + Globalize.translate("ValueVideoCodec").replace("{0}", profile.VideoCodec || allText) + "
"; - html += "" + Globalize.translate("ValueAudioCodec").replace("{0}", 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").replace("{0}", profile.AudioCodec || allText) + "
"; + html += "" + Globalize.translate("ValueCodec", profile.AudioCodec || allText) + "
"; } } if (profile.Conditions && profile.Conditions.length) { html += ""; - html += Globalize.translate("ValueConditions").replace("{0}", profile.Conditions.map(function (c) { + html += Globalize.translate("ValueConditions", profile.Conditions.map(function (c) { return c.Property; }).join(", ")); html += "
"; diff --git a/src/controllers/itemdetailpage.js b/src/controllers/itemdetailpage.js index 82569835c..835253ee1 100644 --- a/src/controllers/itemdetailpage.js +++ b/src/controllers/itemdetailpage.js @@ -591,7 +591,7 @@ define(["loading", "appRouter", "layoutManager", "connectionManager", "userSetti try { var birthday = datetime.parseISO8601Date(item.PremiereDate, true).toDateString(); itemBirthday.classList.remove("hide"); - itemBirthday.innerHTML = globalize.translate("BirthDateValue").replace("{0}", birthday); + itemBirthday.innerHTML = globalize.translate("BirthDateValue", birthday); } catch (err) { itemBirthday.classList.add("hide"); } @@ -605,7 +605,7 @@ define(["loading", "appRouter", "layoutManager", "connectionManager", "userSetti try { var deathday = datetime.parseISO8601Date(item.EndDate, true).toDateString(); itemDeathDate.classList.remove("hide"); - itemDeathDate.innerHTML = globalize.translate("DeathDateValue").replace("{0}", deathday); + itemDeathDate.innerHTML = globalize.translate("DeathDateValue", deathday); } catch (err) { itemDeathDate.classList.add("hide"); } @@ -618,7 +618,7 @@ define(["loading", "appRouter", "layoutManager", "connectionManager", "userSetti if ("Person" == item.Type && item.ProductionLocations && item.ProductionLocations.length) { var gmap = '' + item.ProductionLocations[0] + ""; itemBirthLocation.classList.remove("hide"); - itemBirthLocation.innerHTML = globalize.translate("BirthPlaceValue").replace("{0}", gmap); + itemBirthLocation.innerHTML = globalize.translate("BirthPlaceValue", gmap); } else { itemBirthLocation.classList.add("hide"); } diff --git a/src/controllers/movies/moviesrecommended.js b/src/controllers/movies/moviesrecommended.js index 7e19af4b9..98e087147 100644 --- a/src/controllers/movies/moviesrecommended.js +++ b/src/controllers/movies/moviesrecommended.js @@ -91,21 +91,21 @@ define(["events", "layoutManager", "inputManager", "userSettings", "libraryMenu" switch (recommendation.RecommendationType) { case "SimilarToRecentlyPlayed": - title = Globalize.translate("RecommendationBecauseYouWatched").replace("{0}", recommendation.BaselineItemName); + title = Globalize.translate("RecommendationBecauseYouWatched", recommendation.BaselineItemName); break; case "SimilarToLikedItem": - title = Globalize.translate("RecommendationBecauseYouLike").replace("{0}", recommendation.BaselineItemName); + title = Globalize.translate("RecommendationBecauseYouLike", recommendation.BaselineItemName); break; case "HasDirectorFromRecentlyPlayed": case "HasLikedDirector": - title = Globalize.translate("RecommendationDirectedBy").replace("{0}", recommendation.BaselineItemName); + title = Globalize.translate("RecommendationDirectedBy", recommendation.BaselineItemName); break; case "HasActorFromRecentlyPlayed": case "HasLikedActor": - title = Globalize.translate("RecommendationStarring").replace("{0}", recommendation.BaselineItemName); + title = Globalize.translate("RecommendationStarring", recommendation.BaselineItemName); break; }