1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update translations

This commit is contained in:
Luke Pulverenti 2014-07-11 00:27:46 -04:00
parent 6124369679
commit 5f578574d7
56 changed files with 291 additions and 456 deletions

View file

@ -148,7 +148,7 @@
populateHistory(pkg, page);
if (pkg.totalRatings > 0) populateReviews(pkg.id, page);
Dashboard.setPageTitle(pkg.name);
$('.pluginName', page).html(pkg.name);
if (pkg.targetSystem == 'Server') {
$("#btnInstallDiv", page).show();

View file

@ -1,45 +0,0 @@
(function ($, document, window) {
var brandingConfigKey = "branding";
function loadPage(page, config) {
$('#txtLoginDisclaimer', page).val(config.LoginDisclaimer || '');
Dashboard.hideLoadingMsg();
}
$(document).on('pageshow', "#dashboardBrandingPage", function () {
Dashboard.showLoadingMsg();
var page = this;
ApiClient.getNamedConfiguration(brandingConfigKey).done(function (config) {
loadPage(page, config);
});
});
window.BrandingPage = {
onSubmit: function () {
Dashboard.showLoadingMsg();
var form = this;
ApiClient.getNamedConfiguration(brandingConfigKey).done(function (config) {
config.LoginDisclaimer = $('#txtLoginDisclaimer', form).val();
ApiClient.updateNamedConfiguration(brandingConfigKey, config).done(Dashboard.processServerConfigurationUpdateResult);
});
// Disable default form submission
return false;
}
};
})(jQuery, document, window);

View file

@ -1,5 +1,7 @@
(function ($, document, window) {
var brandingConfigKey = "branding";
function loadPage(page, config, languageOptions) {
$('#txtServerName', page).val(config.ServerName || '');
@ -29,6 +31,10 @@
});
ApiClient.getNamedConfiguration(brandingConfigKey).done(function (config) {
$('#txtLoginDisclaimer', page).val(config.LoginDisclaimer || '');
});
});
window.DashboardGeneralPage = {
@ -43,7 +49,16 @@
config.ServerName = $('#txtServerName', form).val();
config.UICulture = $('#selectLocalizationLanguage', form).val();
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
ApiClient.updateServerConfiguration(config).done(function() {
ApiClient.getNamedConfiguration(brandingConfigKey).done(function (brandingConfig) {
brandingConfig.LoginDisclaimer = $('#txtLoginDisclaimer', form).val();
ApiClient.updateNamedConfiguration(brandingConfigKey, brandingConfig).done(Dashboard.processServerConfigurationUpdateResult);
});
});
});
// Disable default form submission

View file

@ -1,37 +0,0 @@
(function ($, document, window) {
function loadPage(page, systemInfo) {
$('#cachePath', page).html(systemInfo.CachePath);
$('#logPath', page).html(systemInfo.LogPath);
$('#imagesByNamePath', page).html(systemInfo.ItemsByNamePath);
$('#transcodingTemporaryPath', page).html(systemInfo.TranscodingTempPath);
$('#metadataPath', page).html(systemInfo.InternalMetadataPath);
if (systemInfo.WanAddress) {
var externalUrl = systemInfo.WanAddress + "/mediabrowser";
$('.externalUrl', page).html('Remote access: <a href="' + externalUrl + '" target="_blank">' + externalUrl + '</a>').show().trigger('create');
} else {
$('.externalUrl', page).hide();
}
Dashboard.hideLoadingMsg();
}
$(document).on('pageshow', "#dashboardInfoPage", function () {
Dashboard.showLoadingMsg();
var page = this;
ApiClient.getSystemInfo().done(function (systemInfo) {
loadPage(page, systemInfo);
});
});
})(jQuery, document, window);

View file

@ -34,6 +34,24 @@
DashboardPage.sessionUpdateTimer = setInterval(DashboardPage.refreshSessionsLocally, 60000);
},
renderPaths: function (page, systemInfo) {
$('#cachePath', page).html(systemInfo.CachePath);
$('#logPath', page).html(systemInfo.LogPath);
$('#imagesByNamePath', page).html(systemInfo.ItemsByNamePath);
$('#transcodingTemporaryPath', page).html(systemInfo.TranscodingTempPath);
$('#metadataPath', page).html(systemInfo.InternalMetadataPath);
if (systemInfo.WanAddress) {
var externalUrl = systemInfo.WanAddress + "/mediabrowser";
$('.externalUrl', page).html('Remote access: <a href="' + externalUrl + '" target="_blank">' + externalUrl + '</a>').show().trigger('create');
} else {
$('.externalUrl', page).hide();
}
},
refreshSessionsLocally: function () {
var list = DashboardPage.sessionsList;
@ -78,6 +96,7 @@
$('#btnManualUpdateContainer', page).show();
}
DashboardPage.renderPaths(page, systemInfo);
DashboardPage.renderHasPendingRestart(page, systemInfo.HasPendingRestart);
});
},
@ -753,7 +772,7 @@
imgUrl = "css/images/supporter/nonsupporterbadge.png";
text = "Please support Media Browser.";
$('.supporterIconContainer', page).html('<a class="imageLink supporterIcon" href="supporter.html" title="' + text + '"><img src="' + imgUrl + '" style="height:32px;vertical-align: middle; margin-right: .5em;" /><span style="position:relative;top:2px;text-decoration:none;">' + text + '</span></a>');
}
},

View file

@ -53,7 +53,8 @@
showParentTitle: true,
overlayText: screenWidth >= 600,
selectionPanel: true,
lazy: true
lazy: true,
context: 'tv'
});
}

View file

@ -129,7 +129,7 @@
var options = {
Limit: screenWidth >= 2400 ? 30 : (screenWidth >= 1920 ? 15 : (screenWidth >= 1440 ? 10 : (screenWidth >= 800 ? 9 : 8))),
Limit: screenWidth >= 2400 ? 30 : (screenWidth >= 1920 ? 15 : (screenWidth >= 1440 ? 12 : (screenWidth >= 800 ? 9 : 8))),
Fields: "PrimaryImageAspectRatio",
IsPlayed: false,
IsFolder: false
@ -154,7 +154,6 @@
html += '</div>';
}
$(elem).html(html).trigger('create').createPosterItemMenus();
});
}

View file

@ -591,7 +591,7 @@
var options = {
userId: Dashboard.getCurrentUserId(),
limit: item.Type == "MusicAlbum" ? 4 : 6,
limit: item.Type == "MusicAlbum" ? 4 : 5,
fields: "PrimaryImageAspectRatio,UserData"
};
@ -872,7 +872,7 @@
html += '<span>' + type.name + '</span>';
if (user.Configuration.IsAdministrator) {
html += '<a href="editcollectionitems.html?id=' + currentItem.Id + '" data-role="button" data-icon="edit" data-iconpos="notext" data-inline="true" style="position: absolute; right: 0; top: 6px; margin-top: 0; margin-bottom: 0;">Edit</a>';
html += '<a class="detailSectionHeaderButton" href="editcollectionitems.html?id=' + currentItem.Id + '" data-role="button" data-icon="edit" data-iconpos="notext" data-inline="true">Edit</a>';
}
html += '</div>';

View file

@ -7,7 +7,7 @@
MediaLibraryPage.reloadLibrary(page);
},
reloadLibrary: function (page) {
Dashboard.showLoadingMsg();
@ -327,6 +327,24 @@
$(document).on('pageshow', ".mediaLibraryPage", MediaLibraryPage.onPageShow);
var WizardLibraryPage = {
next: function () {
Dashboard.showLoadingMsg();
ApiClient.ajax({
type: "POST",
url: ApiClient.getUrl('System/Configuration/MetadataPlugins/Autoset')
}).done(function () {
Dashboard.hideLoadingMsg();
Dashboard.navigate('wizardsettings.html');
});
}
};
(function ($, document, window) {
function pollTasks(page) {

View file

@ -12,7 +12,7 @@
var options = {
IncludeItemTypes: "Movie",
Limit: screenWidth >= 1920 ? 32 : (screenWidth >= 1440 ? 32 : (screenWidth >= 800 ? 28 : 18)),
Limit: screenWidth >= 1920 ? 30 : (screenWidth >= 1440 ? 30 : (screenWidth >= 800 ? 28 : 18)),
Fields: "PrimaryImageAspectRatio",
ParentId: parentId,
IsPlayed: false

View file

@ -50,7 +50,7 @@
SortOrder: "Descending",
IncludeItemTypes: "Movie",
Filters: "IsResumable",
Limit: screenWidth >= 1920 ? 4 : (screenWidth >= 1440 ? 4 : 3),
Limit: screenWidth >= 1920 ? 6 : (screenWidth >= 1440 ? 6 : 3),
Recursive: true,
Fields: "PrimaryImageAspectRatio",
CollapseBoxSetItems: false,
@ -81,7 +81,7 @@
userId: Dashboard.getCurrentUserId(),
categoryLimit: screenWidth >= 1200 ? 4 : 3,
itemLimit: screenWidth >= 1920 ? 8 : (screenWidth >= 1440 ? 8 : 7),
itemLimit: screenWidth >= 1920 ? 6 : (screenWidth >= 1440 ? 6 : 7),
Fields: "PrimaryImageAspectRatio"
});

View file

@ -10,28 +10,8 @@
var parentId = LibraryMenu.getTopParentId();
var options = {
IncludeItemTypes: "MusicAlbum",
Limit: screenWidth >= 1920 ? 8 : (screenWidth >= 1440 ? 8 : 6),
Fields: "PrimaryImageAspectRatio",
ParentId: parentId
};
ApiClient.getJSON(ApiClient.getUrl('Users/' + userId + '/Items/Latest', options)).done(function (items) {
$('#recentlyAddedAlbums', page).html(LibraryBrowser.getPosterViewHtml({
items: items,
showUnplayedIndicator: false,
showChildCountIndicator: true,
shape: "square",
showTitle: true,
showParentTitle: true
})).createPosterItemMenus();
});
options = {
IncludeItemTypes: "Audio",
Limit: screenWidth >= 1920 ? 8 : (screenWidth >= 1440 ? 8 : 6),
Limit: screenWidth >= 1920 ? 14 : (screenWidth >= 1440 ? 14 : 12),
Fields: "PrimaryImageAspectRatio",
ParentId: parentId
};
@ -54,7 +34,7 @@
SortBy: "DatePlayed",
SortOrder: "Descending",
IncludeItemTypes: "Audio",
Limit: screenWidth >= 1920 ? 8 : (screenWidth >= 1440 ? 8 : 6),
Limit: screenWidth >= 1920 ? 7 : (screenWidth >= 1440 ? 7 : 6),
Recursive: true,
Fields: "PrimaryImageAspectRatio,AudioInfo",
Filters: "IsPlayed",
@ -84,7 +64,7 @@
SortBy: "PlayCount",
SortOrder: "Descending",
IncludeItemTypes: "Audio",
Limit: screenWidth >= 1920 ? 16 : (screenWidth >= 1440 ? 16 : 12),
Limit: screenWidth >= 1920 ? 14 : (screenWidth >= 1440 ? 14 : 12),
Recursive: true,
Fields: "PrimaryImageAspectRatio,AudioInfo",
Filters: "IsPlayed",

View file

@ -0,0 +1 @@


View file

@ -657,7 +657,7 @@ var Dashboard = {
var pageElem = page[0];
return [{
name: "Dashboard",
name: "Server",
href: "dashboard.html",
selected: page.hasClass("dashboardHomePage")
}, {
@ -677,11 +677,6 @@ var Dashboard = {
name: "Auto-Organize",
href: "autoorganizelog.html",
selected: page.hasClass("organizePage")
}, {
name: "Channels",
divider: true,
href: "channelsettings.html",
selected: page.hasClass("channelSettingsPage")
}, {
name: "DLNA",
href: "dlnasettings.html",

View file

@ -11,27 +11,29 @@
};
query.ParentId = LibraryMenu.getTopParentId();
var context = '';
if (query.ParentId) {
$('.scopedLibraryViewNav', page).show();
$('.globalNav', page).hide();
$('.homeEhsContent', page).css('text-align', 'left');
$('.ehsContent', page).css('text-align', 'left');
$('.scopedContent', page).show();
context = 'tv';
loadResume(page);
} else {
$('.scopedLibraryViewNav', page).hide();
$('.globalNav', page).show();
$('.homeEhsContent', page).css('text-align', 'center');
$('.ehsContent', page).css('text-align', 'center');
$('.scopedContent', page).hide();
}
loadNextUp(page);
loadNextUp(page, context || 'home-nextup');
}
function loadNextUp(page) {
function loadNextUp(page, context) {
var screenWidth = $(window).width();
@ -49,13 +51,13 @@
$('.scopedLibraryViewNav', page).show();
$('.globalNav', page).hide();
$('.ehsContent', page).css('text-align', 'left').removeClass('homeEhsContent');
$('.ehsContent', page).css('text-align', 'left');
$('.scopedContent', page).show();
} else {
$('.scopedLibraryViewNav', page).hide();
$('.globalNav', page).show();
$('.ehsContent', page).css('text-align', 'center').addClass('homeEhsContent');
$('.ehsContent', page).css('text-align', 'center');
$('.scopedContent', page).hide();
}
@ -73,7 +75,7 @@
showTitle: true,
showParentTitle: true,
overlayText: screenWidth >= 600,
context: 'home-nextup',
context: context,
lazy: true
})).trigger('create').createPosterItemMenus();
@ -93,7 +95,7 @@
SortOrder: "Descending",
IncludeItemTypes: "Episode",
Filters: "IsResumable",
Limit: screenWidth >= 1920 ? 5 : 4,
Limit: screenWidth >= 1920 ? 6 : 4,
Recursive: true,
Fields: "PrimaryImageAspectRatio,SeriesInfo,UserData",
ExcludeLocationTypes: "Virtual",
@ -116,7 +118,8 @@
showTitle: true,
showParentTitle: true,
overlayText: screenWidth >= 600,
lazy: true
lazy: true,
context: 'tv'
})).trigger('create').createPosterItemMenus();

View file

@ -34,7 +34,7 @@
updateFilterControls(page);
if (view == "Thumb") {
html = LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: "backdrop",
@ -42,7 +42,7 @@
context: 'tv',
lazy: true
});
$('.itemsContainer', page).removeClass('timelineItemsContainer');
}
else if (view == "Banner") {
@ -56,18 +56,6 @@
});
$('.itemsContainer', page).removeClass('timelineItemsContainer');
}
else if (view == "Poster") {
html = LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: "portrait",
context: 'tv',
showTitle: true,
centerText: true,
lazy: true
});
$('.itemsContainer', page).removeClass('timelineItemsContainer');
}
else if (view == "List") {
html = LibraryBrowser.getListViewHtml({
@ -77,18 +65,18 @@
});
$('.itemsContainer', page).removeClass('timelineItemsContainer');
}
else if (view == "Timeline") {
else {
// Poster
html = LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: "portrait",
context: 'tv',
timeline: true,
showTitle: true,
centerText: true,
lazy: true
});
$('.itemsContainer', page).addClass('timelineItemsContainer');
$('.itemsContainer', page).removeClass('timelineItemsContainer');
}
html += LibraryBrowser.getPagingHtml(query, result.TotalRecordCount);

View file

@ -13,6 +13,19 @@
query.ParentId = LibraryMenu.getTopParentId();
var context = '';
if (query.ParentId) {
$('.scopedLibraryViewNav', page).show();
$('.globalNav', page).hide();
context = 'tv';
} else {
$('.scopedLibraryViewNav', page).hide();
$('.globalNav', page).show();
}
ApiClient.getJSON(ApiClient.getUrl("Shows/Upcoming", query)).done(function (result) {
var items = result.Items;
@ -31,8 +44,8 @@
showPremiereDate: true,
showPremiereDateIndex: true,
preferThumb: true,
context: 'home-upcoming',
lazy: true
context: context || 'home-upcoming',
lazy: true,
})).trigger('create').createPosterItemMenus();
});

View file

@ -1,54 +0,0 @@
(function ($, document) {
function save(page) {
Dashboard.showLoadingMsg();
// After saving chapter task, now save server config
ApiClient.getServerConfiguration().done(function (config) {
config.EnableUPnP = $('#chkEnableUpnp', page).checked();
ApiClient.updateServerConfiguration(config).done(function (result) {
ApiClient.getNamedConfiguration("chapters").done(function (chapterConfig) {
chapterConfig.EnableMovieChapterImageExtraction = $('#chkMovies', page).checked();
ApiClient.updateNamedConfiguration("chapters", chapterConfig).done(function () {
Dashboard.hideLoadingMsg();
navigateToNextPage();
});
});
});
});
}
function navigateToNextPage() {
ApiClient.getSystemInfo().done(function (systemInfo) {
var os = systemInfo.OperatingSystem.toLowerCase();
if (os.indexOf('windows') != -1) {
Dashboard.navigate('wizardservice.html');
} else {
Dashboard.navigate('wizardfinish.html');
}
});
}
$(document).on('pageinit', "#wizardImageSettingsPage", function () {
var page = this;
$('#btnNextPage', page).on('click', function () {
save(page);
});
});
})(jQuery, document, window);

View file

@ -50,7 +50,7 @@
function navigateToNextPage() {
Dashboard.navigate('wizardimagesettings.html');
Dashboard.navigate('wizardservice.html');
}
$(document).on('pageshow', "#wizardSettingsPage", function () {