From 0ee4c725d369a3d02759ed6bb112bfe2a1326154 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 4 Oct 2017 12:17:42 +0200 Subject: [PATCH] only define gettext if not already defined --- Utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Utils.js b/Utils.js index e0c26d7..93cba81 100644 --- a/Utils.js +++ b/Utils.js @@ -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"; -- 2.39.2