mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 16:44:51 +00:00
35c0694279
Depends on I63402b1e7 in core. Change-Id: I803a966e380770609a32b6b64e0578e9be750f87
37 lines
864 B
JavaScript
37 lines
864 B
JavaScript
/*!
|
|
* VisualEditor UserInterface MWLanguageSearchWidget class.
|
|
*
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/*global mw */
|
|
|
|
/**
|
|
* Creates an ve.ui.MWLanguageSearchWidget object.
|
|
*
|
|
* @class
|
|
* @extends ve.ui.LanguageSearchWidget
|
|
*
|
|
* @constructor
|
|
* @param {Object} [config] Configuration options
|
|
*/
|
|
ve.ui.MWLanguageSearchWidget = function VeUiMWLanguageSearchWidget( config ) {
|
|
// Parent constructor
|
|
ve.ui.LanguageSearchWidget.call( this, config );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.ui.MWLanguageSearchWidget, ve.ui.LanguageSearchWidget );
|
|
|
|
/* Methods */
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
ve.ui.MWLanguageSearchWidget.prototype.getLanguages = function () {
|
|
return mw.language.getData( mw.config.get( 'wgUserLanguage' ), 'languageNames' ) ||
|
|
$.uls.data.getAutonyms();
|
|
};
|