only define gettext if not already defined

This commit is contained in:
Dietmar Maurer 2017-10-04 12:17:42 +02:00
parent f6f0066aff
commit 0ee4c725d3

View File

@ -1,9 +1,9 @@
Ext.ns('Proxmox');
Ext.ns('Proxmox.Setup');
// TODO: implement gettext
function gettext(buf) { return buf; }
if (!Ext.isFunction(gettext)) {
function gettext(buf) { return buf; }
}
if (!Ext.isDefined(Proxmox.Setup.auth_cookie_name)) {
throw "Proxmox library not initialized";