i18n: Translate Edit/View Source button's hmtl tooltip text.

This commit tags the html tooltip text for internationalization.
This commit is contained in:
Vinit Singh 2020-07-24 20:19:11 +05:30 committed by Tim Abbott
parent 6cbbdcf37d
commit fdbab54614
1 changed files with 2 additions and 2 deletions

View File

@ -44,13 +44,13 @@ function message_hover(message_row) {
message_row
.find(".edit_content")
.html(
'<i class="fa fa-pencil edit_content_button" aria-hidden="true" title="Edit (e)"></i>',
'<i class="fa fa-pencil edit_content_button" aria-hidden="true" title="{{ _("Edit") }} (e)"></i>',
);
} else {
message_row
.find(".edit_content")
.html(
'<i class="fa fa-file-code-o edit_content_button" aria-hidden="true" title="View source (e)" data-message-id="' +
'<i class="fa fa-file-code-o edit_content_button" aria-hidden="true" title="{{ _("View source") }} (e)" data-message-id="' +
id +
'"></i>',
);