Skip to content

Commit

Permalink
fix: fixing gettext
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjmpb committed Aug 29, 2024
1 parent 80dbeab commit 1e79b8a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lms/static/js/edxnotes/plugins/ai_summarize.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
* AiSummarize plugin adds a button to the annotatorjs adder in order to
* summarize the text selected and save as annotation.
**/
// Define annotatorjs gettext
// https://github.com/openannotation/annotator/blob/5ef5edf157fe728b2d6d95d01e26a55c508c0c44/src/util.js#L26
var _t = Annotator._t;
Annotator.Plugin.AiSummarize = function() {
Annotator.Plugin.apply(this, arguments);
};
Expand Down Expand Up @@ -77,7 +74,7 @@
annotator.adder[0].children[0].id = 'annotateButton';
annotator.adder[0].children[0].innerHTML = '<i class="fa fa-pencil" aria-hidden="true"></i>';
annotator.adder[0].innerHTML +=
'<button class="summarize-button" id="summarizeButton" title="' + _t('Summarize text using AI.') + '">' +
'<button class="summarize-button" id="summarizeButton" title="' + gettext('Summarize text using AI.') + '">' +
'<i class="fa fa-star" aria-hidden="true"></i>' +
'</button>';
},
Expand Down

0 comments on commit 1e79b8a

Please sign in to comment.