Simplify new INDEX/NOINDEX language, order and panel order

Just say "Default" rather than "Like other pages in this namespace" (let's
put that in the help string/tooltip at some point); order the "default"
value between "yes" and "no" (like for TOC); make sure the panel for the
advanced settings is in the same position in the page menu as the meta-
data dialog.

Follow-up to I30d483b5b6c3df7e

Change-Id: I902eb4f8504866b2dcde32333cf365a59716c2ce
This commit is contained in:
James D. Forrester 2014-02-19 18:39:30 -08:00 committed by Jforrester
parent fdabedf117
commit 0b97870d8c
3 changed files with 6 additions and 6 deletions

View file

@ -75,7 +75,7 @@
"visualeditor-dialog-meta-languages-name-label": "Language", "visualeditor-dialog-meta-languages-name-label": "Language",
"visualeditor-dialog-meta-languages-readonlynote": "This is a list of pages in other languages that are linked to this one; for now, it can only be edited in source mode or on Wikidata.", "visualeditor-dialog-meta-languages-readonlynote": "This is a list of pages in other languages that are linked to this one; for now, it can only be edited in source mode or on Wikidata.",
"visualeditor-dialog-meta-languages-section": "Languages", "visualeditor-dialog-meta-languages-section": "Languages",
"visualeditor-dialog-meta-settings-index-default": "Like other pages in this namespace", "visualeditor-dialog-meta-settings-index-default": "Default",
"visualeditor-dialog-meta-settings-index-disable": "No", "visualeditor-dialog-meta-settings-index-disable": "No",
"visualeditor-dialog-meta-settings-index-force": "Yes", "visualeditor-dialog-meta-settings-index-force": "Yes",
"visualeditor-dialog-meta-settings-index-label": "Let this page be indexed by search engines", "visualeditor-dialog-meta-settings-index-label": "Let this page be indexed by search engines",

View file

@ -1043,7 +1043,7 @@ ve.init.mw.ViewPageTarget.prototype.attachToolbarButtons = function () {
{ {
'type': 'list', 'type': 'list',
'icon': 'menu', 'icon': 'menu',
'include': [ 'meta', 'settings', 'categories', 'languages', 'advancedSettings', 'editModeSource', 'commandHelp' ] 'include': [ 'meta', 'settings', 'advancedSettings', 'categories', 'languages', 'editModeSource', 'commandHelp' ]
} }
] ); ] );

View file

@ -38,13 +38,13 @@ ve.ui.MWAdvancedSettingsPage = function VeUiMWAdvancedSettingsPage( surface, nam
'mwIndexForce', 'mwIndexForce',
{ 'label': ve.msg( 'visualeditor-dialog-meta-settings-index-force' ) } { 'label': ve.msg( 'visualeditor-dialog-meta-settings-index-force' ) }
), ),
'mwIndexDisable': new OO.ui.ButtonOptionWidget(
'mwIndexDisable',
{ 'label': ve.msg( 'visualeditor-dialog-meta-settings-index-disable' ) }
),
'default': new OO.ui.ButtonOptionWidget( 'default': new OO.ui.ButtonOptionWidget(
'default', 'default',
{ 'label': ve.msg( 'visualeditor-dialog-meta-settings-index-default' ) } { 'label': ve.msg( 'visualeditor-dialog-meta-settings-index-default' ) }
),
'mwIndexDisable': new OO.ui.ButtonOptionWidget(
'mwIndexDisable',
{ 'label': ve.msg( 'visualeditor-dialog-meta-settings-index-disable' ) }
) )
}; };
this.indexingOptionSelector.addItems( ve.getObjectValues( this.indexingOptionWidgets ) ); this.indexingOptionSelector.addItems( ve.getObjectValues( this.indexingOptionWidgets ) );