Extends
Constructor
new ve.ui.MWLanguagesPage(name, [config])
#
MediaWiki meta dialog Languages page.
Methods
getAllLanguageItems() → {jQuery.Promise}
#
Get array of language items from meta list
getLanguageItemFromMetaListItem(metaItem) → {Object}
#
Gets language item from meta list item
Parameters:
Name | Type | Description |
---|---|---|
metaItem |
ve.dm.MWLanguageMetaItem |
Returns:
item
- Type
- Object
Gets language item from meta list item
getLocalLanguageItems() → {Array.<Object>}
#
Get array of language items from meta list
Returns:
items
Get array of language items from meta list
onAllLanguageItemsError()
#
Handle language items failing to be loaded.
TODO: This error function should probably not be empty.
Handle language items failing to be loaded.
onAllLanguageItemsSuccess(deferred, response)
#
Handle language items being loaded.
Parameters:
Name | Type | Description |
---|---|---|
deferred |
jQuery.Deferred | Deferred to resolve with language data |
response |
Object | API response |
Handle language items being loaded.