From 5ed46273c8baa40df1caac9dd066987b5ebcedb6 Mon Sep 17 00:00:00 2001 From: farhan Date: Wed, 9 Oct 2024 11:20:21 +0500 Subject: [PATCH] chore: chore --- .../word_cloud/static/js/src/word_cloud.js | 12 ++++++++---- xblocks_contrib/word_cloud/word_cloud.py | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/xblocks_contrib/word_cloud/static/js/src/word_cloud.js b/xblocks_contrib/word_cloud/static/js/src/word_cloud.js index 29d51a3..1fc37f0 100644 --- a/xblocks_contrib/word_cloud/static/js/src/word_cloud.js +++ b/xblocks_contrib/word_cloud/static/js/src/word_cloud.js @@ -213,7 +213,8 @@ function drawWordCloud(element, response, words, bounds) { setHtml( cloudSectionEl.find('.your_words').end().find('.total_num_words'), interpolateHtml( - gettext('{start_strong}{total}{end_strong} words submitted in total.'), + // gettext('{start_strong}{total}{end_strong} words submitted in total.'), + '{start_strong}{total}{end_strong} words submitted in total.', { start_strong: HTML(''), end_strong: HTML(''), @@ -240,7 +241,8 @@ function drawWordCloud(element, response, words, bounds) { return wcCount; }) .attr('aria-describedby', () => interpolateHtml( - gettext('text_word_{uniqueId} title_word_{uniqueId}'), + // gettext('text_word_{uniqueId} title_word_{uniqueId}'), + 'text_word_{uniqueId} title_word_{uniqueId}', { // eslint-disable-next-line no-undef uniqueId: generateUniqueId(cloudSectionEl.attr('id'), $(this).data('id')), @@ -250,7 +252,8 @@ function drawWordCloud(element, response, words, bounds) { groupEl .append('title') .attr('id', () => interpolateHtml( - gettext('title_word_{uniqueId}'), + // gettext('title_word_{uniqueId}'), + 'title_word_{uniqueId}', { // eslint-disable-next-line no-undef uniqueId: generateUniqueId(cloudSectionEl.attr('id'), $(this).parent().data('id')), @@ -272,7 +275,8 @@ function drawWordCloud(element, response, words, bounds) { groupEl .append('text') .attr('id', () => interpolateHtml( - gettext('text_word_{uniqueId}'), + // gettext('text_word_{uniqueId}'), + 'text_word_{uniqueId}', { // eslint-disable-next-line no-undef uniqueId: generateUniqueId(cloudSectionEl.attr('id'), $(this).parent().data('id')), diff --git a/xblocks_contrib/word_cloud/word_cloud.py b/xblocks_contrib/word_cloud/word_cloud.py index 2fbca24..1106970 100644 --- a/xblocks_contrib/word_cloud/word_cloud.py +++ b/xblocks_contrib/word_cloud/word_cloud.py @@ -136,7 +136,7 @@ def student_view(self, context=None): # pylint: disable=W0613 # TODO: Add i188n # i18n_service = self.runtime.service(self, 'i18n') )) - frag.add_css(resource_loader.load_unicode("static/css/word_cloud.css.css")) + frag.add_css(resource_loader.load_unicode("static/css/word_cloud.css")) frag.add_javascript(resource_loader.load_unicode("static/js/src/word_cloud.js")) frag.add_javascript(resource_loader.load_unicode("static/js/src/d3.min.js")) frag.add_javascript(resource_loader.load_unicode("static/js/src/d3.layout.cloud.js"))