mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "VisualEditorDataModule: Pass save/publish button label to 'missingsummary' message"
This commit is contained in:
commit
eb6cf0d79a
|
@ -44,10 +44,14 @@ class VisualEditorDataModule extends ResourceLoaderModule {
|
|||
}
|
||||
|
||||
protected function getMessageInfo( ResourceLoaderContext $context ) {
|
||||
global $wgEditSubmitButtonLabelPublish;
|
||||
$saveButtonLabelKey = $wgEditSubmitButtonLabelPublish ? 'publishpage' : 'savearticle';
|
||||
$saveButtonLabel = $context->msg( $saveButtonLabelKey )->text();
|
||||
|
||||
// Messages to be exported as parsed html
|
||||
$parseMsgs = [
|
||||
'minoredit' => $context->msg( 'minoredit' ),
|
||||
'missingsummary' => $context->msg( 'missingsummary' ),
|
||||
'missingsummary' => $context->msg( 'missingsummary', $saveButtonLabel ),
|
||||
'summary' => $context->msg( 'summary' ),
|
||||
'watchthis' => $context->msg( 'watchthis' ),
|
||||
'visualeditor-browserwarning' => $context->msg( 'visualeditor-browserwarning' ),
|
||||
|
|
Loading…
Reference in a new issue