From 54ffd860ec668e45edb5fa6426d7d1419549bb29 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Fri, 17 Oct 2025 15:43:40 +0200 Subject: [PATCH] [Editor] Fix the tooltip of the comment button when in the editor toolbar (bug 1994958) --- l10n/en-US/viewer.ftl | 4 ++-- src/display/editor/comment.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/l10n/en-US/viewer.ftl b/l10n/en-US/viewer.ftl index 6d5aa8e3d..90b31fa4f 100644 --- a/l10n/en-US/viewer.ftl +++ b/l10n/en-US/viewer.ftl @@ -700,5 +700,5 @@ pdfjs-editor-edit-comment-dialog-cancel-button = Cancel ## Edit a comment button in the editor toolbar -pdfjs-editor-edit-comment-button = - .title = Edit comment +pdfjs-editor-add-comment-button = + .title = Add comment diff --git a/src/display/editor/comment.js b/src/display/editor/comment.js index 0ed94aad4..86bf52ca7 100644 --- a/src/display/editor/comment.js +++ b/src/display/editor/comment.js @@ -154,7 +154,7 @@ class Comment { comment.ariaControlsElements = [ this.#editor._uiManager.getCommentDialogElement(), ]; - comment.setAttribute("data-l10n-id", "pdfjs-editor-edit-comment-button"); + comment.setAttribute("data-l10n-id", "pdfjs-editor-add-comment-button"); } const signal = this.#editor._uiManager._signal;