Merge "(bug 42123) Add i18n for aliennated content tool tip."

This commit is contained in:
Catrope 2012-11-17 01:08:07 +00:00 committed by Gerrit Code Review
commit 7fb9b1c09a
3 changed files with 3 additions and 2 deletions

View file

@ -39,6 +39,7 @@ $messages['en'] = array(
'visualeditor-loadwarning' => 'Error loading data from server: $1. Would you like to retry?',
'visualeditor-saveerror' => 'Error saving data to server: $1.',
'visualeditor-editsummary' => 'Describe what you changed',
'visualeditor-aliennode-tooltip' => 'Sorry, this element cannot be edited using the VisualEditor',
);
/** Message documentation (Message documentation)

View file

@ -334,6 +334,7 @@ $wgResourceModules += array(
'visualeditor-historybutton-redo-tooltip',
'visualeditor-viewpage-savewarning',
'visualeditor-saveerror',
'visualeditor-aliennode-tooltip',
),
),
'ext.visualEditor.icons-raster' => $wgVisualEditorResourceTemplate + array(

View file

@ -78,8 +78,7 @@ ve.inheritClass( ve.ce.Surface, ve.EventEmitter );
ve.ce.Surface.static = {};
ve.ce.Surface.static.$phantomTemplate = $( '<div class="ve-ce-phantom" draggable="false"></div>' )
// TODO: I18N
.attr( 'title', 'Sorry, this element cannot be edited with the Visual Editor' );
.attr( 'title', ve.msg ( 'visualeditor-aliennode-tooltip' ) );
/* Methods */