]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
only define gettext if not already defined
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 4 Oct 2017 10:17:42 +0000 (12:17 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 4 Oct 2017 10:17:42 +0000 (12:17 +0200)
Utils.js

index e0c26d73304b4e30f9cee505ffa9e807070d3d56..93cba81ee8798f5c76daa57df753a82351a373f4 100644 (file)
--- 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";