Skip to content

Commit

Permalink
chore: chore
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan committed Oct 9, 2024
1 parent f9586c3 commit 5ed4627
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions xblocks_contrib/word_cloud/static/js/src/word_cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('<strong>'),
end_strong: HTML('</strong>'),
Expand All @@ -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')),
Expand All @@ -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')),
Expand All @@ -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')),
Expand Down
2 changes: 1 addition & 1 deletion xblocks_contrib/word_cloud/word_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 5ed4627

Please sign in to comment.