Merge "Use existing extends warning i18n"

This commit is contained in:
jenkins-bot 2024-07-15 07:39:26 +00:00 committed by Gerrit Code Review
commit 6315e0da7b

View file

@ -295,9 +295,9 @@ ve.ui.MWReferenceDialog.prototype.updateExtendsWarningFromRef = function ( ref )
const itemNode = list.getItemNode( list.keys.indexOf( ref.extendsRef ) ); const itemNode = list.getItemNode( list.keys.indexOf( ref.extendsRef ) );
const parentRefText = new ve.ui.MWPreviewElement( itemNode, { useView: true } ).$element.text(); const parentRefText = new ve.ui.MWPreviewElement( itemNode, { useView: true } ).$element.text();
// TODO extends i18n // TODO extends i18n
this.extendsWarning.setLabel( this.extendsWarning.setLabel( new OO.ui.HtmlSnippet(
`This is an extension of another reference: ${ parentRefText }` `${ mw.msg( 'cite-ve-dialog-reference-editing-extends' ) }</br>${ parentRefText }`
); ) );
} }
this.extendsWarning.toggle( !!ref.extendsRef ); this.extendsWarning.toggle( !!ref.extendsRef );