mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "Update jquery.i18n to f6102aa4feddf3623c9fba3a3d31592c58204b58"
This commit is contained in:
commit
0a203fec65
|
@ -471,7 +471,7 @@ class VisualEditorHooks {
|
|||
$modules['jquery.i18n'] = $wgVisualEditorResourceTemplate + array(
|
||||
'scripts' => array(
|
||||
'jquery.i18n/src/jquery.i18n.js',
|
||||
'jquery.i18n/src/jquery.i18n.messages.js',
|
||||
'jquery.i18n/src/jquery.i18n.messagestore.js',
|
||||
'jquery.i18n/src/jquery.i18n.parser.js',
|
||||
'jquery.i18n/src/jquery.i18n.emitter.js',
|
||||
'jquery.i18n/src/jquery.i18n.language.js',
|
||||
|
|
|
@ -83,12 +83,17 @@
|
|||
},
|
||||
|
||||
/**
|
||||
* Set messages
|
||||
* Set messages to the given locale.
|
||||
* If locale exists, add messages to the locale.
|
||||
* @param locale
|
||||
* @param messages
|
||||
*/
|
||||
set: function( locale, messages ) {
|
||||
this.messages[locale] = messages;
|
||||
if ( !this.messages[locale] ) {
|
||||
this.messages[locale] = messages;
|
||||
} else {
|
||||
this.messages[locale] = $.extend( this.messages[locale], messages );
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
Loading…
Reference in a new issue