mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update translations
This commit is contained in:
parent
59ba9520de
commit
fc9519999d
6 changed files with 393 additions and 357 deletions
|
@ -246,6 +246,21 @@
|
|||
background-position: center center;
|
||||
}
|
||||
|
||||
.iconCardImage {
|
||||
text-align: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.cardImage .fa {
|
||||
color: rgb(255, 255, 255);
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
font-size: 50px;
|
||||
margin: auto;
|
||||
top: 25%;
|
||||
}
|
||||
|
||||
.bannerCard {
|
||||
width: 100%;
|
||||
}
|
||||
|
|
|
@ -1116,54 +1116,52 @@
|
|||
squareSize = posterInfo.smallSquareSize;
|
||||
}
|
||||
|
||||
var dateText;
|
||||
|
||||
for (var i = 0, length = items.length; i < length; i++) {
|
||||
|
||||
var item = items[i];
|
||||
|
||||
dateText = null;
|
||||
|
||||
primaryImageAspectRatio = LibraryBrowser.getAveragePrimaryImageAspectRatio([item]);
|
||||
|
||||
if (options.showPremiereDateIndex) {
|
||||
|
||||
var futureDateText;
|
||||
|
||||
if (item.PremiereDate) {
|
||||
try {
|
||||
|
||||
futureDateText = LibraryBrowser.getFutureDateText(parseISO8601Date(item.PremiereDate, { toLocal: true }), true);
|
||||
dateText = LibraryBrowser.getFutureDateText(parseISO8601Date(item.PremiereDate, { toLocal: true }), true);
|
||||
|
||||
} catch (err) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
var val = futureDateText || Globalize.translate('HeaderUnknownDate');
|
||||
var newIndexValue = dateText || Globalize.translate('HeaderUnknownDate');
|
||||
|
||||
if (val != currentIndexValue) {
|
||||
if (newIndexValue != currentIndexValue) {
|
||||
|
||||
html += '<h2 class="timelineHeader detailSectionHeader" style="text-align:center;">' + val + '</h2>';
|
||||
currentIndexValue = val;
|
||||
html += '<h2 class="timelineHeader detailSectionHeader" style="text-align:center;">' + newIndexValue + '</h2>';
|
||||
currentIndexValue = newIndexValue;
|
||||
}
|
||||
}
|
||||
else if (options.showStartDateIndex) {
|
||||
|
||||
var futureDateText;
|
||||
|
||||
if (item.StartDate) {
|
||||
try {
|
||||
|
||||
futureDateText = LibraryBrowser.getFutureDateText(parseISO8601Date(item.StartDate, { toLocal: true }), true);
|
||||
dateText = LibraryBrowser.getFutureDateText(parseISO8601Date(item.StartDate, { toLocal: true }), true);
|
||||
|
||||
} catch (err) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
var val = futureDateText || Globalize.translate('HeaderUnknownDate');
|
||||
var newIndexValue = dateText || Globalize.translate('HeaderUnknownDate');
|
||||
|
||||
if (val != currentIndexValue) {
|
||||
if (newIndexValue != currentIndexValue) {
|
||||
|
||||
html += '<h2 class="timelineHeader detailSectionHeader" style="text-align:center;">' + val + '</h2>';
|
||||
currentIndexValue = val;
|
||||
html += '<h2 class="timelineHeader detailSectionHeader" style="text-align:center;">' + newIndexValue + '</h2>';
|
||||
currentIndexValue = newIndexValue;
|
||||
}
|
||||
} else if (options.timeline) {
|
||||
var year = item.ProductionYear || Globalize.translate('HeaderUnknownYear');
|
||||
|
@ -1175,7 +1173,17 @@
|
|||
}
|
||||
}
|
||||
|
||||
html += LibraryBrowser.getPosterViewItemHtml(item, i, options, primaryImageAspectRatio, thumbWidth, posterWidth, squareSize, bannerWidth);
|
||||
}
|
||||
|
||||
return html;
|
||||
},
|
||||
|
||||
getPosterViewItemHtml: function (item, index, options, primaryImageAspectRatio, thumbWidth, posterWidth, squareSize, bannerWidth) {
|
||||
|
||||
var html = '';
|
||||
var imgUrl = null;
|
||||
var icon;
|
||||
var background = null;
|
||||
var width = null;
|
||||
var height = null;
|
||||
|
@ -1346,32 +1354,32 @@
|
|||
} else if (item.MediaType == "Audio" || item.Type == "MusicAlbum" || item.Type == "MusicArtist") {
|
||||
|
||||
if (item.Name && options.showTitle) {
|
||||
imgUrl = 'css/images/items/list/audio.png';
|
||||
icon = 'fa-music';
|
||||
}
|
||||
background = defaultBackground;
|
||||
|
||||
} else if (item.Type == "Recording" || item.Type == "Program" || item.Type == "TvChannel") {
|
||||
|
||||
if (item.Name && options.showTitle) {
|
||||
imgUrl = 'css/images/items/list/collection.png';
|
||||
icon = 'fa-folder-open';
|
||||
}
|
||||
|
||||
background = defaultBackground;
|
||||
} else if (item.MediaType == "Video" || item.Type == "Season" || item.Type == "Series") {
|
||||
|
||||
if (item.Name && options.showTitle) {
|
||||
imgUrl = 'css/images/items/list/video.png';
|
||||
icon = 'fa-video-camera';
|
||||
}
|
||||
background = defaultBackground;
|
||||
} else if (item.Type == "Person") {
|
||||
|
||||
if (item.Name && options.showTitle) {
|
||||
imgUrl = 'css/images/items/list/person.png';
|
||||
icon = 'fa-user';
|
||||
}
|
||||
background = defaultBackground;
|
||||
} else {
|
||||
if (item.Name && options.showTitle) {
|
||||
imgUrl = 'css/images/items/list/collection.png';
|
||||
icon = 'fa-folder-open';
|
||||
}
|
||||
background = defaultBackground;
|
||||
}
|
||||
|
@ -1400,7 +1408,7 @@
|
|||
cssClass += ' bottomPaddedCard';
|
||||
}
|
||||
|
||||
var dataAttributes = LibraryBrowser.getItemDataAttributes(item, options, i);
|
||||
var dataAttributes = LibraryBrowser.getItemDataAttributes(item, options, index);
|
||||
|
||||
var defaultAction = options.defaultAction;
|
||||
if (defaultAction == 'play' || defaultAction == 'playallfromhere') {
|
||||
|
@ -1424,6 +1432,10 @@
|
|||
}
|
||||
|
||||
var imageCssClass = 'cardImage';
|
||||
|
||||
if (icon) {
|
||||
imageCssClass += " iconCardImage";
|
||||
}
|
||||
if (options.coverImage) {
|
||||
imageCssClass += " coveredCardImage";
|
||||
}
|
||||
|
@ -1455,7 +1467,11 @@
|
|||
}
|
||||
|
||||
html += '<a class="' + anchorCssClass + '" href="' + href + '"' + defaultActionAttribute + '>';
|
||||
html += '<div class="' + imageCssClass + '" style="' + style + '"' + dataSrc + '></div>';
|
||||
html += '<div class="' + imageCssClass + '" style="' + style + '"' + dataSrc + '>';
|
||||
if (icon) {
|
||||
html += '<i class="fa ' + icon + '"></i>';
|
||||
}
|
||||
html += '</div>';
|
||||
|
||||
html += '<div class="cardOverlayTarget"></div>';
|
||||
|
||||
|
@ -1511,8 +1527,6 @@
|
|||
// card
|
||||
html += "</div>";
|
||||
|
||||
}
|
||||
|
||||
return html;
|
||||
},
|
||||
|
||||
|
|
|
@ -317,9 +317,11 @@
|
|||
|
||||
html += Globalize.translate('ButtonHome');
|
||||
html += '</a>';
|
||||
}
|
||||
|
||||
html += '<a class="sidebarLink lnkMediaFolder" data-itemid="dashboard" data-rel="none" href="nowplaying.html"><span class="fa fa-tablet sidebarLinkIcon"></span>' + Globalize.translate('ButtonRemote') + '</a>';
|
||||
|
||||
html += '<div class="libraryMenuDivider"></div>';
|
||||
}
|
||||
|
||||
html += getViewsHtml();
|
||||
html += '</div>';
|
||||
|
|
|
@ -13,7 +13,9 @@
|
|||
|
||||
currentHtml += '<label for="' + id + '">' + i.Name + '</label>';
|
||||
|
||||
var isChecked = user.Configuration.ExcludeFoldersFromGrouping.indexOf(i.Id) == -1;
|
||||
var isChecked = (user.Configuration.ExcludeFoldersFromGrouping != null && user.Configuration.ExcludeFoldersFromGrouping.indexOf(i.Id) == -1) ||
|
||||
user.Configuration.GroupedFolders.indexOf(i.Id) != -1;
|
||||
|
||||
var checkedHtml = isChecked ? ' checked="checked"' : '';
|
||||
|
||||
currentHtml += '<input class="chkGroupFolder" data-folderid="' + i.Id + '" type="checkbox" id="' + id + '"' + checkedHtml + ' />';
|
||||
|
@ -209,7 +211,9 @@
|
|||
return i.getAttribute('data-folderid');
|
||||
});
|
||||
|
||||
user.Configuration.ExcludeFoldersFromGrouping = $(".chkGroupFolder:not(:checked)", page).get().map(function (i) {
|
||||
user.Configuration.ExcludeFoldersFromGrouping = null;
|
||||
|
||||
user.Configuration.GroupedFolders = $(".chkGroupFolder:checked", page).get().map(function (i) {
|
||||
|
||||
return i.getAttribute('data-folderid');
|
||||
});
|
||||
|
|
|
@ -615,12 +615,14 @@
|
|||
|
||||
function showIntro() {
|
||||
|
||||
if (store.getItem('remotecontrolswipedown') != '1') {
|
||||
var expected = '2';
|
||||
|
||||
if (store.getItem('remotecontrolswipedown') != expected) {
|
||||
Dashboard.alert({
|
||||
message: Globalize.translate('MessageSwipeDownOnRemoteControl'),
|
||||
title: Globalize.translate('HeaderAlert')
|
||||
});
|
||||
store.setItem('remotecontrolswipedown', '1');
|
||||
store.setItem('remotecontrolswipedown', expected);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1489,7 +1489,6 @@ var AppInfo = {};
|
|||
|
||||
if (isCordova) {
|
||||
AppInfo.enableBottomTabs = true;
|
||||
AppInfo.resetOnLibraryChange = true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -1499,7 +1498,7 @@ var AppInfo = {};
|
|||
}
|
||||
}
|
||||
|
||||
if (!AppInfo.hasLowImageBandwidth) {
|
||||
if (!AppInfo.hasLowImageBandwidth || !isCordova) {
|
||||
AppInfo.enableLatestChannelItems = true;
|
||||
AppInfo.enableStudioTabs = true;
|
||||
AppInfo.enablePeopleTabs = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue