Skip to content

Commit

Permalink
chore: uncomment gettext functions
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan committed Jul 26, 2024
1 parent 0af4589 commit 200a788
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions xblocks_contrib/word_cloud/static/js/src/word_cloud_xblock.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('<strong>'),
end_strong: HTML('</strong>'),
Expand All @@ -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')),
Expand All @@ -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')),
Expand All @@ -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')),
Expand Down

0 comments on commit 200a788

Please sign in to comment.