w/extensions/MobileFrontend/resources/mobile.languages.structured/LanguageOverlay.js
/**
	 * Overlay displaying a structured list of languages for a page
	 *
	 * @class LanguageOverlay
	 * @extends Overlay
	 *
	 * @constructor
	 * @param {Object} options Configuration options
	 * @param {Object[]} options.languages list of language objects as returned by the API
	 * @param {Array|boolean} options.variants language variant objects or false if no variants exist
	 * @param {string} [options.deviceLanguage] the device's primary language
	 */
Overlay displaying a structured list of languages for a page
@class LanguageOverlay
@extends Overlay


Overlay displaying a structured list of languages for a page @class LanguageOverlay @extends Overlay
function LanguageOverlay( options ) {
		var languages;
		languages = langUtil.getStructuredLanguages(
			options.languages,
			options.variants,
			langUtil.getFrequentlyUsedLanguages(),
			options.deviceLanguage
		);
		options.allLanguages = languages.all;
		options.allLanguagesCount = languages.all.length;
		options.suggestedLanguages = languages.suggested;
		options.suggestedLanguagesCount = languages.suggested.length;
		Overlay.call( this, options );
	}
function LanguageOverlay ( options ) { var languages ; languages = langUtil . getStructuredLanguages ( options . languages , options . variants , langUtil . getFrequentlyUsedLanguages ( ) , options . deviceLanguage ) ; options . allLanguages = languages . all ; options . allLanguagesCount = languages . all . length ; options . suggestedLanguages = languages . suggested ; options . suggestedLanguagesCount = languages . suggested . length ; Overlay . call ( this , options ) ; }
Overlay displaying a structured list of languages for a page
 @class LanguageOverlay
 @extends Overlay
Overlay displaying a structured list of languages for a page @class LanguageOverlay @extends Overlay