WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

getid3_quicktime::QuicktimeLanguageLookup() public WP 1.0

Это метод класса: getid3_quicktime{}

Хуков нет.

Возвращает

Строку.

Использование

$getid3_quicktime = new getid3_quicktime();
$getid3_quicktime->QuicktimeLanguageLookup( $languageid );
$languageid(число) (обязательный)

Код getid3_quicktime::QuicktimeLanguageLookup() WP 5.5.1

wp-includes/ID3/module.audio-video.quicktime.php
<?php
public function QuicktimeLanguageLookup($languageid) {
	// http://developer.apple.com/library/mac/#documentation/QuickTime/QTFF/QTFFChap4/qtff4.html#//apple_ref/doc/uid/TP40000939-CH206-34353
	static $QuicktimeLanguageLookup = array();
	if (empty($QuicktimeLanguageLookup)) {
		$QuicktimeLanguageLookup[0]     = 'English';
		$QuicktimeLanguageLookup[1]     = 'French';
		$QuicktimeLanguageLookup[2]     = 'German';
		$QuicktimeLanguageLookup[3]     = 'Italian';
		$QuicktimeLanguageLookup[4]     = 'Dutch';
		$QuicktimeLanguageLookup[5]     = 'Swedish';
		$QuicktimeLanguageLookup[6]     = 'Spanish';
		$QuicktimeLanguageLookup[7]     = 'Danish';
		$QuicktimeLanguageLookup[8]     = 'Portuguese';
		$QuicktimeLanguageLookup[9]     = 'Norwegian';
		$QuicktimeLanguageLookup[10]    = 'Hebrew';
		$QuicktimeLanguageLookup[11]    = 'Japanese';
		$QuicktimeLanguageLookup[12]    = 'Arabic';
		$QuicktimeLanguageLookup[13]    = 'Finnish';
		$QuicktimeLanguageLookup[14]    = 'Greek';
		$QuicktimeLanguageLookup[15]    = 'Icelandic';
		$QuicktimeLanguageLookup[16]    = 'Maltese';
		$QuicktimeLanguageLookup[17]    = 'Turkish';
		$QuicktimeLanguageLookup[18]    = 'Croatian';
		$QuicktimeLanguageLookup[19]    = 'Chinese (Traditional)';
		$QuicktimeLanguageLookup[20]    = 'Urdu';
		$QuicktimeLanguageLookup[21]    = 'Hindi';
		$QuicktimeLanguageLookup[22]    = 'Thai';
		$QuicktimeLanguageLookup[23]    = 'Korean';
		$QuicktimeLanguageLookup[24]    = 'Lithuanian';
		$QuicktimeLanguageLookup[25]    = 'Polish';
		$QuicktimeLanguageLookup[26]    = 'Hungarian';
		$QuicktimeLanguageLookup[27]    = 'Estonian';
		$QuicktimeLanguageLookup[28]    = 'Lettish';
		$QuicktimeLanguageLookup[28]    = 'Latvian';
		$QuicktimeLanguageLookup[29]    = 'Saamisk';
		$QuicktimeLanguageLookup[29]    = 'Lappish';
		$QuicktimeLanguageLookup[30]    = 'Faeroese';
		$QuicktimeLanguageLookup[31]    = 'Farsi';
		$QuicktimeLanguageLookup[31]    = 'Persian';
		$QuicktimeLanguageLookup[32]    = 'Russian';
		$QuicktimeLanguageLookup[33]    = 'Chinese (Simplified)';
		$QuicktimeLanguageLookup[34]    = 'Flemish';
		$QuicktimeLanguageLookup[35]    = 'Irish';
		$QuicktimeLanguageLookup[36]    = 'Albanian';
		$QuicktimeLanguageLookup[37]    = 'Romanian';
		$QuicktimeLanguageLookup[38]    = 'Czech';
		$QuicktimeLanguageLookup[39]    = 'Slovak';
		$QuicktimeLanguageLookup[40]    = 'Slovenian';
		$QuicktimeLanguageLookup[41]    = 'Yiddish';
		$QuicktimeLanguageLookup[42]    = 'Serbian';
		$QuicktimeLanguageLookup[43]    = 'Macedonian';
		$QuicktimeLanguageLookup[44]    = 'Bulgarian';
		$QuicktimeLanguageLookup[45]    = 'Ukrainian';
		$QuicktimeLanguageLookup[46]    = 'Byelorussian';
		$QuicktimeLanguageLookup[47]    = 'Uzbek';
		$QuicktimeLanguageLookup[48]    = 'Kazakh';
		$QuicktimeLanguageLookup[49]    = 'Azerbaijani';
		$QuicktimeLanguageLookup[50]    = 'AzerbaijanAr';
		$QuicktimeLanguageLookup[51]    = 'Armenian';
		$QuicktimeLanguageLookup[52]    = 'Georgian';
		$QuicktimeLanguageLookup[53]    = 'Moldavian';
		$QuicktimeLanguageLookup[54]    = 'Kirghiz';
		$QuicktimeLanguageLookup[55]    = 'Tajiki';
		$QuicktimeLanguageLookup[56]    = 'Turkmen';
		$QuicktimeLanguageLookup[57]    = 'Mongolian';
		$QuicktimeLanguageLookup[58]    = 'MongolianCyr';
		$QuicktimeLanguageLookup[59]    = 'Pashto';
		$QuicktimeLanguageLookup[60]    = 'Kurdish';
		$QuicktimeLanguageLookup[61]    = 'Kashmiri';
		$QuicktimeLanguageLookup[62]    = 'Sindhi';
		$QuicktimeLanguageLookup[63]    = 'Tibetan';
		$QuicktimeLanguageLookup[64]    = 'Nepali';
		$QuicktimeLanguageLookup[65]    = 'Sanskrit';
		$QuicktimeLanguageLookup[66]    = 'Marathi';
		$QuicktimeLanguageLookup[67]    = 'Bengali';
		$QuicktimeLanguageLookup[68]    = 'Assamese';
		$QuicktimeLanguageLookup[69]    = 'Gujarati';
		$QuicktimeLanguageLookup[70]    = 'Punjabi';
		$QuicktimeLanguageLookup[71]    = 'Oriya';
		$QuicktimeLanguageLookup[72]    = 'Malayalam';
		$QuicktimeLanguageLookup[73]    = 'Kannada';
		$QuicktimeLanguageLookup[74]    = 'Tamil';
		$QuicktimeLanguageLookup[75]    = 'Telugu';
		$QuicktimeLanguageLookup[76]    = 'Sinhalese';
		$QuicktimeLanguageLookup[77]    = 'Burmese';
		$QuicktimeLanguageLookup[78]    = 'Khmer';
		$QuicktimeLanguageLookup[79]    = 'Lao';
		$QuicktimeLanguageLookup[80]    = 'Vietnamese';
		$QuicktimeLanguageLookup[81]    = 'Indonesian';
		$QuicktimeLanguageLookup[82]    = 'Tagalog';
		$QuicktimeLanguageLookup[83]    = 'MalayRoman';
		$QuicktimeLanguageLookup[84]    = 'MalayArabic';
		$QuicktimeLanguageLookup[85]    = 'Amharic';
		$QuicktimeLanguageLookup[86]    = 'Tigrinya';
		$QuicktimeLanguageLookup[87]    = 'Galla';
		$QuicktimeLanguageLookup[87]    = 'Oromo';
		$QuicktimeLanguageLookup[88]    = 'Somali';
		$QuicktimeLanguageLookup[89]    = 'Swahili';
		$QuicktimeLanguageLookup[90]    = 'Ruanda';
		$QuicktimeLanguageLookup[91]    = 'Rundi';
		$QuicktimeLanguageLookup[92]    = 'Chewa';
		$QuicktimeLanguageLookup[93]    = 'Malagasy';
		$QuicktimeLanguageLookup[94]    = 'Esperanto';
		$QuicktimeLanguageLookup[128]   = 'Welsh';
		$QuicktimeLanguageLookup[129]   = 'Basque';
		$QuicktimeLanguageLookup[130]   = 'Catalan';
		$QuicktimeLanguageLookup[131]   = 'Latin';
		$QuicktimeLanguageLookup[132]   = 'Quechua';
		$QuicktimeLanguageLookup[133]   = 'Guarani';
		$QuicktimeLanguageLookup[134]   = 'Aymara';
		$QuicktimeLanguageLookup[135]   = 'Tatar';
		$QuicktimeLanguageLookup[136]   = 'Uighur';
		$QuicktimeLanguageLookup[137]   = 'Dzongkha';
		$QuicktimeLanguageLookup[138]   = 'JavaneseRom';
		$QuicktimeLanguageLookup[32767] = 'Unspecified';
	}
	if (($languageid > 138) && ($languageid < 32767)) {
		/*
		ISO Language Codes - http://www.loc.gov/standards/iso639-2/php/code_list.php
		Because the language codes specified by ISO 639-2/T are three characters long, they must be packed to fit into a 16-bit field.
		The packing algorithm must map each of the three characters, which are always lowercase, into a 5-bit integer and then concatenate
		these integers into the least significant 15 bits of a 16-bit integer, leaving the 16-bit integer's most significant bit set to zero.

		One algorithm for performing this packing is to treat each ISO character as a 16-bit integer. Subtract 0x60 from the first character
		and multiply by 2^10 (0x400), subtract 0x60 from the second character and multiply by 2^5 (0x20), subtract 0x60 from the third character,
		and add the three 16-bit values. This will result in a single 16-bit value with the three codes correctly packed into the 15 least
		significant bits and the most significant bit set to zero.
		*/
		$iso_language_id  = '';
		$iso_language_id .= chr((($languageid & 0x7C00) >> 10) + 0x60);
		$iso_language_id .= chr((($languageid & 0x03E0) >>  5) + 0x60);
		$iso_language_id .= chr((($languageid & 0x001F) >>  0) + 0x60);
		$QuicktimeLanguageLookup[$languageid] = getid3_id3v2::LanguageLookup($iso_language_id);
	}
	return (isset($QuicktimeLanguageLookup[$languageid]) ? $QuicktimeLanguageLookup[$languageid] : 'invalid');
}