Don't use a changeable tooltip for edit notices

We can't change tooltips once they're set for buttons like this (they're
static), so for values that can change we need to use language that does
not need plurals.

Bug: 61891
Change-Id: I78e5576e348ee92bc39315fd494b3398ae2c14bf
This commit is contained in:
James D. Forrester 2014-02-26 15:51:54 -08:00 committed by Catrope
parent 0f45399082
commit 532077b57f
4 changed files with 4 additions and 1 deletions

View file

@ -593,6 +593,7 @@ $wgResourceModules += array(
'visualeditor-differror',
'visualeditor-editconflict',
'visualeditor-editnotices-tool',
'visualeditor-editnotices-tooltip',
'visualeditor-editsummary',
'visualeditor-editsummary-bytes-remaining',
'visualeditor-feedback-tool',

View file

@ -126,6 +126,7 @@
"visualeditor-differror": "Error loading data from server: $1.",
"visualeditor-editconflict": "Your changes could not be saved because of an edit conflict. Would you like to resolve the conflict manually?",
"visualeditor-editnotices-tool": "$1 {{PLURAL:$1|notice|notices}}",
"visualeditor-editnotices-tooltip": "Edit notices",
"visualeditor-editsummary": "Describe what you changed",
"visualeditor-editsummary-bytes-remaining": "The number of bytes remaining",
"visualeditor-formatdropdown-format-mw-heading1": "Page title",

View file

@ -131,6 +131,7 @@
"visualeditor-differror": "Text shown when the editor fails to load the diff.\n\nParameters:\n* $1 is an error message, in English.",
"visualeditor-editconflict": "Alert message when saving a page causes an edit conflict",
"visualeditor-editnotices-tool": "Text of tool in the toolbar that shows edit notices (such as [[MediaWiki:Editnotice-0]] and [[MediaWiki:Editnotice-8/en]]) as a pop-up.\n\nParameters:\n* $1 - the number of notices",
"visualeditor-editnotices-tooltip": "Text of tooltip for the tool in the toolbar that shows edit notices",
"visualeditor-editsummary": "Label for the edit summary box",
"visualeditor-editsummary-bytes-remaining": "Tooltip for the number of bytes remaining in the edit summary",
"visualeditor-formatdropdown-format-mw-heading1": "Item in the MediaWiki formatting dropdown for a level 1 heading (page title).\n{{Related|Visualeditor-formatdropdown}}\n{{Identical|Page title}}",

View file

@ -62,7 +62,7 @@ OO.inheritClass( ve.ui.MWNoticesPopupTool, OO.ui.PopupTool );
ve.ui.MWNoticesPopupTool.static.name = 'notices';
ve.ui.MWNoticesPopupTool.static.group = 'utility';
ve.ui.MWNoticesPopupTool.static.icon = 'alert';
ve.ui.MWNoticesPopupTool.static.title = OO.ui.deferMsg( 'visualeditor-editnotices-tool' );
ve.ui.MWNoticesPopupTool.static.title = OO.ui.deferMsg( 'visualeditor-editnotices-tooltip' );
ve.ui.MWNoticesPopupTool.static.autoAdd = false;
/* Methods */