From 0d04b98ae6849103030e470e2f9f9d650dcb29b3 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Thu, 12 Aug 2010 15:48:37 +0200 Subject: [PATCH] cope with Django's jsi18n not being available by adding dummy gettext --- pyweb/mumble/media/js/channelviewer.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyweb/mumble/media/js/channelviewer.js b/pyweb/mumble/media/js/channelviewer.js index eb7d62e..30f9022 100644 --- a/pyweb/mumble/media/js/channelviewer.js +++ b/pyweb/mumble/media/js/channelviewer.js @@ -2,6 +2,14 @@ Ext.namespace('Ext.ux'); +if( typeof gettext == "undefined" ){ + // Cope with Django's jsi18n not being available by adding dummy gettext + gettext = function( text ){ + return text; + }; + gettext_noop = gettext; +} + Ext.ux.MumbleChannelNodeUI = Ext.extend(Ext.tree.TreeNodeUI, { renderElements : function(n, a, targetNode, bulkRender){ Ext.ux.MumbleUserNodeUI.superclass.renderElements.call( this, n, a, targetNode, bulkRender );