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 2015-09-23 12:16:06 -04:00
parent b70aa4926c
commit e334a86a01
97 changed files with 2414 additions and 1218 deletions

View file

@ -59,7 +59,6 @@
totalRecordCount: result.TotalRecordCount,
viewButton: true,
showLimit: false,
addSelectionButton: true,
viewPanelClass: 'episodesViewPanel',
updatePageSizeSetting: false,
addLayoutButton: true,

View file

@ -303,12 +303,7 @@
if (context == 'tv') {
if (AppInfo.enableBottomTabs) {
$(page).addClass('noSecondaryNavPage');
}
else {
$(page).removeClass('noSecondaryNavPage');
}
$(page).removeClass('noSecondaryNavPage');
$('#tvShowsTabs', page).show();
LibraryMenu.setMenuButtonVisible(true);

View file

@ -121,6 +121,7 @@
},
enableFullPaperTabs: function () {
return true;
return AppInfo.isNativeApp;
},
@ -2633,7 +2634,7 @@
html += '</span>';
}
if (showControls || options.viewButton || options.sortButton || options.addLayoutButton || options.addSelectionButton || options.additionalButtonsHtml) {
if (showControls || options.viewButton || options.sortButton || options.addLayoutButton) {
html += '<div style="display:inline-block;margin-left:10px;">';
@ -2643,12 +2644,6 @@
html += '<paper-icon-button class="btnNextPage" icon="arrow-forward" ' + (startIndex + limit >= totalRecordCount ? 'disabled' : '') + '></paper-icon-button>';
}
html += (options.additionalButtonsHtml || '');
if (options.addSelectionButton) {
html += '<paper-icon-button class="btnToggleSelections" icon="check"></paper-icon-button>';
}
if (options.addLayoutButton) {
html += '<paper-icon-button title="' + Globalize.translate('ButtonSelectView') + '" class="btnChangeLayout" data-layouts="' + (options.layouts || '') + '" onclick="LibraryBrowser.showLayoutMenu(this, \'' + (options.currentLayout || '') + '\');" icon="view-comfy"></paper-icon-button>';

View file

@ -169,7 +169,7 @@
return false;
}
function onCardTapHold(e) {
function onContextMenu(e) {
var card = parentWithClass(e.target, 'card');
@ -945,9 +945,6 @@
preventHover = true;
}
this.off('contextmenu', onCardTapHold);
this.on('contextmenu', onCardTapHold);
this.off('click', onGroupedCardClick);
this.on('click', onGroupedCardClick);
@ -957,7 +954,14 @@
this.off('click', onListViewPlayButtonClick);
this.on('click', onListViewPlayButtonClick);
if (!AppInfo.isTouchPreferred) {
if (AppInfo.isTouchPreferred) {
this.off('contextmenu', disableEvent);
this.on('contextmenu', disableEvent);
}
else {
this.off('contextmenu', onContextMenu);
this.on('contextmenu', onContextMenu);
this.off('mouseenter', '.card:not(.bannerCard) .cardContent', onHoverIn);
this.on('mouseenter', '.card:not(.bannerCard) .cardContent', onHoverIn);
@ -968,9 +972,32 @@
this.on("touchstart", '.card:not(.bannerCard) .cardContent', preventTouchHover);
}
for (var i = 0, length = this.length; i < length; i++) {
initTapHold(this[i]);
}
return this;
};
function disableEvent(e) {
e.preventDefault();
return false;
}
function onTapHold(e) {
onContextMenu(e);
}
function initTapHold(element) {
require(['hammer'], function (Hammer) {
var hammertime = new Hammer(element);
hammertime.on('press', onTapHold);
});
}
function toggleSelections(page) {
Dashboard.showLoadingMsg();

View file

@ -8,7 +8,9 @@
html += '<paper-icon-button icon="' + backIcon + '" class="headerButton headerButtonLeft headerBackButton hide"></paper-icon-button>';
html += '<paper-icon-button icon="menu" class="headerButton mainDrawerButton barsMenuButton headerButtonLeft"></paper-icon-button>';
if (AppInfo.enableNavDrawer) {
html += '<paper-icon-button icon="menu" class="headerButton mainDrawerButton barsMenuButton headerButtonLeft"></paper-icon-button>';
}
html += '<div class="libraryMenuButtonText headerButton">' + Globalize.translate('ButtonHome') + '</div>';
@ -17,14 +19,16 @@
html += '<span class="headerSelectedPlayer"></span>';
html += '<paper-icon-button icon="cast" class="btnCast headerButton headerButtonRight hide"></paper-icon-button>';
html += '<paper-icon-button icon="search" class="headerButton headerButtonRight headerSearchButton hide" onclick="Search.showSearchPanel();"></paper-icon-button>';
html += '<div class="viewMenuSearch hide">';
html += '<form class="viewMenuSearchForm">';
html += '<input type="text" data-role="none" data-type="search" class="headerSearchInput" autocomplete="off" spellcheck="off" />';
html += '<iron-icon class="searchInputIcon" icon="search"></iron-icon>';
html += '<paper-icon-button icon="close" class="btnCloseSearch"></paper-icon-button>';
html += '</form>';
html += '</div>';
if (AppInfo.enableSearchInTopMenu) {
html += '<paper-icon-button icon="search" class="headerButton headerButtonRight headerSearchButton hide" onclick="Search.showSearchPanel();"></paper-icon-button>';
html += '<div class="viewMenuSearch hide">';
html += '<form class="viewMenuSearchForm">';
html += '<input type="text" data-role="none" data-type="search" class="headerSearchInput" autocomplete="off" spellcheck="off" />';
html += '<iron-icon class="searchInputIcon" icon="search"></iron-icon>';
html += '<paper-icon-button icon="close" class="btnCloseSearch"></paper-icon-button>';
html += '</form>';
html += '</div>';
}
html += '<paper-icon-button icon="mic" class="headerButton headerButtonRight headerVoiceButton hide" onclick="VoiceInputManager.startListening();"></paper-icon-button>';
@ -67,9 +71,14 @@
var header = document.querySelector('.viewMenuBar');
var headerSearchButton = document.querySelector('.headerSearchButton')
if (user.localUser) {
$('.btnCast', header).visible(true);
document.querySelector('.headerSearchButton').classList.remove('hide');
if (headerSearchButton) {
headerSearchButton.classList.remove('hide');
}
requirejs(['voice/voice'], function () {
@ -84,7 +93,9 @@
} else {
$('.btnCast', header).visible(false);
document.querySelector('.headerVoiceButton').classList.add('hide');
document.querySelector('.headerSearchButton').classList.add('hide');
if (headerSearchButton) {
headerSearchButton.classList.add('hide');
}
}
var dashboardEntryHeaderButton = document.querySelector('.dashboardEntryHeaderButton');
@ -867,22 +878,9 @@
document.body.classList.remove('dashboardDocument');
document.body.classList.remove('hideMainDrawer');
if (AppInfo.enableBottomTabs) {
page.classList.add('noSecondaryNavPage');
if (page.classList.contains('pageWithAbsoluteTabs')) {
document.querySelector('.footer').classList.add('footerOverBottomTabs');
}
else {
document.querySelector('.footer').classList.remove('footerOverBottomTabs');
}
} else {
var navs = page.querySelectorAll('.libraryViewNav');
for (var i = 0, length = navs.length; i < length; i++) {
initHeadRoom(navs[i]);
}
var navs = page.querySelectorAll('.libraryViewNav');
for (var i = 0, length = navs.length; i < length; i++) {
initHeadRoom(navs[i]);
}
}
else if (page.classList.contains('type-interior')) {

View file

@ -60,7 +60,6 @@
totalRecordCount: result.TotalRecordCount,
viewButton: true,
showLimit: false,
addSelectionButton: true,
viewPanelClass: 'movieViewPanel',
updatePageSizeSetting: false,
addLayoutButton: true,

View file

@ -55,7 +55,6 @@
limit: query.Limit,
totalRecordCount: result.TotalRecordCount,
showLimit: false,
addSelectionButton: true,
viewPanelClass: 'albumArtistsViewPanel',
updatePageSizeSetting: false,
addLayoutButton: true,

View file

@ -56,7 +56,6 @@
totalRecordCount: result.TotalRecordCount,
viewButton: true,
showLimit: false,
addSelectionButton: true,
sortButton: true,
viewPanelClass: 'albumsViewPanel',
addLayoutButton: true,

View file

@ -55,7 +55,6 @@
limit: query.Limit,
totalRecordCount: result.TotalRecordCount,
showLimit: false,
addSelectionButton: true,
viewPanelClass: 'artistsViewPanel',
updatePageSizeSetting: false,
addLayoutButton: true,

View file

@ -327,8 +327,6 @@
var html = '';
var cardLayout = AppInfo.hasLowImageBandwidth;
if (result.Items.length) {
html += '<h1 class="listHeader">' + Globalize.translate('HeaderResume') + '</h1>';
if (enableScrollX()) {
@ -340,14 +338,14 @@
items: result.Items,
preferThumb: true,
shape: getThumbShape(),
overlayText: screenWidth >= 800 && !cardLayout,
overlayText: false,
showTitle: true,
showParentTitle: true,
lazy: true,
cardLayout: cardLayout,
showDetailsMenu: true,
overlayPlayButton: true,
context: 'home'
context: 'home',
centerText: true
});
html += '</div>';
}

View file

@ -1566,10 +1566,6 @@ var Dashboard = {
quality -= 10;
if (isBackdrop) {
quality -= 15;
}
} else {
quality -= 40;
@ -1726,6 +1722,8 @@ var AppInfo = {};
AppInfo.enableDetailPageChapters = true;
AppInfo.enableDetailsMenuImages = true;
AppInfo.enableMovieHomeSuggestions = true;
AppInfo.enableNavDrawer = true;
AppInfo.enableSearchInTopMenu = true;
AppInfo.enableAppStorePolicy = isCordova;
@ -1740,8 +1738,9 @@ var AppInfo = {};
}
if (isCordova) {
AppInfo.enableBottomTabs = true;
//AppInfo.enableSectionTransitions = true;
AppInfo.enableNavDrawer = false;
AppInfo.enableSearchInTopMenu = false;
} else {
if (isMobile) {
@ -1884,10 +1883,6 @@ var AppInfo = {};
var elem = document.documentElement;
if (AppInfo.enableBottomTabs) {
elem.classList.add('bottomSecondaryNav');
}
if (AppInfo.isTouchPreferred) {
elem.classList.add('touch');
}
@ -1932,6 +1927,7 @@ var AppInfo = {};
Dashboard.importCss('themes/ios.css');
}
}
Dashboard.importCss('themes/ios.css');
if ($.browser.msie && $.browser.tv && ($.browser.version || 11) <= 10) {
Dashboard.importCss('thirdparty/paper-ie10.css');
@ -2191,7 +2187,7 @@ var AppInfo = {};
drawer.drawerWidth = drawerWidth + "px";
if ($.browser.safari && !AppInfo.isNativeApp) {
if ($.browser.safari) {
drawer.disableEdgeSwipe = true;
}
@ -2284,16 +2280,21 @@ var AppInfo = {};
function onAppReady(deferred) {
onDocumentReady();
Dashboard.initPromiseDone = true;
$.mobile.initializePage();
deferred.resolve();
if (AppInfo.isNativeApp && !$.browser.android) {
require(['localsync']);
}
var deps = [];
if (AppInfo.isNativeApp && $.browser.safari) {
require(['cordova/ios/backgroundfetch']);
deps.push('cordova/ios/backgroundfetch');
deps.push('cordova/ios/tabbar');
deps.push('localsync');
}
require(deps, function () {
Dashboard.initPromiseDone = true;
$.mobile.initializePage();
deferred.resolve();
});
//require(['localsync']);
}

View file

@ -59,7 +59,6 @@
totalRecordCount: result.TotalRecordCount,
viewButton: true,
showLimit: false,
addSelectionButton: true,
viewPanelClass: 'seriesViewPanel',
updatePageSizeSetting: false,
addLayoutButton: true,