From 1a62379a43cc02405d3fd24e624a10242de43674 Mon Sep 17 00:00:00 2001 From: daniel cebrian Date: Thu, 6 Feb 2014 15:48:24 +0100 Subject: [PATCH] fixed conflict between Annotator and internationalitation --- common/static/js/vendor/ova/annotator-full.js | 21 +++++-------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/common/static/js/vendor/ova/annotator-full.js b/common/static/js/vendor/ova/annotator-full.js index 8ccd90371d..3a9f7131d1 100644 --- a/common/static/js/vendor/ova/annotator-full.js +++ b/common/static/js/vendor/ova/annotator-full.js @@ -121,25 +121,14 @@ getNodePosition = function(node) { */ // Generated by CoffeeScript 1.6.3 -var $, Util, gettext, _gettext, _ref, _t; +var $, Util, gettext_annotator, _ref, _t; -gettext = null; - -if (typeof Gettext !== "undefined" && Gettext !== null) { - _gettext = new Gettext({ - domain: "annotator" - }); - gettext = function(msgid) { - return _gettext.gettext(msgid); - }; -} else { - gettext = function(msgid) { - return msgid; - }; -} +gettext_annotator = function(msgid) { + return msgid; +}; _t = function(msgid) { - return gettext(msgid); + return gettext_annotator(msgid); }; if (!(typeof jQuery !== "undefined" && jQuery !== null ? (_ref = jQuery.fn) != null ? _ref.jquery : void 0 : void 0)) {