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-07-29 22:08:35 -04:00
parent dd55a5fe61
commit 6b91120cb9
84 changed files with 619 additions and 385 deletions

View file

@ -212,6 +212,43 @@
}
}
function validateSync(deferred) {
Dashboard.getPluginSecurityInfo().done(function (pluginSecurityInfo) {
if (!pluginSecurityInfo.IsMBSupporter) {
deferred.resolve();
return;
}
Dashboard.showLoadingMsg();
ApiClient.getRegistrationInfo('Sync').done(function (registrationInfo) {
Dashboard.hideLoadingMsg();
if (!registrationInfo.IsRegistered) {
deferred.resolve();
return;
}
Dashboard.alert({
message: Globalize.translate('HeaderSyncRequiresSupporterMembershipAppVersion'),
title: Globalize.translate('HeaderSync')
});
}).fail(function () {
Dashboard.hideLoadingMsg();
Dashboard.alert({
message: Globalize.translate('ErrorValidatingSupporterInfo')
});
});
});
}
window.RegistrationServices = {
renderPluginInfo: function (page, pkg, pluginSecurityInfo) {
@ -237,6 +274,8 @@
validateLiveTV(deferred);
} else if (name == 'manageserver') {
validateServerManagement(deferred);
} else if (name == 'sync') {
validateSync(deferred);
} else {
deferred.resolve();
}