File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -684,15 +684,16 @@ pdfjs-editor-delete-comment-popup-button =
684684
685685# An existing comment is edited
686686pdfjs-editor-edit-comment-dialog-title-when-editing = Edit comment
687+ pdfjs-editor-edit-comment-dialog-save-button-when-editing = Update
687688
688689# No existing comment
689690pdfjs-editor-edit-comment-dialog-title-when-adding = Add comment
691+ pdfjs-editor-edit-comment-dialog-save-button-when-adding = Add
690692
691693pdfjs-editor-edit-comment-dialog-text-input =
692694 .placeholder = Start typing…
693695
694696pdfjs-editor-edit-comment-dialog-cancel-button = Cancel
695- pdfjs-editor-edit-comment-dialog-save-button = Save
696697
697698## Edit a comment button in the editor toolbar
698699
Original file line number Diff line number Diff line change @@ -681,12 +681,25 @@ class CommentDialog {
681681 this . #commentText = str || "" ;
682682 const textInput = this . #textInput;
683683 textInput . value = this . #previousText = this . #commentText;
684- this . #title. setAttribute (
685- "data-l10n-id" ,
686- str
687- ? "pdfjs-editor-edit-comment-dialog-title-when-editing"
688- : "pdfjs-editor-edit-comment-dialog-title-when-adding"
689- ) ;
684+ if ( str ) {
685+ this . #title. setAttribute (
686+ "data-l10n-id" ,
687+ "pdfjs-editor-edit-comment-dialog-title-when-editing"
688+ ) ;
689+ this . #saveButton. setAttribute (
690+ "data-l10n-id" ,
691+ "pdfjs-editor-edit-comment-dialog-save-button-when-editing"
692+ ) ;
693+ } else {
694+ this . #title. setAttribute (
695+ "data-l10n-id" ,
696+ "pdfjs-editor-edit-comment-dialog-title-when-adding"
697+ ) ;
698+ this . #saveButton. setAttribute (
699+ "data-l10n-id" ,
700+ "pdfjs-editor-edit-comment-dialog-save-button-when-adding"
701+ ) ;
702+ }
690703 if ( options ?. height ) {
691704 textInput . style . height = `${ options . height } px` ;
692705 }
Original file line number Diff line number Diff line change 803803 < span data-l10n-id ="pdfjs-editor-edit-comment-dialog-cancel-button "> </ span >
804804 </ button >
805805 < button id ="commentManagerSaveButton " type ="button " class ="primaryButton " disabled tabindex ="0 ">
806- < span data-l10n-id ="pdfjs-editor-edit-comment-dialog-save-button "> </ span >
806+ < span data-l10n-id ="pdfjs-editor-edit-comment-dialog-save-button-when-adding "> </ span >
807807 </ button >
808808 </ div >
809809 </ div >
You can’t perform that action at this time.
0 commit comments