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

added web client localization

This commit is contained in:
Luke Pulverenti 2014-03-30 22:33:10 -04:00
parent 1f1dcf80c1
commit 371dd1454a
13 changed files with 158 additions and 36 deletions

View file

@ -1,5 +1,5 @@
function IsStorageEnabled() {
if (!window.localStorage) {
return false;
}
@ -36,7 +36,7 @@ $.fn.checked = function (value) {
}
};
$.fn.buttonEnabled = function(enabled) {
$.fn.buttonEnabled = function (enabled) {
return enabled ? this.attr('disabled', '').removeAttr('disabled') : this.attr('disabled', 'disabled');
};
@ -132,8 +132,8 @@ var WebNotifications = {
}
}
},
supported: function() {
supported: function () {
return window.Notification || window.webkitNotifications;
}
};
@ -460,4 +460,20 @@ function ticks_to_human(str) {
};
});
})();
})();
(function (window) {
// Mimic Globalize api
// https://github.com/jquery/globalize
// Maybe later switch to it
window.Globalize = {
translate: function (key) {
return window.localizationGlossary[key] || key;
}
};
})(window);