mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-30 19:15:43 +00:00
Merge "Escape messages"
This commit is contained in:
commit
d3b0ef6c27
|
@ -330,28 +330,23 @@ $.wikiEditor.modules.dialogs.config = {
|
||||||
} );
|
} );
|
||||||
// Add images to the page existence widget, which will be shown mutually exclusively to communicate if
|
// Add images to the page existence widget, which will be shown mutually exclusively to communicate if
|
||||||
// the page exists, does not exist or the title is invalid (like if it contains a | character)
|
// the page exists, does not exist or the title is invalid (like if it contains a | character)
|
||||||
var existsMsg = mw.msg( 'wikieditor-toolbar-tool-link-int-target-status-exists' );
|
|
||||||
var notexistsMsg = mw.msg( 'wikieditor-toolbar-tool-link-int-target-status-notexists' );
|
|
||||||
var invalidMsg = mw.msg( 'wikieditor-toolbar-tool-link-int-target-status-invalid' );
|
|
||||||
var externalMsg = mw.msg( 'wikieditor-toolbar-tool-link-int-target-status-external' );
|
|
||||||
var loadingMsg = mw.msg( 'wikieditor-toolbar-tool-link-int-target-status-loading' );
|
var loadingMsg = mw.msg( 'wikieditor-toolbar-tool-link-int-target-status-loading' );
|
||||||
var disambigMsg = mw.msg( 'wikieditor-toolbar-tool-link-int-target-status-disambig' );
|
|
||||||
$( '#wikieditor-toolbar-link-int-target-status' )
|
$( '#wikieditor-toolbar-link-int-target-status' )
|
||||||
.append( $( '<div>' )
|
.append( $( '<div>' )
|
||||||
.attr( 'id', 'wikieditor-toolbar-link-int-target-status-exists' )
|
.attr( 'id', 'wikieditor-toolbar-link-int-target-status-exists' )
|
||||||
.append( existsMsg )
|
.text( mw.msg( 'wikieditor-toolbar-tool-link-int-target-status-exists' ) )
|
||||||
)
|
)
|
||||||
.append( $( '<div>' )
|
.append( $( '<div>' )
|
||||||
.attr( 'id', 'wikieditor-toolbar-link-int-target-status-notexists' )
|
.attr( 'id', 'wikieditor-toolbar-link-int-target-status-notexists' )
|
||||||
.append( notexistsMsg )
|
.text( mw.msg( 'wikieditor-toolbar-tool-link-int-target-status-notexists' ) )
|
||||||
)
|
)
|
||||||
.append( $( '<div>' )
|
.append( $( '<div>' )
|
||||||
.attr( 'id', 'wikieditor-toolbar-link-int-target-status-invalid' )
|
.attr( 'id', 'wikieditor-toolbar-link-int-target-status-invalid' )
|
||||||
.append( invalidMsg )
|
.text( mw.msg( 'wikieditor-toolbar-tool-link-int-target-status-invalid' ) )
|
||||||
)
|
)
|
||||||
.append( $( '<div>' )
|
.append( $( '<div>' )
|
||||||
.attr( 'id', 'wikieditor-toolbar-link-int-target-status-external' )
|
.attr( 'id', 'wikieditor-toolbar-link-int-target-status-external' )
|
||||||
.append( externalMsg )
|
.text( mw.msg( 'wikieditor-toolbar-tool-link-int-target-status-external' ) )
|
||||||
)
|
)
|
||||||
.append( $( '<div>' )
|
.append( $( '<div>' )
|
||||||
.attr( 'id', 'wikieditor-toolbar-link-int-target-status-loading' )
|
.attr( 'id', 'wikieditor-toolbar-link-int-target-status-loading' )
|
||||||
|
@ -363,7 +358,7 @@ $.wikiEditor.modules.dialogs.config = {
|
||||||
)
|
)
|
||||||
.append( $( '<div>' )
|
.append( $( '<div>' )
|
||||||
.attr( 'id', 'wikieditor-toolbar-link-int-target-status-disambig' )
|
.attr( 'id', 'wikieditor-toolbar-link-int-target-status-disambig' )
|
||||||
.append( disambigMsg )
|
.text( mw.msg( 'wikieditor-toolbar-tool-link-int-target-status-disambig' ) )
|
||||||
)
|
)
|
||||||
.data( 'existencecache', {} )
|
.data( 'existencecache', {} )
|
||||||
.children().hide();
|
.children().hide();
|
||||||
|
|
Loading…
Reference in a new issue