refactor: translate tooltip text of page (#29885)

This commit is contained in:
Ejaaz Khan 2025-01-24 11:46:30 +05:30 committed by GitHub
parent f4741e7310
commit 25e214e7f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -765,7 +765,7 @@ frappe.ui.Page = class Page {
}
let title_wrapper = this.$title_area.find(".title-text");
title_wrapper.html(title);
title_wrapper.attr("title", tooltip_label || this.title);
title_wrapper.attr("title", __(tooltip_label) || this.title);
if (tooltip_label) {
title_wrapper.tooltip({ delay: { show: 600, hide: 100 }, trigger: "hover" });