mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add latest translations
This commit is contained in:
parent
55bfb651b6
commit
861df73b9b
71 changed files with 452 additions and 309 deletions
|
@ -33,7 +33,6 @@
|
|||
items: result.Items,
|
||||
shape: "portrait",
|
||||
context: 'channels',
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
centerText: true
|
||||
});
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
items: result.Items,
|
||||
shape: "square",
|
||||
context: 'channels',
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
centerText: true
|
||||
});
|
||||
|
|
|
@ -406,7 +406,7 @@
|
|||
return html;
|
||||
},
|
||||
|
||||
systemUpdateTaskName: "Check for application updates",
|
||||
systemUpdateTaskKey: "SystemUpdateTask",
|
||||
|
||||
renderRunningTasks: function (page, tasks) {
|
||||
|
||||
|
@ -418,7 +418,7 @@
|
|||
|
||||
if (tasks.filter(function (t) {
|
||||
|
||||
return t.Name == DashboardPage.systemUpdateTaskName;
|
||||
return t.Key == DashboardPage.systemUpdateTaskKey;
|
||||
|
||||
}).length) {
|
||||
|
||||
|
@ -617,8 +617,8 @@
|
|||
|
||||
var task = tasks.filter(function (t) {
|
||||
|
||||
return t.Name == DashboardPage.systemUpdateTaskName;
|
||||
});
|
||||
return t.Key == DashboardPage.systemUpdateTaskKey;
|
||||
})[0];
|
||||
|
||||
ApiClient.startScheduledTask(task.Id).done(function () {
|
||||
|
||||
|
|
|
@ -241,8 +241,8 @@
|
|||
$('#txtTranscodingVideoCodec', popup).val(transcodingProfile.VideoCodec || '');
|
||||
|
||||
$('#txtTranscodingVideoProfile', popup).val(transcodingProfile.VideoProfile || '');
|
||||
$('#chkEnableMpegtsM2TsMode', popup).checked(transcodingProfile.EnableMpegtsM2TsMode).checkboxradio('refresh');
|
||||
$('#chkEstimateContentLength', popup).checked(transcodingProfile.EstimateContentLength).checkboxradio('refresh');
|
||||
$('#chkEnableMpegtsM2TsMode', popup).checked(transcodingProfile.EnableMpegtsM2TsMode || false).checkboxradio('refresh');
|
||||
$('#chkEstimateContentLength', popup).checked(transcodingProfile.EstimateContentLength || false).checkboxradio('refresh');
|
||||
$('#chkReportByteRangeRequests', popup).checked(transcodingProfile.TranscodeSeekInfo == 'Bytes').checkboxradio('refresh');
|
||||
|
||||
$('.radioTabButton:first', popup).checked(true).checkboxradio('refresh').trigger('change');
|
||||
|
@ -328,6 +328,13 @@
|
|||
var index = this.getAttribute('data-profileindex');
|
||||
deleteContainerProfile(page, index);
|
||||
});
|
||||
|
||||
$('.lnkEditSubProfile', elem).on('click', function () {
|
||||
|
||||
var index = parseInt(this.getAttribute('data-profileindex'));
|
||||
|
||||
editContainerProfile(page, currentProfile.ContainerProfiles[index]);
|
||||
});
|
||||
}
|
||||
|
||||
function deleteContainerProfile(page, index) {
|
||||
|
@ -337,6 +344,35 @@
|
|||
renderContainerProfiles(page, currentProfile.ContainerProfiles);
|
||||
|
||||
}
|
||||
|
||||
function editContainerProfile(page, containerProfile) {
|
||||
|
||||
isSubProfileNew = containerProfile == null;
|
||||
containerProfile = containerProfile || {};
|
||||
currentSubProfile = containerProfile;
|
||||
|
||||
var popup = $('#containerProfilePopup', page).popup('open');
|
||||
|
||||
$('#selectContainerProfileType', popup).val(containerProfile.Type || 'Video').selectmenu('refresh').trigger('change');
|
||||
$('#txtContainerProfileContainer', popup).val(containerProfile.Container || '');
|
||||
}
|
||||
|
||||
function saveContainerProfile(page) {
|
||||
|
||||
currentSubProfile.Type = $('#selectContainerProfileType', page).val();
|
||||
currentSubProfile.Container = $('#txtContainerProfileContainer', page).val();
|
||||
|
||||
if (isSubProfileNew) {
|
||||
|
||||
currentProfile.ContainerProfiles.push(currentSubProfile);
|
||||
}
|
||||
|
||||
renderSubProfiles(page, currentProfile);
|
||||
|
||||
currentSubProfile = null;
|
||||
|
||||
$('#containerProfilePopup', page).popup('close');
|
||||
}
|
||||
|
||||
function renderCodecProfiles(page, profiles) {
|
||||
|
||||
|
@ -388,6 +424,13 @@
|
|||
var index = this.getAttribute('data-profileindex');
|
||||
deleteCodecProfile(page, index);
|
||||
});
|
||||
|
||||
$('.lnkEditSubProfile', elem).on('click', function () {
|
||||
|
||||
var index = parseInt(this.getAttribute('data-profileindex'));
|
||||
|
||||
editCodecProfile(page, currentProfile.CodecProfiles[index]);
|
||||
});
|
||||
}
|
||||
|
||||
function deleteCodecProfile(page, index) {
|
||||
|
@ -398,6 +441,35 @@
|
|||
|
||||
}
|
||||
|
||||
function editCodecProfile(page, codecProfile) {
|
||||
|
||||
isSubProfileNew = codecProfile == null;
|
||||
codecProfile = codecProfile || {};
|
||||
currentSubProfile = codecProfile;
|
||||
|
||||
var popup = $('#codecProfilePopup', page).popup('open');
|
||||
|
||||
$('#selectCodecProfileType', popup).val(codecProfile.Type || 'Video').selectmenu('refresh').trigger('change');
|
||||
$('#txtCodecProfileCodec', popup).val(codecProfile.Codec || '');
|
||||
}
|
||||
|
||||
function saveCodecProfile(page) {
|
||||
|
||||
currentSubProfile.Type = $('#selectCodecProfileType', page).val();
|
||||
currentSubProfile.Codec = $('#txtCodecProfileCodec', page).val();
|
||||
|
||||
if (isSubProfileNew) {
|
||||
|
||||
currentProfile.CodecProfiles.push(currentSubProfile);
|
||||
}
|
||||
|
||||
renderSubProfiles(page, currentProfile);
|
||||
|
||||
currentSubProfile = null;
|
||||
|
||||
$('#codecProfilePopup', page).popup('close');
|
||||
}
|
||||
|
||||
function renderResponseProfiles(page, profiles) {
|
||||
|
||||
var html = '';
|
||||
|
@ -587,6 +659,18 @@
|
|||
editTranscodingProfile(page);
|
||||
|
||||
});
|
||||
|
||||
$('.btnAddContainerProfile', page).on('click', function () {
|
||||
|
||||
editContainerProfile(page);
|
||||
|
||||
});
|
||||
|
||||
$('.btnAddCodecProfile', page).on('click', function () {
|
||||
|
||||
editCodecProfile(page);
|
||||
|
||||
});
|
||||
|
||||
}).on('pageshow', "#dlnaProfilePage", function () {
|
||||
|
||||
|
@ -635,6 +719,25 @@
|
|||
|
||||
return false;
|
||||
|
||||
},
|
||||
|
||||
onContainerProfileFormSubmit: function() {
|
||||
var form = this;
|
||||
var page = $(form).parents('.page');
|
||||
|
||||
saveContainerProfile(page);
|
||||
|
||||
return false;
|
||||
|
||||
},
|
||||
|
||||
onCodecProfileFormSubmit: function() {
|
||||
var form = this;
|
||||
var page = $(form).parents('.page');
|
||||
|
||||
saveCodecProfile(page);
|
||||
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
|
||||
html += LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: true,
|
||||
shape: "backdrop",
|
||||
showTitle: true,
|
||||
showParentTitle: true,
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
items: result.Items,
|
||||
shape: "auto",
|
||||
context: 'games',
|
||||
useAverageAspectRatio: false,
|
||||
showTitle: true,
|
||||
showParentTitle: true,
|
||||
centerText: true
|
||||
|
|
|
@ -10,14 +10,14 @@
|
|||
SortOrder: "Descending",
|
||||
MediaTypes: "Game",
|
||||
Limit: 10,
|
||||
Recursive: true
|
||||
Recursive: true,
|
||||
Fields: "ItemCounts,AudioInfo,PrimaryImageAspectRatio"
|
||||
};
|
||||
|
||||
ApiClient.getItems(Dashboard.getCurrentUserId(), options).done(function (result) {
|
||||
|
||||
$('#recentlyAddedItems', page).html(LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: false,
|
||||
transparent: true,
|
||||
borderless: true
|
||||
}));
|
||||
|
@ -31,7 +31,8 @@
|
|||
MediaTypes: "Game",
|
||||
Limit: 10,
|
||||
Recursive: true,
|
||||
Filters: "IsPlayed"
|
||||
Filters: "IsPlayed",
|
||||
Fields: "ItemCounts,AudioInfo,PrimaryImageAspectRatio"
|
||||
};
|
||||
|
||||
ApiClient.getItems(Dashboard.getCurrentUserId(), options).done(function (result) {
|
||||
|
@ -44,7 +45,6 @@
|
|||
|
||||
$('#recentlyPlayedItems', page).html(LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: false,
|
||||
transparent: true,
|
||||
borderless: true
|
||||
}));
|
||||
|
|
|
@ -436,7 +436,6 @@
|
|||
items: result.Items,
|
||||
shape: "portrait",
|
||||
context: 'movies',
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
centerText: true
|
||||
});
|
||||
|
@ -446,7 +445,6 @@
|
|||
|
||||
html += LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: true,
|
||||
shape: "backdrop",
|
||||
showTitle: true,
|
||||
showParentTitle: true,
|
||||
|
@ -470,7 +468,6 @@
|
|||
items: result.Items,
|
||||
shape: "square",
|
||||
context: 'music',
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
showParentTitle: true
|
||||
});
|
||||
|
@ -481,8 +478,8 @@
|
|||
html = LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
shape: "square",
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true
|
||||
showTitle: true,
|
||||
centerText: true
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -438,7 +438,6 @@
|
|||
|
||||
var html = LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: true,
|
||||
shape: item.Type == "MusicAlbum" ? "portrait" : "square"
|
||||
});
|
||||
|
||||
|
@ -546,7 +545,6 @@
|
|||
|
||||
var html = LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: item.MediaType != "Game",
|
||||
shape: item.Type == "MusicAlbum" ? "square" : "portrait",
|
||||
showParentTitle: item.Type == "MusicAlbum",
|
||||
centerText: item.Type != "MusicAlbum",
|
||||
|
@ -680,7 +678,6 @@
|
|||
html = LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
shape: "portrait",
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
centerText: true
|
||||
});
|
||||
|
@ -689,7 +686,6 @@
|
|||
html = LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
shape: "smallBackdrop",
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
displayAsSpecial: item.Type == "Season" && item.IndexNumber
|
||||
});
|
||||
|
@ -699,7 +695,6 @@
|
|||
items: result.Items,
|
||||
shape: "auto",
|
||||
context: 'games',
|
||||
useAverageAspectRatio: false,
|
||||
showTitle: true,
|
||||
centerText: true
|
||||
});
|
||||
|
@ -803,7 +798,6 @@
|
|||
html += LibraryBrowser.getPosterViewHtml({
|
||||
items: items,
|
||||
shape: shape,
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
centerText: true
|
||||
});
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
html = LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
shape: "smallBackdrop",
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
centerText: true,
|
||||
preferBackdrop: true
|
||||
|
@ -45,7 +44,6 @@
|
|||
html = LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
shape: "portrait",
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
centerText: true
|
||||
});
|
||||
|
|
|
@ -450,7 +450,7 @@
|
|||
|
||||
var item = items[i];
|
||||
|
||||
primaryImageAspectRatio = options.useAverageAspectRatio ? LibraryBrowser.getAveragePrimaryImageAspectRatio([item]) : null;
|
||||
primaryImageAspectRatio = LibraryBrowser.getAveragePrimaryImageAspectRatio([item]);
|
||||
|
||||
var futureDateText;
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
return LibraryBrowser.getPosterViewHtml({
|
||||
items: channels,
|
||||
useAverageAspectRatio: true,
|
||||
shape: "smallBackdrop",
|
||||
centerText: true
|
||||
});
|
||||
|
|
|
@ -230,7 +230,7 @@
|
|||
{ name: "Photos", value: "photos" },
|
||||
{ name: "Trailers", value: "trailers" },
|
||||
{ name: "Adult videos", value: "adultvideos" },
|
||||
{ name: "Mixed content", value: "mixed" }
|
||||
{ name: "Mixed movies & tv", value: "mixed" }
|
||||
];
|
||||
|
||||
},
|
||||
|
|
|
@ -228,7 +228,7 @@
|
|||
}
|
||||
|
||||
if (!videoStream) {
|
||||
throw new Error('Null videoStream');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (mediaSource.VideoType != "VideoFile" || mediaSource.LocationType != "FileSystem") {
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
items: result.Items,
|
||||
shape: "portrait",
|
||||
context: 'movies',
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
centerText: true
|
||||
});
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
items: result.Items,
|
||||
shape: "portrait",
|
||||
context: 'movies',
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
showItemCounts: true,
|
||||
coverImage: true
|
||||
|
|
|
@ -54,7 +54,6 @@
|
|||
items: result.Items,
|
||||
shape: "portrait",
|
||||
context: 'movies',
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
centerText: true,
|
||||
selectionPanel: true
|
||||
|
@ -66,7 +65,6 @@
|
|||
items: result.Items,
|
||||
shape: "portrait",
|
||||
context: 'movies',
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
timeline: true,
|
||||
centerText: true,
|
||||
|
|
|
@ -20,8 +20,7 @@
|
|||
ApiClient.getItems(Dashboard.getCurrentUserId(), options).done(function (result) {
|
||||
|
||||
$('#recentlyAddedItems', page).html(LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: true
|
||||
items: result.Items
|
||||
|
||||
})).createPosterItemMenus();
|
||||
});
|
||||
|
@ -47,8 +46,7 @@
|
|||
}
|
||||
|
||||
$('#trailerItems', page).html(LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: true
|
||||
items: result.Items
|
||||
|
||||
})).createPosterItemMenus();
|
||||
|
||||
|
|
|
@ -28,8 +28,7 @@
|
|||
|
||||
html += '<div>';
|
||||
html += LibraryBrowser.getPosterViewHtml({
|
||||
items: recommendation.Items,
|
||||
useAverageAspectRatio: true
|
||||
items: recommendation.Items
|
||||
});
|
||||
html += '</div>';
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
items: result.Items,
|
||||
shape: "portrait",
|
||||
context: 'movies',
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
centerText: true
|
||||
});
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
items: result.Items,
|
||||
shape: "square",
|
||||
context: 'music',
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
showParentTitle: true
|
||||
});
|
||||
|
@ -44,7 +43,6 @@
|
|||
items: result.Items,
|
||||
shape: "square",
|
||||
context: 'music',
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
showParentTitle: true,
|
||||
timeline: true
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
$('#recentlyAddedAlbums', page).html(LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: true,
|
||||
showUnplayedIndicator: false,
|
||||
shape: "square",
|
||||
showTitle: true,
|
||||
|
@ -43,7 +42,6 @@
|
|||
|
||||
$('#recentlyAddedSongs', page).html(LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: true,
|
||||
showUnplayedIndicator: false,
|
||||
shape: "square",
|
||||
showTitle: true,
|
||||
|
@ -73,7 +71,6 @@
|
|||
|
||||
$('#recentlyPlayedSongs', page).html(LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: true,
|
||||
showUnplayedIndicator: false,
|
||||
shape: "square",
|
||||
showTitle: true,
|
||||
|
@ -103,7 +100,6 @@
|
|||
|
||||
$('#topPlayedSongs', page).html(LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: true,
|
||||
showUnplayedIndicator: false,
|
||||
shape: "square",
|
||||
showTitle: true,
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
items: result.Items,
|
||||
shape: "square",
|
||||
context: 'music',
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
centerText: true
|
||||
});
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
|
||||
html += LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: true,
|
||||
shape: "backdrop",
|
||||
showTitle: false,
|
||||
overlayText: false,
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
$('#latestEpisodes', page).html(LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: true,
|
||||
shape: "backdrop",
|
||||
showTitle: true,
|
||||
showParentTitle: true,
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
items: result.Items,
|
||||
shape: "portrait",
|
||||
context: 'tv',
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
showItemCounts: true,
|
||||
coverImage: true
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
$('#resumableItems', page).html(LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: true,
|
||||
shape: "backdrop",
|
||||
showTitle: true,
|
||||
showParentTitle: true,
|
||||
|
@ -57,7 +56,6 @@
|
|||
|
||||
$('#nextUpItems', page).html(LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: true,
|
||||
shape: "backdrop",
|
||||
showTitle: true,
|
||||
showParentTitle: true,
|
||||
|
|
|
@ -55,7 +55,6 @@
|
|||
items: result.Items,
|
||||
shape: "portrait",
|
||||
context: 'tv',
|
||||
useAverageAspectRatio: true,
|
||||
showTitle: true,
|
||||
centerText: true
|
||||
});
|
||||
|
@ -67,7 +66,6 @@
|
|||
items: result.Items,
|
||||
shape: "portrait",
|
||||
context: 'tv',
|
||||
useAverageAspectRatio: true,
|
||||
timeline: true,
|
||||
showTitle: true
|
||||
});
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
|
||||
html += LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: true,
|
||||
shape: "backdrop",
|
||||
showTitle: false,
|
||||
overlayText: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue