mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-13 17:53:09 +00:00
Merge "Use existing extends warning i18n"
This commit is contained in:
commit
6315e0da7b
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue