From 91432f2ce630d9fd06f78b78c54d141ee1a9f5a0 Mon Sep 17 00:00:00 2001 From: Muhammad Farhan Khan Date: Fri, 26 Jul 2024 13:21:09 +0500 Subject: [PATCH] chore: uncomment gettext functions --- .../word_cloud/static/js/src/word_cloud_xblock.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/xblocks_contrib/word_cloud/static/js/src/word_cloud_xblock.js b/xblocks_contrib/word_cloud/static/js/src/word_cloud_xblock.js index 6a752c9..2e69ea7 100644 --- a/xblocks_contrib/word_cloud/static/js/src/word_cloud_xblock.js +++ b/xblocks_contrib/word_cloud/static/js/src/word_cloud_xblock.js @@ -213,9 +213,7 @@ function drawWordCloud(element, response, words, bounds) { setHtml( cloudSectionEl.find('.your_words').end().find('.total_num_words'), interpolateHtml( - // TODO: update all code related to gettext - // gettext('{start_strong}{total}{end_strong} words submitted in total.'), - '{start_strong}{total}{end_strong} words submitted in total.', + gettext('{start_strong}{total}{end_strong} words submitted in total.'), { start_strong: HTML(''), end_strong: HTML(''), @@ -242,8 +240,7 @@ function drawWordCloud(element, response, words, bounds) { return wcCount; }) .attr('aria-describedby', () => interpolateHtml( - // gettext('text_word_{uniqueId} title_word_{uniqueId}'), - 'text_word_{uniqueId} title_word_{uniqueId}', + gettext('text_word_{uniqueId} title_word_{uniqueId}'), { // eslint-disable-next-line no-undef uniqueId: generateUniqueId(cloudSectionEl.attr('id'), $(this).data('id')), @@ -253,8 +250,7 @@ function drawWordCloud(element, response, words, bounds) { groupEl .append('title') .attr('id', () => interpolateHtml( - // gettext('title_word_{uniqueId}'), - 'title_word_{uniqueId}', + gettext('title_word_{uniqueId}'), { // eslint-disable-next-line no-undef uniqueId: generateUniqueId(cloudSectionEl.attr('id'), $(this).parent().data('id')), @@ -276,8 +272,7 @@ function drawWordCloud(element, response, words, bounds) { groupEl .append('text') .attr('id', () => interpolateHtml( - // gettext('text_word_{uniqueId}'), - 'text_word_{uniqueId}', + gettext('text_word_{uniqueId}'), { // eslint-disable-next-line no-undef uniqueId: generateUniqueId(cloudSectionEl.attr('id'), $(this).parent().data('id')),