From c0d98cdd4fa51f1c4b5716701bd8ebf84bc69a51 Mon Sep 17 00:00:00 2001 From: WMDE-Fisch Date: Thu, 11 Jul 2024 13:16:14 +0200 Subject: [PATCH] Use existing extends warning i18n Also introducing a line break to make the difference a bit more clear what's part of the message. We still probably want parsed content and not only text here. Bug: T247922 Change-Id: If545ab2fe1d807a6bcbcdfc0c3b7de83817554e6 --- modules/ve-cite/ve.ui.MWReferenceDialog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ve-cite/ve.ui.MWReferenceDialog.js b/modules/ve-cite/ve.ui.MWReferenceDialog.js index 646fe5275..4fead1b31 100644 --- a/modules/ve-cite/ve.ui.MWReferenceDialog.js +++ b/modules/ve-cite/ve.ui.MWReferenceDialog.js @@ -295,9 +295,9 @@ ve.ui.MWReferenceDialog.prototype.updateExtendsWarningFromRef = function ( ref ) const itemNode = list.getItemNode( list.keys.indexOf( ref.extendsRef ) ); const parentRefText = new ve.ui.MWPreviewElement( itemNode, { useView: true } ).$element.text(); // TODO extends i18n - this.extendsWarning.setLabel( - `This is an extension of another reference: ${ parentRefText }` - ); + this.extendsWarning.setLabel( new OO.ui.HtmlSnippet( + `${ mw.msg( 'cite-ve-dialog-reference-editing-extends' ) }
${ parentRefText }` + ) ); } this.extendsWarning.toggle( !!ref.extendsRef );