{"action":"created","comment":{"url":"https://api.github.com/repos/kaltura/server/pulls/comments/65494665","id":65494665,"diff_hunk":"@@ -0,0 +1,283 @@\n+<?php\r\n+\r\n+final class languageCodeManager\r\n+{\r\n+    private static $instance;\r\n+\r\n+    private static $arrayTwoCodeUppercaseKey;\r\n+    private static $arrayThreeCodeTKeyToTwoCodeUppercase;\r\n+    private static $arrayKalturaLanguageNameKeyToTwoCodeUppercase;\r\n+\r\n+    const TWO_CODE_LOWERCASE = 0;\r\n+    const THREE_CODE_T = 1;\r\n+    const THREE_CODE_B = 2;\r\n+    const LANGUAGE_NAME_ISO = 3;\r\n+    const NATIVE_NAME = 4;\r\n+    const LANGUAGE_NAME_KALTURA = 5;\r\n+\r\n+    public static function getInstance()\r\n+    {\r\n+        if (self::$instance === null)\r\n+        {\r\n+            self::$instance = new languageCodeManager();\r\n+        }\r\n+        return self::$instance;\r\n+    }\r\n+\r\n+    private function __clone(){ }\r\n+\r\n+    /**\r\n+     * @param $twoLettersUpper - upper case language code as in ISO 639-1\r\n+     * @param $twoLettersLower - lower case language code as in ISO 639-1\r\n+     * @param $threeLetters_T - lower case three letters language code as in ISO 639-2/T  - if two code is not official then the 3 code is made up\r\n+     * @param $threeLetters_B - lower case three letters language code as in ISO 639-2/B  - if two code is not official then the 3 code is made up\r\n+     * @param $languageName - language name\r\n+     * @param $nativeName - native language name\r\n+     * @param $kalturaName - kaltura language name as in KalturaLanguage, if the language is not defined in kaltura then $kalturaName is the same as $languageName\r\n+     */\r\n+\r\n+    private static function addLanguageToArrays($twoLettersUpper ,$twoLettersLower,$threeLettersT,$threeLettersB,$languageName,$nativeName,$kalturaName)\r\n+    {\r\n+        self::$arrayTwoCodeUppercaseKey[$twoLettersUpper] = array($twoLettersLower,$threeLettersT,$threeLettersB,$languageName,$nativeName,$kalturaName);\r\n+        self::$arrayThreeCodeTKeyToTwoCodeUppercase[$threeLettersT] = $twoLettersUpper;\r\n+        self::$arrayKalturaLanguageNameKeyToTwoCodeUppercase[$kalturaName] = $twoLettersUpper;\r\n+    }\r\n+\r\n+    private function __construct()\r\n+    {\r\n+        self::addLanguageToArrays('AB', \"ab\", \"abk\", \"abk\", \"Abkhaz\", \"\\xd0\\xb0\\xd2\\xa7\\xd1\\x81\\xd1\\x83\\xd0\\xb0 \\xd0\\xb1\\xd1\\x8b\\xd0\\xb7\\xd1\\x88\\xd3\\x99\\xd0\\xb0, \\xd0\\xb0\\xd2\\xa7\\xd1\\x81\\xd1\\x88\\xd3\\x99\\xd0\\xb0\",'Abkhazian');\r\n+        self::addLanguageToArrays('AA', \"aa\", \"aar\", \"aar\", \"Afar\", \"Afaraf\",'Afar');\r\n+        self::addLanguageToArrays('AF', \"af\", \"afr\", \"afr\", \"Afrikaans\", \"Afrikaans\",'Afrikaans');\r\n+        self::addLanguageToArrays('AK', \"ak\", \"aka\", \"aka\", \"Akan\", \"Akan\",'Akan');  //not  yet defined in kaltura\r\n+        self::addLanguageToArrays('SQ', \"sq\", \"sqi\", \"alb\", \"Albanian\", \"Shqip\",'Albanian');\r\n+        self::addLanguageToArrays('AM', \"am\", \"amh\", \"amh\", \"Amharic\", \"\\xe1\\x8a\\xa0\\xe1\\x88\\x9b\\xe1\\x88\\xad\\xe1\\x8a\\x9b\",'Amharic');\r\n+        self::addLanguageToArrays('AR', \"ar\", \"ara\", \"ara\", \"Arabic\", \"\\xd8\\xa7\\xd9\\x84\\xd8\\xb9\\xd8\\xb1\\xd8\\xa8\\xd9\\x8a\\xd8\\xa9\",'Arabic');\r\n+        self::addLanguageToArrays('AN', \"an\", \"arg\", \"arg\", \"Aragonese\", \"aragon\\xc3\\xa9s\",'Aragonese');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('HY', \"hy\", \"hye\", \"arm\", \"Armenian\", \"\\xd5\\x80\\xd5\\xa1\\xd5\\xb5\\xd5\\xa5\\xd6\\x80\\xd5\\xa5\\xd5\\xb6\",'Armenian');\r\n+        self::addLanguageToArrays('AS_', \"as\", \"asm\", \"asm\", \"Assamese\", \"\\xe0\\xa6\\x85\\xe0\\xa6\\xb8\\xe0\\xa6\\xae\\xe0\\xa7\\x80\\xe0\\xa6\\xaf\\xe0\\xa6\\xbc\\xe0\\xa6\\xbe\",'Assamese');\r\n+        self::addLanguageToArrays('AV', \"av\", \"ava\", \"ava\", \"Avaric\", \"\\xd0\\xb0\\xd0\\xb2\\xd0\\xb0\\xd1\\x80 \\xd0\\xbc\\xd0\\xb0\\xd1\\x86\\xd3\\x80, \\xd0\\xbc\\xd0\\xb0\\xd0\\xb3\\xd3\\x80\\xd0\\xb0\\xd1\\x80\\xd1\\x83\\xd0\\xbb \\xd0\\xbc\\xd0\\xb0\\xd1\\x86\\xd3\\x80\",'Avaric');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('AE', \"ae\", \"ave\", \"ave\", \"Avestan\", \"avesta\",'Avestan');\r\n+        self::addLanguageToArrays('AY', \"ay\", \"aym\", \"aym\", \"Aymara\", \"aymar aru\",'Aymara');\r\n+        self::addLanguageToArrays('AZ', \"az\", \"aze\", \"aze\", \"Azerbaijani\", \"az\\xc9\\x99rbaycan dili\",'Azerbaijani');\r\n+        self::addLanguageToArrays('BM', \"bm\", \"bam\", \"bam\", \"Bambara\", \"bamanankan\",'Bambara'); // no two letter code in kalturaLanguauge  // bug in languagekey\r\n+        self::addLanguageToArrays('BA', \"ba\", \"bak\", \"bak\", \"Bashkir\", \"\\xd0\\xb1\\xd0\\xb0\\xd1\\x88\\xd2\\xa1\\xd0\\xbe\\xd1\\x80\\xd1\\x82 \\xd1\\x82\\xd0\\xb5\\xd0\\xbb\\xd0\\xb5\",'Bashkir');\r\n+        self::addLanguageToArrays('EU', \"eu\", \"eus\", \"baq\", \"Basque\", \"euskara, euskera\",'Basque');\r\n+        self::addLanguageToArrays('BE', \"be\", \"bel\", \"bel\", \"Belarusian\", \"\\xd0\\xb1\\xd0\\xb5\\xd0\\xbb\\xd0\\xb0\\xd1\\x80\\xd1\\x83\\xd1\\x81\\xd0\\xba\\xd0\\xb0\\xd1\\x8f \\xd0\\xbc\\xd0\\xbe\\xd0\\xb2\\xd0\\xb0\",'Byelorussian (Belarusian)');\r\n+        self::addLanguageToArrays('BN', \"bn\", \"ben\", \"ben\", \"Bengali, Bangla\", \"\\xe0\\xa6\\xac\\xe0\\xa6\\xbe\\xe0\\xa6\\x82\\xe0\\xa6\\xb2\\xe0\\xa6\\xbe\",'Bengali (Bangla)');\r\n+        self::addLanguageToArrays('BH', \"bh\", \"bih\", \"bih\", \"Bihari\", \"\\xe0\\xa4\\xad\\xe0\\xa5\\x8b\\xe0\\xa4\\x9c\\xe0\\xa4\\xaa\\xe0\\xa5\\x81\\xe0\\xa4\\xb0\\xe0\\xa5\\x80\",'Bihari');\r\n+        self::addLanguageToArrays('BI', \"bi\", \"bis\", \"bis\", \"Bislama\", \"Bislama\",'Bislama');\r\n+        self::addLanguageToArrays('BS', \"bs\", \"bos\", \"bos\", \"Bosnian\", \"bosanski jezik\",'Bosnian');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('BR', \"br\", \"bre\", \"bre\", \"Breton\", \"brezhoneg\",'Breton');\r\n+        self::addLanguageToArrays('BG', \"bg\", \"bul\", \"bul\", \"Bulgarian\", \"\\xd0\\xb1\\xd1\\x8a\\xd0\\xbb\\xd0\\xb3\\xd0\\xb0\\xd1\\x80\\xd1\\x81\\xd0\\xba\\xd0\\xb8 \\xd0\\xb5\\xd0\\xb7\\xd0\\xb8\\xd0\\xba\",'Bulgarian');\r\n+        self::addLanguageToArrays('MY', \"my\", \"mya\", \"bur\", \"Burmese\", \"\\xe1\\x80\\x97\\xe1\\x80\\x99\\xe1\\x80\\xac\\xe1\\x80\\x85\\xe1\\x80\\xac\",'Burmese');\r\n+        self::addLanguageToArrays('CA', \"ca\", \"cat\", \"cat\", \"Catalan\", \"catal\\xc3\\xa0\",'Catalan');\r\n+        self::addLanguageToArrays('CH', \"ch\", \"cha\", \"cha\", \"Chamorro\", \"Chamoru\",'Chamorro');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('CE', \"ce\", \"che\", \"che\", \"Chechen\", \"\\xd0\\xbd\\xd0\\xbe\\xd1\\x85\\xd1\\x87\\xd0\\xb8\\xd0\\xb9\\xd0\\xbd \\xd0\\xbc\\xd0\\xbe\\xd1\\x82\\xd1\\x82\",'Chechen');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('NY', \"ny\", \"nya\", \"nya\", \"Chichewa, Chewa, Nyanja\", \"chiChe\\xc5\\xb5\",'Chichewa'); //not  yet defined in kaltura\r\n+        self::addLanguageToArrays('ZH', \"zh\", \"zho\", \"chi\", \"Chinese\", \"\\xe4\\xb8\\xad\\xe6\\x96\\x87 (Zh\\xc5\\x8dngw\\xc3\\xa9n), \\xe6\\xb1\\x89\\xe8\\xaf\\xad, \\xe6\\xbc\\xa2\\xe8\\xaa\\x9e\",'Chinese');\r\n+        self::addLanguageToArrays('CV', \"cv\", \"chv\", \"chv\", \"Chuvash\", \"\\xd1\\x87\\xd3\\x91\\xd0\\xb2\\xd0\\xb0\\xd1\\x88 \\xd1\\x87\\xd3\\x97\\xd0\\xbb\\xd1\\x85\\xd0\\xb8\",'Chuvash');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('KW', \"kw\", \"cor\", \"cor\", \"Cornish\", \"Kernewek\",'Cornish');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('CO', \"co\", \"cos\", \"cos\", \"Corsican\", \"corsu, lingua corsa\",'Corsican');\r\n+        self::addLanguageToArrays('CR', \"cr\", \"cre\", \"cre\", \"Cree\", \"\\xe1\\x93\\x80\\xe1\\x90\\xa6\\xe1\\x90\\x83\\xe1\\x94\\xad\\xe1\\x90\\x8d\\xe1\\x90\\x8f\\xe1\\x90\\xa3\",'Cree');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('HR', \"hr\", \"hrv\", \"hrv\", \"Croatian\", \"hrvatski jezik\",'Croatian');\r\n+        self::addLanguageToArrays('CS', \"cs\", \"ces\", \"cze\", \"Czech\", \"\\xc4\\x8d\" ,'Czech');//here\r\n+        self::addLanguageToArrays('DA', \"da\", \"dan\", \"dan\", \"Danish\", \"dansk\",'Danish');\r\n+        self::addLanguageToArrays('DV', \"dv\", \"div\", \"div\", \"Divehi, Dhivehi, Maldivian\", \"\\xde\\x8b\\xde\\xa8\\xde\\x88\\xde\\xac\\xde\\x80\\xde\\xa8\",'Divehi, Dhivehi, Maldivian');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('NL', \"nl\", \"nld\", \"dut\", \"Dutch\", \"Nederlands, Vlaams\",'Dutch');\r\n+        self::addLanguageToArrays('DZ', \"dz\", \"dzo\", \"dzo\", \"Dzongkha\", \"\\xe0\\xbd\\xa2\\xe0\\xbe\\xab\\xe0\\xbd\\xbc\\xe0\\xbd\\x84\\xe0\\xbc\\x8b\\xe0\\xbd\\x81\",'Bhutani');\r\n+        self::addLanguageToArrays('EN', \"en\", \"eng\", \"eng\", \"English\", \"English\",'English');\r\n+        self::addLanguageToArrays('EO', \"eo\", \"epo\", \"epo\", \"Esperanto\", \"Esperanto\",'Esperanto');\r\n+        self::addLanguageToArrays('ET', \"et\", \"est\", \"est\", \"Estonian\", \"eesti, eesti keel\",'Estonian');\r\n+        self::addLanguageToArrays('EE', \"ee\", \"ewe\", \"ewe\", \"Ewe\", \"E\\xca\\x8b\",'Ewe'); //not  yet defined in kaltura\r\n+        self::addLanguageToArrays('FO', \"fo\", \"fao\", \"fao\", \"Faroese\", \"f\\xc3\\xb8royskt\",'Faeroese');\r\n+        self::addLanguageToArrays('FJ', \"fj\", \"fij\", \"fij\", \"Fijian\", \"vosa Vakaviti\",'Fiji');\r\n+        self::addLanguageToArrays('FI', \"fi\", \"fin\", \"fin\", \"Finnish\", \"suomi, suomen kieli\",'Finnish');\r\n+        self::addLanguageToArrays('FR', \"fr\", \"fra\", \"fre\", \"French\", \"fran\\xc3\\xa7\",'French');\r\n+        self::addLanguageToArrays('FF', \"ff\", \"ful\", \"ful\", \"Fula, Fulah, Pulaar, Pular\", \"Fulfulde, Pulaar, Pular\",'Fula, Fulah, Pulaar, Pular');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('GL', \"gl\", \"glg\", \"glg\", \"Galician\", \"galego\",'Galician');\r\n+        self::addLanguageToArrays('KA', \"ka\", \"kat\", \"geo\", \"Georgian\", \"\\xe1\\x83\\xa5\\xe1\\x83\\x90\\xe1\\x83\\xa0\\xe1\\x83\\x97\\xe1\\x83\\xa3\\xe1\\x83\\x9a\\xe1\\x83\\x98\",'Georgian');\r\n+        self::addLanguageToArrays('DE', \"de\", \"deu\", \"ger\", \"German\", \"Deutsch\",'German');\r\n+        self::addLanguageToArrays('EL', \"el\", \"ell\", \"gre\", \"Greek (modern)\", \"\\xce\\xb5\\xce\\xbb\\xce\\xbb\\xce\\xb7\\xce\\xbd\\xce\\xb9\\xce\\xba\\xce\\xac\",'Greek');\r\n+        self::addLanguageToArrays('GN', \"gn\", \"grn\", \"grn\", \"Guaran\\xc3\\xad\", \"Ava\\xc3\\xb1\",'Guarani');\r\n+        self::addLanguageToArrays('GU', \"gu\", \"guj\", \"guj\", \"Gujarati\", \"\\xe0\\xaa\\x97\\xe0\\xab\\x81\\xe0\\xaa\\x9c\\xe0\\xaa\\xb0\\xe0\\xaa\\xbe\\xe0\\xaa\\xa4\\xe0\\xab\\x80\",'Gujarati');\r\n+        self::addLanguageToArrays('HT', \"ht\", \"hat\", \"hat\", \"Haitian, Haitian Creole\", \"Krey\\xc3\\xb2l ayisyen\",'Haitian, Haitian Creole');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('HA', \"ha\", \"hau\", \"hau\", \"Hausa\", \"(Hausa) \\xd9\\x87\\xd9\\x8e\\xd9\\x88\\xd9\\x8f\\xd8\\xb3\\xd9\\x8e\",'Hausa');\r\n+        self::addLanguageToArrays('HE', \"he\", \"heb\", \"heb\", \"Hebrew (modern)\", \"\\xd7\\xa2\\xd7\\x91\\xd7\\xa8\\xd7\\x99\\xd7\\xaa\",'Hebrew');\r\n+        self::addLanguageToArrays('HZ', \"hz\", \"her\", \"her\", \"Herero\", \"Otjiherero\",'Herero');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('HI', \"hi\", \"hin\", \"hin\", \"Hindi\", \"\\xe0\\xa4\\xb9\\xe0\\xa4\\xbf\\xe0\\xa4\\xa8\\xe0\\xa5\\x8d\\xe0\\xa4\\xa6\\xe0\\xa5\\x80, \\xe0\\xa4\\xb9\\xe0\\xa4\\xbf\\xe0\\xa4\\x82\\xe0\\xa4\\xa6\\xe0\\xa5\\x80\",'Hindi');\r\n+        self::addLanguageToArrays('HO', \"ho\", \"hmo\", \"hmo\", \"Hiri Motu\", \"Hiri Motu\",'Hiri Motu');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('HU', \"hu\", \"hun\", \"hun\", \"Hungarian\", \"magyar\",'Hungarian');\r\n+        self::addLanguageToArrays('IA', \"ia\", \"ina\", \"ina\", \"Interlingua\", \"Interlingua\",'Interlingua');\r\n+        self::addLanguageToArrays('ID', \"id\", \"ind\", \"ind\", \"Indonesian\", \"Bahasa Indonesia\",'Indonesian');\r\n+        self::addLanguageToArrays('IE', \"ie\", \"ile\", \"ile\", \"Interlingue\", \"Originally called Occidental; then Interlingue after WWII\",'Interlingue');\r\n+        self::addLanguageToArrays('GA', \"ga\", \"gle\", \"gle\", \"Irish\", \"Gaeilge\",'Irish');\r\n+        self::addLanguageToArrays('IG', \"ig\", \"ibo\", \"ibo\", \"Igbo\", \"As\\xe1\\xbb\\xa5s\\xe1\\xbb\\xa5 Igbo\",'Igbo');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('IK', \"ik\", \"ipk\", \"ipk\", \"Inupiaq\", \"I\\xc3\\xb1upiaq, I\\xc3\\xb1upiatun\",'Inupiak');\r\n+        self::addLanguageToArrays('IO', \"io\", \"ido\", \"ido\", \"Ido\", \"Ido\",'Ido');//not  yet defined in kaltura  - remove duplicate\r\n+        self::addLanguageToArrays('IS', \"is\", \"isl\", \"ice\", \"Icelandic\", \"\\xc3\\x8dslenska\",'Icelandic');\r\n+        self::addLanguageToArrays('IT', \"it\", \"ita\", \"ita\", \"Italian\", \"italiano\",'Italian');\r\n+        self::addLanguageToArrays('IU', \"iu\", \"iku\", \"iku\", \"Inuktitut\", \"\\xe1\\x90\\x83\\xe1\\x93\\x84\\xe1\\x92\\x83\\xe1\\x91\\x8e\\xe1\\x91\\x90\\xe1\\x91\\xa6\",'Inuktitut');\r\n+        self::addLanguageToArrays('JA', \"ja\", \"jpn\", \"jpn\", \"Japanese\", \"\\xe6\\x97\\xa5\\xe6\\x9c\\xac\\xe8\\xaa\\x9e (\\xe3\\x81\\xab\\xe3\\x81\\xbb\\xe3\\x82\\x93\\xe3\\x81\\x94)\",'Japanese');\r\n+        self::addLanguageToArrays('JV', \"jv\", \"jav\", \"jav\", \"Javanese\", \"\\xea\\xa6\\xa7\\xea\\xa6\\xb1\\xea\\xa6\\x97\\xea\\xa6\\xae\",'Javanese');\r\n+        self::addLanguageToArrays('KL', \"kl\", \"kal\", \"kal\", \"Kalaallisut, Greenlandic\", \"kalaallisut, kalaallit oqaasii\",'Greenlandic');\r\n+        self::addLanguageToArrays('KN', \"kn\", \"kan\", \"kan\", \"Kannada\", \"\\xe0\\xb2\\x95\\xe0\\xb2\\xa8\\xe0\\xb3\\x8d\\xe0\\xb2\\xa8\\xe0\\xb2\\xa1\",'Kannada');\r\n+        self::addLanguageToArrays('KR', \"kr\", \"kau\", \"kau\", \"Kanuri\", \"Kanuri\",'Kanuri');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('KS', \"ks\", \"kas\", \"kas\", \"Kashmiri\", \"\\xe0\\xa4\\x95\\xe0\\xa4\\xb6\\xe0\\xa5\\x8d\\xe0\\xa4\\xae\\xe0\\xa5\\x80\\xe0\\xa4\\xb0\\xe0\\xa5\\x80, \\xd9\\x83\\xd8\\xb4\\xd9\\x85\\xd9\\x8a\\xd8\\xb1\\xd9\\x8a\\xe2\\x80\\x8e\",'Kashmiri');\r\n+        self::addLanguageToArrays('KK', \"kk\", \"kaz\", \"kaz\", \"Kazakh\", \"\\xd2\\x9b\\xd0\\xb0\\xd0\\xb7\\xd0\\xb0\\xd2\\x9b \\xd1\\x82\\xd1\\x96\\xd0\\xbb\\xd1\\x96\",'Kazakh');\r\n+        self::addLanguageToArrays('KM', \"km\", \"khm\", \"khm\", \"Khmer\", \"\\xe1\\x9e\\x81\\xe1\\x9f\\x92\\xe1\\x9e\\x98\\xe1\\x9f\\x82\\xe1\\x9e\\x9a, \\xe1\\x9e\\x81\\xe1\\x9f\\x81\\xe1\\x9e\\x98\\xe1\\x9e\\x9a\\xe1\\x9e\\x97\\xe1\\x9e\\xb6\\xe1\\x9e\\x9f\\xe1\\x9e\\xb6, \\xe1\\x9e\\x97\\xe1\\x9e\\xb6\\xe1\\x9e\\x9f\\xe1\\x9e\\xb6\\xe1\\x9e\\x81\\xe1\\x9f\\x92\\xe1\\x9e\\x98\\xe1\\x9f\\x82\\xe1\\x9e\\x9a\",'Cambodian');\r\n+        self::addLanguageToArrays('KI', \"ki\", \"kik\", \"kik\", \"Kikuyu, Gikuyu\", \"G\\xc4\\xa9k\\xc5\\xa9y\\xc5\\xa9\",'Kikuyu, Gikuyu');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('RW', \"rw\", \"kin\", \"kin\", \"Kinyarwanda\", \"Ikinyarwanda\",'Kinyarwanda (Ruanda)');\r\n+        self::addLanguageToArrays('KY', \"ky\", \"kir\", \"kir\", \"Kyrgyz\", \"\\xd0\\x9a\\xd1\\x8b\\xd1\\x80\\xd0\\xb3\\xd1\\x8b\\xd0\\xb7\\xd1\\x87\\xd0\\xb0, \\xd0\\x9a\\xd1\\x8b\\xd1\\x80\\xd0\\xb3\\xd1\\x8b\\xd0\\xb7 \\xd1\\x82\\xd0\\xb8\\xd0\\xbb\\xd0\\xb8\",'Kirghiz');\r\n+        self::addLanguageToArrays('KV', \"kv\", \"kom\", \"kom\", \"Komi\", \"\\xd0\\xba\\xd0\\xbe\\xd0\\xbc\\xd0\\xb8 \\xd0\\xba\\xd1\\x8b\\xd0\\xb2\",'Komi');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('KG', \"kg\", \"kon\", \"kon\", \"Kongo\", \"Kikongo\",'Kongo');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('KO', \"ko\", \"kor\", \"kor\", \"Korean\", \"\\xed\\x95\\x9c\\xea\\xb5\\xad\\xec\\x96\\xb4, \\xec\\xa1\\xb0\\xec\\x84\\xa0\\xec\\x96\\xb4\",'Korean');\r\n+        self::addLanguageToArrays('KU', \"ku\", \"kur\", \"kur\", \"Kurdish\", \"Kurd\\xc3\\xae, \\xd9\\x83\\xd9\\x88\\xd8\\xb1\\xd8\\xaf\\xdb\\x8c\\xe2\\x80\\x8e\",'Kurdish');\r\n+        self::addLanguageToArrays('KJ', \"kj\", \"kua\", \"kua\", \"Kwanyama, Kuanyama\", \"Kuanyama\".'Kwanyama, Kuanyama','Kwanyama, Kuanyama');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('LA', \"la\", \"lat\", \"lat\", \"Latin\", \"latine, lingua latina\",'Latin');\r\n+        self::addLanguageToArrays('LB', \"lb\", \"ltz\", \"ltz\", \"Luxembourgish, Letzeburgesch\", \"L\\xc3\\xabtzebuergesch\",'Luxembourgish, Letzeburgesch');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('LG', \"lg\", \"lug\", \"lug\", \"Ganda\", \"Luganda\",'Ganda');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('LI', \"li\", \"lim\", \"lim\", \"Limburgish, Limburgan, Limburger\", \"Limburgs\",'Limburgish ( Limburger)');\r\n+        self::addLanguageToArrays('LN', \"ln\", \"lin\", \"lin\", \"Lingala\", \"Ling\\xc3\\xa1la\",'Lingala');\r\n+        self::addLanguageToArrays('LO', \"lo\", \"lao\", \"lao\", \"Lao\", \"\\xe0\\xba\\x9e\\xe0\\xba\\xb2\\xe0\\xba\\xaa\\xe0\\xba\\xb2\\xe0\\xba\\xa5\\xe0\\xba\\xb2\\xe0\\xba\\xa7\",'Laothian');\r\n+        self::addLanguageToArrays('LT', \"lt\", \"lit\", \"lit\", \"Lithuanian\", \"lietuvi\\xc5\\xb3 kalba\",'Lithuanian');\r\n+        self::addLanguageToArrays('LU', \"lu\", \"lub\", \"lub\", \"Luba-Katanga\", \"Tshiluba\",'Luba-Katanga');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('LV', \"lv\", \"lav\", \"lav\", \"Latvian\", \"latvie\\xc5\\xa1u valoda\",'Latvian (Lettish)');\r\n+        self::addLanguageToArrays('GV', \"gv\", \"glv\", \"glv\", \"Manx\", \"Gaelg, Gailck\",'Gaelic (Manx)');\r\n+        self::addLanguageToArrays('MK', \"mk\", \"mkd\", \"mac\", \"Macedonian\", \"\\xd0\\xbc\\xd0\\xb0\\xd0\\xba\\xd0\\xb5\\xd0\\xb4\\xd0\\xbe\\xd0\\xbd\\xd1\\x81\\xd0\\xba\\xd0\\xb8 \\xd1\\x98\\xd0\\xb0\\xd0\\xb7\\xd0\\xb8\\xd0\\xba\",'Macedonian');\r\n+        self::addLanguageToArrays('MG', \"mg\", \"mlg\", \"mlg\", \"Malagasy\", \"fiteny malagasy\",'Malagasy');\r\n+        self::addLanguageToArrays('MS', \"ms\", \"msa\", \"may\", \"Malay\", \"bahasa Melayu, \\xd8\\xa8\\xd9\\x87\\xd8\\xa7\\xd8\\xb3 \\xd9\\x85\\xd9\\x84\\xd8\\xa7\\xd9\\x8a\\xd9\\x88\\xe2\\x80\\x8e\",'Malay');\r\n+        self::addLanguageToArrays('ML', \"ml\", \"mal\", \"mal\", \"Malayalam\", \"\\xe0\\xb4\\xae\\xe0\\xb4\\xb2\\xe0\\xb4\\xaf\\xe0\\xb4\\xbe\\xe0\\xb4\\xb3\\xe0\\xb4\\x82\",'Malayalam');\r\n+        self::addLanguageToArrays('MT', \"mt\", \"mlt\", \"mlt\", \"Maltese\", \"Malti\",'Maltese');\r\n+        self::addLanguageToArrays('MI', \"mi\", \"mri\", \"mao\", \"M\\xc4\\x81ori\", \"te reo M\\xc4\\x81ori\",'Maori');\r\n+        self::addLanguageToArrays('MR', \"mr\", \"mar\", \"mar\", \"Marathi (Mar\\xc4\\x81\\xe1\\xb9\\xadh\\xc4\\xab)\", \"\\xe0\\xa4\\xae\\xe0\\xa4\\xb0\\xe0\\xa4\\xbe\\xe0\\xa4\\xa0\\xe0\\xa5\\x80\",'Marathi');\r\n+        self::addLanguageToArrays('MH', \"mh\", \"mah\", \"mah\", \"Marshallese\", \"Kajin M\\xcc\\xa7\",'Marshallese');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('MN', \"mn\", \"mon\", \"mon\", \"Mongolian\", \"\\xd0\\x9c\\xd0\\xbe\\xd0\\xbd\\xd0\\xb3\\xd0\\xbe\\xd0\\xbb \\xd1\\x85\\xd1\\x8d\\xd0\\xbb\",'Mongolian');\r\n+        self::addLanguageToArrays('NA', \"na\", \"nau\", \"nau\", \"Nauruan\", \"Dorerin Naoero\",'Nauru');\r\n+        self::addLanguageToArrays('NV', \"nv\", \"nav\", \"nav\", \"Navajo, Navaho\", \"Din\\xc3\\xa9 bizaad\",'Navajo, Navaho');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('ND', \"nd\", \"nde\", \"nde\", \"Northern Ndebele\", \"isiNdebele\",'Northern Ndebele');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('NE', \"ne\", \"nep\", \"nep\", \"Nepali\", \"\\xe0\\xa4\\xa8\\xe0\\xa5\\x87\\xe0\\xa4\\xaa\\xe0\\xa4\\xbe\\xe0\\xa4\\xb2\\xe0\\xa5\\x80\",'Nepali');\r\n+        self::addLanguageToArrays('NG', \"ng\", \"ndo\", \"ndo\", \"Ndonga\", \"Owambo\",'Ndonga');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('NB', \"nb\", \"nob\", \"nob\", \"Norwegian Bokm\\xc3\\xa5l\", \"Norsk bokm\\xc3\\xa5l\",\"Norwegian Bokm\\xc3\\xa5l\");//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('NN', \"nn\", \"nno\", \"nno\", \"Norwegian Nynorsk\", \"Norsk nynorsk\",'Norwegian Nynorsk');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('NO', \"no\", \"nor\", \"nor\", \"Norwegian\", \"Norsk\",'Norwegian');\r\n+        self::addLanguageToArrays('II', \"ii\", \"iii\", \"iii\", \"Nuosu\", \"\\xea\\x86\\x88\\xea\\x8c\\xa0\\xea\\x92\\xbf Nuosuhxop\",'Nuosu');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('NR', \"nr\", \"nbl\", \"nbl\", \"Southern Ndebele\", \"isiNdebele\",'Southern Ndebele');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('OC', \"oc\", \"oci\", \"oci\", \"Occitan\", \"occitan, lenga d'\\xc3\\xb2\",'Occitan');\r\n+        self::addLanguageToArrays('OJ', \"oj\", \"oji\", \"oji\", \"Ojibwe, Ojibwa\", \"\\xe1\\x90\\x8a\\xe1\\x93\\x82\\xe1\\x94\\x91\\xe1\\x93\\x88\\xe1\\x90\\xaf\\xe1\\x92\\xa7\\xe1\\x90\\x8e\\xe1\\x93\\x90\",'Ojibwe, Ojibwa');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('CU', \"cu\", \"chu\", \"chu\", \"Old Church Slavonic, Church Slavonic, Old Bulgarian\", \"\\xd1\\xa9\\xd0\\xb7\\xd1\\x8b\\xd0\\xba\\xd1\\x8a \\xd1\\x81\\xd0\\xbb\\xd0\\xbe\\xd0\\xb2\\xd1\\xa3\\xd0\\xbd\\xd1\\x8c\\xd1\\x81\\xd0\\xba\\xd1\\x8a\",'Old Church Slavonic, Church Slavonic, Old Bulgarian');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('OM', \"om\", \"orm\", \"orm\", \"Oromo\", \"Afaan Oromoo\",'Oromo (Afan, Galla)');\r\n+        self::addLanguageToArrays('OR_', \"or\", \"ori\", \"ori\", \"Oriya\", \"\\xe0\\xac\\x93\\xe0\\xac\\xa1\\xe0\\xac\\xbc\\xe0\\xac\\xbf\\xe0\\xac\\x86\",'Oriya');\r\n+        self::addLanguageToArrays('OS', \"os\", \"oss\", \"oss\", \"Ossetian, Ossetic\", \"\\xd0\\xb8\\xd1\\x80\\xd0\\xbe\\xd0\\xbd \\xc3\\xa6\\xd0\\xb2\\xd0\\xb7\\xd0\\xb0\\xd0\\xb3\",'Ossetian, Ossetic');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('PA', \"pa\", \"pan\", \"pan\", \"Panjabi, Punjabi\", \"\\xe0\\xa8\\xaa\\xe0\\xa9\\xb0\\xe0\\xa8\\x9c\\xe0\\xa8\\xbe\\xe0\\xa8\\xac\\xe0\\xa9\\x80, \\xd9\\xbe\\xd9\\x86\\xd8\\xac\\xd8\\xa7\\xd8\\xa8\\xdb\\x8c\\xe2\\x80\\x8e\",'Punjabi');\r\n+        self::addLanguageToArrays('PI', \"pi\", \"pli\", \"pli\", \"P\\xc4\\x81li\", \"\\xe0\\xa4\\xaa\\xe0\\xa4\\xbe\\xe0\\xa4\\xb4\\xe0\\xa4\\xbf\",\"P\\xc4\\x81li\");//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('FA', \"fa\", \"fas\", \"per\", \"Persian (Farsi)\", \"\\xd9\\x81\\xd8\\xa7\\xd8\\xb1\\xd8\\xb3\\xdb\\x8c\",'Farsi');\r\n+        self::addLanguageToArrays('PL', \"pl\", \"pol\", \"pol\", \"Polish\", \"j\\xc4\\x99zyk polski, polszczyzna\",'Polish');\r\n+        self::addLanguageToArrays('PS', \"ps\", \"pus\", \"pus\", \"Pashto, Pushto\", \"\\xd9\\xbe\\xda\\x9a\\xd8\\xaa\\xd9\\x88\",'Pashto (Pushto)');\r\n+        self::addLanguageToArrays('PT', \"pt\", \"por\", \"por\", \"Portuguese\", \"portugu\\xc3\\xaas\",'Portuguese');\r\n+        self::addLanguageToArrays('QU', \"qu\", \"que\", \"que\", \"Quechua\", \"Runa Simi, Kichwa\",'Quechua');\r\n+        self::addLanguageToArrays('RM', \"rm\", \"roh\", \"roh\", \"Romansh\", \"rumantsch grischun\",'Rhaeto-Romance');\r\n+        self::addLanguageToArrays('RN', \"rn\", \"run\", \"run\", \"Kirundi\", \"Ikirundi\",'Kirundi (Rundi)');\r\n+        self::addLanguageToArrays('RO', \"ro\", \"ron\", \"rum\", \"Romanian\", \"limba rom\\xc3\\xa2n\\xc4\\x83\",'Romanian');\r\n+        self::addLanguageToArrays('RU', \"ru\", \"rus\", \"rus\", \"Russian\", \"\\xd0\\xa0\\xd1\\x83\\xd1\\x81\\xd1\\x81\\xd0\\xba\\xd0\\xb8\\xd0\\xb9\",'Russian');\r\n+        self::addLanguageToArrays('SA', \"sa\", \"san\", \"san\", \"Sanskrit (Sa\\xe1\\xb9\\x81sk\\xe1\\xb9\\x9bta)\", \"\\xe0\\xa4\\xb8\\xe0\\xa4\\x82\\xe0\\xa4\\xb8\\xe0\\xa5\\x8d\\xe0\\xa4\\x95\\xe0\\xa5\\x83\\xe0\\xa4\\xa4\\xe0\\xa4\\xae\\xe0\\xa5\\x8d\",'Sanskrit');\r\n+        self::addLanguageToArrays('SC', \"sc\", \"srd\", \"srd\", \"Sardinian\", \"sardu\",'Sardinian');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('SD', \"sd\", \"snd\", \"snd\", \"Sindhi\", \"\\xe0\\xa4\\xb8\\xe0\\xa4\\xbf\\xe0\\xa4\\xa8\\xe0\\xa5\\x8d\\xe0\\xa4\\xa7\\xe0\\xa5\\x80, \\xd8\\xb3\\xd9\\x86\\xda\\x8c\\xd9\\x8a\\xd8\\x8c \\xd8\\xb3\\xd9\\x86\\xd8\\xaf\\xda\\xbe\\xdb\\x8c\\xe2\\x80\\x8e\",'Sindhi');\r\n+        self::addLanguageToArrays('SE', \"se\", \"sme\", \"sme\", \"Northern Sami\", \"Davvis\\xc3\\xa1megiella\",'Northern Sami');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('SM', \"sm\", \"smo\", \"smo\", \"Samoan\", \"gagana fa'a Samoa\",'Samoan');\r\n+        self::addLanguageToArrays('SG', \"sg\", \"sag\", \"sag\", \"Sango\", \"y\\xc3\\xa2ng\\xc3\\xa2 t\\xc3\\xae s\\xc3\\xa4ng\\xc3\\xb6\",'Sangro');\r\n+        self::addLanguageToArrays('SR', \"sr\", \"srp\", \"srp\", \"Serbian\", \"\\xd1\\x81\\xd1\\x80\\xd0\\xbf\\xd1\\x81\\xd0\\xba\\xd0\\xb8 \\xd1\\x98\\xd0\\xb5\\xd0\\xb7\\xd0\\xb8\\xd0\\xba\",'Serbian');\r\n+        self::addLanguageToArrays('GD', \"gd\", \"gla\", \"gla\", \"Scottish Gaelic, Gaelic\", \"G\\xc3\\xa0idhlig\",'Gaelic (Scottish)');\r\n+        self::addLanguageToArrays('SN', \"sn\", \"sna\", \"sna\", \"Shona\", \"chiShona\",'Shona');\r\n+        self::addLanguageToArrays('SI', \"si\", \"sin\", \"sin\", \"Sinhala, Sinhalese\", \"\\xe0\\xb7\\x83\\xe0\\xb7\\x92\\xe0\\xb6\\x82\\xe0\\xb7\\x84\\xe0\\xb6\\xbd\",'Sinhalese');\r\n+        self::addLanguageToArrays('SK', \"sk\", \"slk\", \"slo\", \"Slovak\", \"sloven\\xc4\\x8dina, slovensk\\xc3\\xbd jazyk\",'Slovak');\r\n+        self::addLanguageToArrays('SL', \"sl\", \"slv\", \"slv\", \"Slovene\", \"slovenski jezik, sloven\\xc5\\xa1\\xc4\\x8dina\",'Slovenian');\r\n+        self::addLanguageToArrays('SO', \"so\", \"som\", \"som\", \"Somali\", \"Soomaaliga, af Soomaali\",'Somali');\r\n+        self::addLanguageToArrays('ST', \"st\", \"sot\", \"sot\", \"Southern Sotho\", \"Sesotho\",'Sesotho');\r\n+        self::addLanguageToArrays('ES', \"es\", \"spa\", \"spa\", \"Spanish\", \"espa\\xc3\\xb1ol\",'Spanish');\r\n+        self::addLanguageToArrays('SU', \"su\", \"sun\", \"sun\", \"Sundanese\", \"Basa Sunda\",'Sundanese');\r\n+        self::addLanguageToArrays('SW', \"sw\", \"swa\", \"swa\", \"Swahili\", \"Kiswahili\",'Swahili (Kiswahili)');\r\n+        self::addLanguageToArrays('SS', \"ss\", \"ssw\", \"ssw\", \"Swati\", \"SiSwati\",'Siswati');\r\n+        self::addLanguageToArrays('SV', \"sv\", \"swe\", \"swe\", \"Swedish\", \"svenska\",'Swedish');\r\n+        self::addLanguageToArrays('TA', \"ta\", \"tam\", \"tam\", \"Tamil\", \"\\xe0\\xae\\xa4\\xe0\\xae\\xae\\xe0\\xae\\xbf\\xe0\\xae\\xb4\\xe0\\xaf\\x8d\",'Tamil');\r\n+        self::addLanguageToArrays('TE', \"te\", \"tel\", \"tel\", \"Telugu\", \"\\xe0\\xb0\\xa4\\xe0\\xb1\\x86\\xe0\\xb0\\xb2\\xe0\\xb1\\x81\\xe0\\xb0\\x97\\xe0\\xb1\\x81\",'Telugu');\r\n+        self::addLanguageToArrays('TG', \"tg\", \"tgk\", \"tgk\", \"Tajik\", \"\\xd1\\x82\\xd0\\xbe\\xd2\\xb7\\xd0\\xb8\\xd0\\xba\\xd3\\xa3, to\\xc3\\xa7ik\\xc4\\xab, \\xd8\\xaa\\xd8\\xa7\\xd8\\xac\\xdb\\x8c\\xda\\xa9\\xdb\\x8c\\xe2\\x80\\x8e\",'Tajik');\r\n+        self::addLanguageToArrays('TH', \"th\", \"tha\", \"tha\", \"Thai\", \"\\xe0\\xb9\\x84\\xe0\\xb8\\x97\\xe0\\xb8\\xa2\",'Thai');\r\n+        self::addLanguageToArrays('TI', \"ti\", \"tir\", \"tir\", \"Tigrinya\", \"\\xe1\\x89\\xb5\\xe1\\x8c\\x8d\\xe1\\x88\\xad\\xe1\\x8a\\x9b\",'Tigrinya');\r\n+        self::addLanguageToArrays('BO', \"bo\", \"bod\", \"tib\", \"Tibetan Standard, Tibetan, Central\", \"\\xe0\\xbd\\x96\\xe0\\xbd\\xbc\\xe0\\xbd\\x91\\xe0\\xbc\\x8b\\xe0\\xbd\\xa1\\xe0\\xbd\\xb2\\xe0\\xbd\\x82\",'Tibetan');\r\n+        self::addLanguageToArrays('TK', \"tk\", \"tuk\", \"tuk\", \"Turkmen\", \"T\\xc3\\xbcrkmen, \\xd0\\xa2\\xd2\\xaf\\xd1\\x80\\xd0\\xba\\xd0\\xbc\\xd0\\xb5\\xd0\\xbd\",'Turkmen');\r\n+        self::addLanguageToArrays('TL', \"tl\", \"tgl\", \"tgl\", \"Tagalog\", \"Wikang Tagalog\",'Tagalog');\r\n+        self::addLanguageToArrays('TN', \"tn\", \"tsn\", \"tsn\", \"Tswana\", \"Setswana\",'Setswana');\r\n+        self::addLanguageToArrays('TO', \"to\", \"ton\", \"ton\", \"Tonga (Tonga Islands)\", \"faka Tonga\",'Tonga');\r\n+        self::addLanguageToArrays('TR', \"tr\", \"tur\", \"tur\", \"Turkish\", \"T\\xc3\\xbcrk\\xc3\\xa7\",'Turkish');\r\n+        self::addLanguageToArrays('TS', \"ts\", \"tso\", \"tso\", \"Tsonga\", \"Xitsonga\",'Tsonga');\r\n+        self::addLanguageToArrays('TT', \"tt\", \"tat\", \"tat\", \"Tatar\", \"\\xd1\\x82\\xd0\\xb0\\xd1\\x82\\xd0\\xb0\\xd1\\x80 \\xd1\\x82\\xd0\\xb5\\xd0\\xbb\\xd0\\xb5, tatar tele\",'Tatar');\r\n+        self::addLanguageToArrays('TW', \"tw\", \"twi\", \"twi\", \"Twi\", \"Twi\",'Twi');\r\n+        self::addLanguageToArrays('TY', \"ty\", \"tah\", \"tah\", \"Tahitian\", \"Reo Tahiti\",'Tahitian');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('UG', \"ug\", \"uig\", \"uig\", \"Uyghur\", \"\\xd8\\xa6\\xdb\\x87\\xd9\\x8a\\xd8\\xba\\xdb\\x87\\xd8\\xb1\\xda\\x86\\xdb\\x95\\xe2\\x80\\x8e, Uyghurche\",'Uighur');\r\n+        self::addLanguageToArrays('UK', \"uk\", \"ukr\", \"ukr\", \"Ukrainian\", \"\\xd0\\xa3\\xd0\\xba\\xd1\\x80\\xd0\\xb0\\xd1\\x97\\xd0\\xbd\\xd1\\x81\\xd1\\x8c\\xd0\\xba\\xd0\\xb0\",'Ukrainian');\r\n+        self::addLanguageToArrays('UR', \"ur\", \"urd\", \"urd\", \"Urdu\", \"\\xd8\\xa7\\xd8\\xb1\\xd8\\xaf\\xd9\\x88\",'Urdu');\r\n+        self::addLanguageToArrays('UZ', \"uz\", \"uzb\", \"uzb\", \"Uzbek\", \"O\\xca\\xbbzbek, \\xd0\\x8e\\xd0\\xb7\\xd0\\xb1\\xd0\\xb5\\xd0\\xba, \\xd8\\xa3\\xdb\\x87\\xd8\\xb2\\xd8\\xa8\\xdb\\x90\\xd9\\x83\\xe2\\x80\\x8e\",'Uzbek');\r\n+        self::addLanguageToArrays('VE', \"ve\", \"ven\", \"ven\", \"Venda\", \"Tshiven\\xe1\\xb8\\x93\",'Venda');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('VI', \"vi\", \"vie\", \"vie\", \"Vietnamese\", \"Ti\\xe1\\xba\\xbfng Vi\\xe1\\xbb\\x87t\",'Vietnamese');\r\n+        self::addLanguageToArrays('VO', \"vo\", \"vol\", \"vol\", \"Volap\\xc3\\xbck\", \"Volap\\xc3\\xbck\",'Volapuk');\r\n+        self::addLanguageToArrays('WA', \"wa\", \"wln\", \"wln\", \"Walloon\", \"walon\",'Walloon');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('CY', \"cy\", \"cym\", \"wel\", \"Welsh\", \"Cymraeg\",'Welsh');\r\n+        self::addLanguageToArrays('WO', \"wo\", \"wol\", \"wol\", \"Wolof\", \"Wollof\",'Wolof');\r\n+        self::addLanguageToArrays('FY', \"fy\", \"fry\", \"fry\", \"Western Frisian\", \"Frysk\",'Frisian');\r\n+        self::addLanguageToArrays('XH', \"xh\", \"xho\", \"xho\", \"Xhosa\", \"isiXhosa\",'Xhosa');\r\n+        self::addLanguageToArrays('YI', \"yi\", \"yid\", \"yid\", \"Yiddish\", \"\\xd7\\x99\\xd7\\x99\\xd6\\xb4\\xd7\\x93\\xd7\\x99\\xd7\\xa9\",'Yiddish');\r\n+        self::addLanguageToArrays('YO', \"yo\", \"yor\", \"yor\", \"Yoruba\", \"Yor\\xc3\\xb9\",'Yoruba');\r\n+        self::addLanguageToArrays('ZA', \"za\", \"zha\", \"zha\", \"Zhuang, Chuang\", \"Sa\\xc9\\xaf cue\\xc5\\x8b\\xc6\\x85, Saw cuengh\",'Zhuang, Chuang');//not  yet defined in kaltura\r\n+        self::addLanguageToArrays('ZU', \"zu\", \"zul\", \"zul\", \"Zulu\", \"isiZulu\",'Zulu');\r\n+\r\n+        //The following cases are not part of language ISO , they are added to support backward compatibility\r\n+        self::addLanguageToArrays('SH','sh','shc','shc','Serbo-Croatian','Serbo-Croatian' ,'Serbo-Croatian');// i made that up;\r\n+        self::addLanguageToArrays('EN_GB', \"en\", \"enb\", \"enb\", \"English (British)\", \"English (British)\",'English (British)');\r\n+        self::addLanguageToArrays('EN_US', \"en\", \"enu\", \"enu\", \"English (American)\", \"English (American)\",'English (American)');\r\n+        self::addLanguageToArrays('MO','mo','mol','mol','Moldavian','Moldavian','Moldavian'); //i made that up\r\n+        self::addLanguageToArrays('MU','mu','mul','mul','Multilingual','Multilingual','Multilingual'); //i made that up\r\n+        self::addLanguageToArrays('UN', \"un\", \"und\", \"und\", \"Undefined\", \"Undefined\",\"Undefined\"); //i made up some of this\r\n+\r\n+    }\r\n+\r\n+    public function getLanguageObjectFromTwoCode($codeUppercase)\r\n+    {\r\n+        return self::$arrayTwoCodeUppercaseKey[$codeUppercase];\r\n+    }\r\n+\r\n+    public function getLanguageObjectFromThreeCode($codeT)\r\n+    {\r\n+        return $this->getLanguageObjectFromTwoCode(self::$arrayThreeCodeTKeyToTwoCodeUppercase[$codeT]);\r\n+    }\r\n+\r\n+    public function getLanguageObjectFromKalturaLanguageName($kalturaName)\r\n+    {\r\n+        return $this->getLanguageObjectFromTwoCode(self::$arrayKalturaLanguageNameKeyToTwoCodeUppercase[$kalturaName]);\r\n+    }\r\n+\r\n+    public function getTwoCodeFromKalturaName($kalturaName)\r\n+    {\r\n+        return self::$arrayKalturaLanguageNameKeyToTwoCodeUppercase[$kalturaName];\r\n+    }\r\n+\r\n+    /**\r\n+     * @param $language - the language to search\r\n+     * @return the 2 code key or false if not known\r\n+     */\r\n+    public function isKnownLanguage($language)\r","path":"infra/general/languageCodeManager.php","position":267,"original_position":267,"commit_id":"0cea679269203f1f00e4ad5a14d08afebe047f8e","original_commit_id":"0cea679269203f1f00e4ad5a14d08afebe047f8e","user":{"login":"MosheMaorKaltura","id":10695851,"avatar_url":"https://avatars.githubusercontent.com/u/10695851?v=3","gravatar_id":"","url":"https://api.github.com/users/MosheMaorKaltura","html_url":"https://github.com/MosheMaorKaltura","followers_url":"https://api.github.com/users/MosheMaorKaltura/followers","following_url":"https://api.github.com/users/MosheMaorKaltura/following{/other_user}","gists_url":"https://api.github.com/users/MosheMaorKaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/MosheMaorKaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MosheMaorKaltura/subscriptions","organizations_url":"https://api.github.com/users/MosheMaorKaltura/orgs","repos_url":"https://api.github.com/users/MosheMaorKaltura/repos","events_url":"https://api.github.com/users/MosheMaorKaltura/events{/privacy}","received_events_url":"https://api.github.com/users/MosheMaorKaltura/received_events","type":"User","site_admin":false},"body":"rename to isKnownLanguage to getLanguageKey($language, $langaugeKey=null)","created_at":"2016-06-02T07:24:59Z","updated_at":"2016-06-02T07:24:59Z","html_url":"https://github.com/kaltura/server/pull/4330#discussion_r65494665","pull_request_url":"https://api.github.com/repos/kaltura/server/pulls/4330","_links":{"self":{"href":"https://api.github.com/repos/kaltura/server/pulls/comments/65494665"},"html":{"href":"https://github.com/kaltura/server/pull/4330#discussion_r65494665"},"pull_request":{"href":"https://api.github.com/repos/kaltura/server/pulls/4330"}}},"pull_request":{"url":"https://api.github.com/repos/kaltura/server/pulls/4330","id":72295455,"html_url":"https://github.com/kaltura/server/pull/4330","diff_url":"https://github.com/kaltura/server/pull/4330.diff","patch_url":"https://github.com/kaltura/server/pull/4330.patch","issue_url":"https://api.github.com/repos/kaltura/server/issues/4330","number":4330,"state":"open","locked":false,"title":"Multi language Add language manager and integrate deliveryProfile","user":{"login":"MosheMaorKaltura","id":10695851,"avatar_url":"https://avatars.githubusercontent.com/u/10695851?v=3","gravatar_id":"","url":"https://api.github.com/users/MosheMaorKaltura","html_url":"https://github.com/MosheMaorKaltura","followers_url":"https://api.github.com/users/MosheMaorKaltura/followers","following_url":"https://api.github.com/users/MosheMaorKaltura/following{/other_user}","gists_url":"https://api.github.com/users/MosheMaorKaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/MosheMaorKaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MosheMaorKaltura/subscriptions","organizations_url":"https://api.github.com/users/MosheMaorKaltura/orgs","repos_url":"https://api.github.com/users/MosheMaorKaltura/repos","events_url":"https://api.github.com/users/MosheMaorKaltura/events{/privacy}","received_events_url":"https://api.github.com/users/MosheMaorKaltura/received_events","type":"User","site_admin":false},"body":"PLAT-5521#time 3d","created_at":"2016-06-02T06:33:36Z","updated_at":"2016-06-02T07:24:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"80f5bcc1174e14d0c587b0428dc2b08f23f93c22","assignee":{"login":"MosheMaorKaltura","id":10695851,"avatar_url":"https://avatars.githubusercontent.com/u/10695851?v=3","gravatar_id":"","url":"https://api.github.com/users/MosheMaorKaltura","html_url":"https://github.com/MosheMaorKaltura","followers_url":"https://api.github.com/users/MosheMaorKaltura/followers","following_url":"https://api.github.com/users/MosheMaorKaltura/following{/other_user}","gists_url":"https://api.github.com/users/MosheMaorKaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/MosheMaorKaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MosheMaorKaltura/subscriptions","organizations_url":"https://api.github.com/users/MosheMaorKaltura/orgs","repos_url":"https://api.github.com/users/MosheMaorKaltura/repos","events_url":"https://api.github.com/users/MosheMaorKaltura/events{/privacy}","received_events_url":"https://api.github.com/users/MosheMaorKaltura/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/kaltura/server/pulls/4330/commits","review_comments_url":"https://api.github.com/repos/kaltura/server/pulls/4330/comments","review_comment_url":"https://api.github.com/repos/kaltura/server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaltura/server/issues/4330/comments","statuses_url":"https://api.github.com/repos/kaltura/server/statuses/0cea679269203f1f00e4ad5a14d08afebe047f8e","head":{"label":"kaltura:Kajam-11.16.0-PLAT-5521","ref":"Kajam-11.16.0-PLAT-5521","sha":"0cea679269203f1f00e4ad5a14d08afebe047f8e","user":{"login":"kaltura","id":319096,"avatar_url":"https://avatars.githubusercontent.com/u/319096?v=3","gravatar_id":"","url":"https://api.github.com/users/kaltura","html_url":"https://github.com/kaltura","followers_url":"https://api.github.com/users/kaltura/followers","following_url":"https://api.github.com/users/kaltura/following{/other_user}","gists_url":"https://api.github.com/users/kaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/kaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaltura/subscriptions","organizations_url":"https://api.github.com/users/kaltura/orgs","repos_url":"https://api.github.com/users/kaltura/repos","events_url":"https://api.github.com/users/kaltura/events{/privacy}","received_events_url":"https://api.github.com/users/kaltura/received_events","type":"Organization","site_admin":false},"repo":{"id":11364783,"name":"server","full_name":"kaltura/server","owner":{"login":"kaltura","id":319096,"avatar_url":"https://avatars.githubusercontent.com/u/319096?v=3","gravatar_id":"","url":"https://api.github.com/users/kaltura","html_url":"https://github.com/kaltura","followers_url":"https://api.github.com/users/kaltura/followers","following_url":"https://api.github.com/users/kaltura/following{/other_user}","gists_url":"https://api.github.com/users/kaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/kaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaltura/subscriptions","organizations_url":"https://api.github.com/users/kaltura/orgs","repos_url":"https://api.github.com/users/kaltura/repos","events_url":"https://api.github.com/users/kaltura/events{/privacy}","received_events_url":"https://api.github.com/users/kaltura/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kaltura/server","description":"The official Kaltura server. ","fork":false,"url":"https://api.github.com/repos/kaltura/server","forks_url":"https://api.github.com/repos/kaltura/server/forks","keys_url":"https://api.github.com/repos/kaltura/server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaltura/server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaltura/server/teams","hooks_url":"https://api.github.com/repos/kaltura/server/hooks","issue_events_url":"https://api.github.com/repos/kaltura/server/issues/events{/number}","events_url":"https://api.github.com/repos/kaltura/server/events","assignees_url":"https://api.github.com/repos/kaltura/server/assignees{/user}","branches_url":"https://api.github.com/repos/kaltura/server/branches{/branch}","tags_url":"https://api.github.com/repos/kaltura/server/tags","blobs_url":"https://api.github.com/repos/kaltura/server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaltura/server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaltura/server/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaltura/server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaltura/server/statuses/{sha}","languages_url":"https://api.github.com/repos/kaltura/server/languages","stargazers_url":"https://api.github.com/repos/kaltura/server/stargazers","contributors_url":"https://api.github.com/repos/kaltura/server/contributors","subscribers_url":"https://api.github.com/repos/kaltura/server/subscribers","subscription_url":"https://api.github.com/repos/kaltura/server/subscription","commits_url":"https://api.github.com/repos/kaltura/server/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaltura/server/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaltura/server/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaltura/server/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaltura/server/contents/{+path}","compare_url":"https://api.github.com/repos/kaltura/server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaltura/server/merges","archive_url":"https://api.github.com/repos/kaltura/server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaltura/server/downloads","issues_url":"https://api.github.com/repos/kaltura/server/issues{/number}","pulls_url":"https://api.github.com/repos/kaltura/server/pulls{/number}","milestones_url":"https://api.github.com/repos/kaltura/server/milestones{/number}","notifications_url":"https://api.github.com/repos/kaltura/server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaltura/server/labels{/name}","releases_url":"https://api.github.com/repos/kaltura/server/releases{/id}","deployments_url":"https://api.github.com/repos/kaltura/server/deployments","created_at":"2013-07-12T08:59:26Z","updated_at":"2016-05-25T01:41:49Z","pushed_at":"2016-06-02T06:33:36Z","git_url":"git://github.com/kaltura/server.git","ssh_url":"git@github.com:kaltura/server.git","clone_url":"https://github.com/kaltura/server.git","svn_url":"https://github.com/kaltura/server","homepage":"http://www.kaltura.org","size":243548,"stargazers_count":89,"watchers_count":89,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":95,"mirror_url":null,"open_issues_count":70,"forks":95,"open_issues":70,"watchers":89,"default_branch":"Kajam-11.16.0"}},"base":{"label":"kaltura:Kajam-11.16.0","ref":"Kajam-11.16.0","sha":"ef1967b001516f2ca7d7af65005f8056ca37a9f4","user":{"login":"kaltura","id":319096,"avatar_url":"https://avatars.githubusercontent.com/u/319096?v=3","gravatar_id":"","url":"https://api.github.com/users/kaltura","html_url":"https://github.com/kaltura","followers_url":"https://api.github.com/users/kaltura/followers","following_url":"https://api.github.com/users/kaltura/following{/other_user}","gists_url":"https://api.github.com/users/kaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/kaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaltura/subscriptions","organizations_url":"https://api.github.com/users/kaltura/orgs","repos_url":"https://api.github.com/users/kaltura/repos","events_url":"https://api.github.com/users/kaltura/events{/privacy}","received_events_url":"https://api.github.com/users/kaltura/received_events","type":"Organization","site_admin":false},"repo":{"id":11364783,"name":"server","full_name":"kaltura/server","owner":{"login":"kaltura","id":319096,"avatar_url":"https://avatars.githubusercontent.com/u/319096?v=3","gravatar_id":"","url":"https://api.github.com/users/kaltura","html_url":"https://github.com/kaltura","followers_url":"https://api.github.com/users/kaltura/followers","following_url":"https://api.github.com/users/kaltura/following{/other_user}","gists_url":"https://api.github.com/users/kaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/kaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaltura/subscriptions","organizations_url":"https://api.github.com/users/kaltura/orgs","repos_url":"https://api.github.com/users/kaltura/repos","events_url":"https://api.github.com/users/kaltura/events{/privacy}","received_events_url":"https://api.github.com/users/kaltura/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kaltura/server","description":"The official Kaltura server. ","fork":false,"url":"https://api.github.com/repos/kaltura/server","forks_url":"https://api.github.com/repos/kaltura/server/forks","keys_url":"https://api.github.com/repos/kaltura/server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaltura/server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaltura/server/teams","hooks_url":"https://api.github.com/repos/kaltura/server/hooks","issue_events_url":"https://api.github.com/repos/kaltura/server/issues/events{/number}","events_url":"https://api.github.com/repos/kaltura/server/events","assignees_url":"https://api.github.com/repos/kaltura/server/assignees{/user}","branches_url":"https://api.github.com/repos/kaltura/server/branches{/branch}","tags_url":"https://api.github.com/repos/kaltura/server/tags","blobs_url":"https://api.github.com/repos/kaltura/server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaltura/server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaltura/server/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaltura/server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaltura/server/statuses/{sha}","languages_url":"https://api.github.com/repos/kaltura/server/languages","stargazers_url":"https://api.github.com/repos/kaltura/server/stargazers","contributors_url":"https://api.github.com/repos/kaltura/server/contributors","subscribers_url":"https://api.github.com/repos/kaltura/server/subscribers","subscription_url":"https://api.github.com/repos/kaltura/server/subscription","commits_url":"https://api.github.com/repos/kaltura/server/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaltura/server/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaltura/server/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaltura/server/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaltura/server/contents/{+path}","compare_url":"https://api.github.com/repos/kaltura/server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaltura/server/merges","archive_url":"https://api.github.com/repos/kaltura/server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaltura/server/downloads","issues_url":"https://api.github.com/repos/kaltura/server/issues{/number}","pulls_url":"https://api.github.com/repos/kaltura/server/pulls{/number}","milestones_url":"https://api.github.com/repos/kaltura/server/milestones{/number}","notifications_url":"https://api.github.com/repos/kaltura/server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaltura/server/labels{/name}","releases_url":"https://api.github.com/repos/kaltura/server/releases{/id}","deployments_url":"https://api.github.com/repos/kaltura/server/deployments","created_at":"2013-07-12T08:59:26Z","updated_at":"2016-05-25T01:41:49Z","pushed_at":"2016-06-02T06:33:36Z","git_url":"git://github.com/kaltura/server.git","ssh_url":"git@github.com:kaltura/server.git","clone_url":"https://github.com/kaltura/server.git","svn_url":"https://github.com/kaltura/server","homepage":"http://www.kaltura.org","size":243548,"stargazers_count":89,"watchers_count":89,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":95,"mirror_url":null,"open_issues_count":70,"forks":95,"open_issues":70,"watchers":89,"default_branch":"Kajam-11.16.0"}},"_links":{"self":{"href":"https://api.github.com/repos/kaltura/server/pulls/4330"},"html":{"href":"https://github.com/kaltura/server/pull/4330"},"issue":{"href":"https://api.github.com/repos/kaltura/server/issues/4330"},"comments":{"href":"https://api.github.com/repos/kaltura/server/issues/4330/comments"},"review_comments":{"href":"https://api.github.com/repos/kaltura/server/pulls/4330/comments"},"review_comment":{"href":"https://api.github.com/repos/kaltura/server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaltura/server/pulls/4330/commits"},"statuses":{"href":"https://api.github.com/repos/kaltura/server/statuses/0cea679269203f1f00e4ad5a14d08afebe047f8e"}}}}
{"actor":{"display_login":"MosheMaorKaltura"}}