Substitute {{SITENAME}} in the title of dialogs

Bug: T62695
Change-Id: I7e5378b37e66b8b35bb7b3aa2121eea3cbf1defd
This commit is contained in:
2nd-player 2015-11-24 17:30:52 +09:00 committed by Ori.livneh
parent aee1f28c2d
commit 6a73d06932

View file

@ -135,7 +135,7 @@ $.wikiEditor.modules.dialogs = {
if ( typeof configuration.modal === 'undefined' ) {
configuration.modal = true;
}
configuration.title = $.wikiEditor.autoMsg( module, 'title' );
configuration.title = $.wikiEditor.autoMsg( module, 'title' ).replace( /\{\{SITENAME\}\}/i, mw.config.get( 'wgSiteName' ) );
// Transform messages in keys
// Stupid JS won't let us do stuff like
// foo = { mw.msg( 'bar' ): baz }