mirror of
https://github.com/BeitDina/AutoIndex.git
synced 2026-01-05 21:59:41 +01:00
Update Item.php
This commit is contained in:
committed by
GitHub
parent
b16dcf560b
commit
48aaf9fce5
308
classes/Item.php
308
classes/Item.php
@@ -104,14 +104,6 @@ abstract class Item
|
||||
* @var bool True if this is a link to '../'
|
||||
*/
|
||||
protected $is_parent_dir;
|
||||
/**
|
||||
* @var bool True if this is a link to '../'
|
||||
*/
|
||||
protected $creation_time;
|
||||
/**
|
||||
* @var bool True if this is a link to '../'
|
||||
*/
|
||||
protected $last_write_time;
|
||||
|
||||
/**
|
||||
* @param int $timestamp Time in UNIX timestamp format
|
||||
@@ -179,43 +171,31 @@ abstract class Item
|
||||
{
|
||||
$parent_dir = self::make_sure_slash($parent_dir);
|
||||
$full_name = $parent_dir . $filename;
|
||||
$descript_ion_file = $parent_dir . 'descript.ion';
|
||||
$this -> is_parent_dir = false;
|
||||
$this -> m_time = filemtime($full_name);
|
||||
$this -> a_time = fileatime($full_name);
|
||||
$this -> creation_time = date('y-m-d h:i:s', filectime($full_name));
|
||||
$this -> last_write_time = date('h:i:s', filemtime($full_name));
|
||||
$this -> icon = $this -> new_icon = $this -> md5_link = $this -> thumb_link = '';
|
||||
$this->is_parent_dir = false;
|
||||
$this->m_time = filemtime($full_name);
|
||||
$this->a_time = fileatime($full_name);
|
||||
//$this->creation_time = date('y-m-d h:i:s', filectime($full_name));
|
||||
$this->last_write_time = date('h:i:s', filemtime($full_name));
|
||||
$this->icon = $this->new_icon = $this->md5_link = $this->thumb_link = '';
|
||||
|
||||
global $config, $descriptions, $words;
|
||||
global $descriptions, $words;
|
||||
|
||||
$description = (($descriptions -> is_set($full_name)) ? $descriptions -> __get($full_name) : strtoupper(substr($filename, 0, strrpos($filename, '.'))));
|
||||
|
||||
$extend_description = (($words -> is_set('CHAP') && $words -> is_set(strtoupper(substr($description, 0, strrpos($description, '_'))))) ? $words -> __get(strtoupper(substr($description, 0, strrpos($description, '_')))) . ' ' . $words -> __get('CHAP') . ' ' . substr(strrchr($description, '_'), 1) : $description);
|
||||
|
||||
$extend_description = ($words -> is_set($extend_description) ? $words -> __get($extend_description) : $extend_description);
|
||||
|
||||
if (is_file($descript_ion_file))
|
||||
{
|
||||
$descript_ion = $config -> dos_description($filename, $descript_ion_file);
|
||||
|
||||
$descript_ion = !empty($descript_ion) ? $descript_ion . ' ' . $descript_ion : '';
|
||||
}
|
||||
|
||||
$this -> description = ($words -> is_set($description) ? $words -> __get($description) . $descript_ion : $extend_description . $descript_ion);
|
||||
|
||||
$this -> parent_dir = $parent_dir;
|
||||
$description = ((DESCRIPTION_FILE && $descriptions->is_set($full_name)) ? $descriptions->__get($full_name) : strtoupper(substr($filename, 0, strrpos($filename, '.'))));
|
||||
$extend_description = (($words->is_set('CHAP') && $words->is_set(strtoupper(substr($description, 0, strrpos($description, '_'))))) ? $words->__get(strtoupper(substr($description, 0, strrpos($description, '_')))) . ' ' . $words -> __get('CHAP') . ' ' . substr(strrchr($description, '_'), 1) : $description);
|
||||
$extend_description = ($words->is_set($extend_description) ? $words->__get($extend_description) : $extend_description);
|
||||
$this->description = ($words->is_set($description) ? $words->__get($description) : $extend_description);
|
||||
$this->parent_dir = $parent_dir;
|
||||
|
||||
if (DAYS_NEW)
|
||||
{
|
||||
global $config;
|
||||
$days_new = $config -> __get('days_new');
|
||||
$age = (time() - $this -> m_time) / 86400;
|
||||
$days_new = $config->__get('days_new');
|
||||
$age = (time() - $this->m_time) / 86400;
|
||||
$age_r = round($age, 1);
|
||||
$s = (($age_r == 1) ? '' : 's');
|
||||
$this -> description = ($age_r <= 1) ? $this -> description . ' @ ' . $this -> last_write_time : '';
|
||||
$this -> new_icon = (($days_new > 0 && $age <= $days_new) ?
|
||||
(ICON_PATH ? ' <img src="' . $config -> __get('icon_path')
|
||||
$this->description = ($age_r <= 1) ? $this->description . ' @ ' . $this->last_write_time : $this->description;
|
||||
$this->new_icon = (($days_new > 0 && $age <= $days_new) ?
|
||||
(ICON_PATH ? ' <img src="' . $config->__get('icon_path')
|
||||
. 'new.png" alt="' . "$age_r day$s" . ' old" height="14" width="28" />' : ' <span class="autoindex_small" style="color: #FF0000;">[New]</span>') : '');
|
||||
}
|
||||
}
|
||||
@@ -334,12 +314,12 @@ abstract class Item
|
||||
$country_name = 'MOROCCO';
|
||||
break;
|
||||
|
||||
//jrb <EFBFBD> Judeo-Arabic
|
||||
//yhd <EFBFBD> Judeo-Iraqi Arabic
|
||||
//aju <EFBFBD> Judeo-Moroccan Arabic
|
||||
//yud <EFBFBD> Judeo-Tripolitanian Arabic
|
||||
//ajt <EFBFBD> Judeo-Tunisian Arabic
|
||||
//jye <EFBFBD> Judeo-Yemeni Arabic
|
||||
//jrb – Judeo-Arabic
|
||||
//yhd – Judeo-Iraqi Arabic
|
||||
//aju – Judeo-Moroccan Arabic
|
||||
//yud – Judeo-Tripolitanian Arabic
|
||||
//ajt – Judeo-Tunisian Arabic
|
||||
//jye – Judeo-Yemeni Arabic
|
||||
case 'jrb':
|
||||
$lang_name = 'JUDEO-ARABIC';
|
||||
$country_name = 'JUDEA';
|
||||
@@ -403,7 +383,7 @@ abstract class Item
|
||||
break;
|
||||
|
||||
case 'ba':
|
||||
$lang_name = 'BASHKIR'; //Baskortost<EFBFBD>n (Rusia)
|
||||
$lang_name = 'BASHKIR'; //Baskortostán (Rusia)
|
||||
$country_name = 'BOSNIA_&_HERZEGOVINA'; //Bosnian, Croatian, Serbian
|
||||
break;
|
||||
|
||||
@@ -591,10 +571,10 @@ abstract class Item
|
||||
$country_name = 'CHINA';
|
||||
break;
|
||||
//1. Bingzhou spoken in central Shanxi (the ancient Bing Province), including Taiyuan.
|
||||
//2. L<EFBFBD>liang spoken in western Shanxi (including L<EFBFBD>liang) and northern Shaanxi.
|
||||
//2. Lüliang spoken in western Shanxi (including Lüliang) and northern Shaanxi.
|
||||
//3. Shangdang spoken in the area of Changzhi (ancient Shangdang) in southeastern Shanxi.
|
||||
//4. Wutai spoken in parts of northern Shanxi (including Wutai County) and central Inner Mongolia.
|
||||
//5. Da<EFBFBD>Bao spoken in parts of northern Shanxi and central Inner Mongolia, including Baotou.
|
||||
//5. Da–Bao spoken in parts of northern Shanxi and central Inner Mongolia, including Baotou.
|
||||
//6. Zhang-Hu spoken in Zhangjiakou in northwestern Hebei and parts of central Inner Mongolia, including Hohhot.
|
||||
//7. Han-Xin spoken in southeastern Shanxi, southern Hebei (including Handan) and northern Henan (including Xinxiang).
|
||||
//8. Zhi-Yan spoken in Zhidan County and Yanchuan County in northern Shaanxi.
|
||||
@@ -605,7 +585,7 @@ abstract class Item
|
||||
break;
|
||||
// Cantonese is spoken in Hong Kong
|
||||
// ??
|
||||
case 'cmn': //Chinese Mandarin ??? (Pu tong hua) literally translates into <EFBFBD>common tongue.<EFBFBD>
|
||||
case 'cmn': //Chinese Mandarin ??? (Pu tong hua) literally translates into “common tongue.”
|
||||
$lang_name = 'CHINESE_MANDARIN';
|
||||
$country_name = 'CHINA';
|
||||
break;
|
||||
@@ -613,11 +593,11 @@ abstract class Item
|
||||
// ?? / ??
|
||||
//semantic shift has occurred in Min or the rest of Chinese:
|
||||
//*tia?B ? "wok". The Min form preserves the original meaning "cooking pot".
|
||||
//*dzh?nA "rice field". scholars identify the Min word with ch<EFBFBD>ng ? (MC zying) "raised path between fields", but Norman argues that it is cognate with c<EFBFBD>ng ? (MC dzong) "additional layer or floor".
|
||||
//*t<EFBFBD>hioC ? "house". the Min word is cognate with shu ? (MC syuH) "to guard".
|
||||
//*dzh?nA "rice field". scholars identify the Min word with chéng ? (MC zying) "raised path between fields", but Norman argues that it is cognate with céng ? (MC dzong) "additional layer or floor".
|
||||
//*tšhioC ? "house". the Min word is cognate with shu ? (MC syuH) "to guard".
|
||||
//*tshyiC ? "mouth". In Min this form has displaced the common Chinese term kou ?. It is believed to be cognate with hui ? (MC xjwojH) "beak, bill, snout; to pant".
|
||||
//Austroasiatic origin for some Min words:
|
||||
//*-d??A "shaman" compared with Vietnamese <EFBFBD>?ng (/?o?2/) "to shamanize, to communicate with spirits" and Mon do? "to dance (as if) under demonic possession".
|
||||
//*-d??A "shaman" compared with Vietnamese ð?ng (/?o?2/) "to shamanize, to communicate with spirits" and Mon do? "to dance (as if) under demonic possession".
|
||||
//*ki?nB ? "son" appears to be related to Vietnamese con (/k?n/) and Mon kon "child".
|
||||
|
||||
// Southern Min:
|
||||
@@ -643,7 +623,7 @@ abstract class Item
|
||||
//Literal meaning: Min [River]
|
||||
|
||||
//???
|
||||
case 'cpx': //Chinese Pu-Xian Min, Sing-i<EFBFBD>-ua / ???, (Xianyou dialect) http://www.putian.gov.cn/
|
||||
case 'cpx': //Chinese Pu-Xian Min, Sing-iú-ua / ???, (Xianyou dialect) http://www.putian.gov.cn/
|
||||
$lang_name = 'CHINESE_PU-XIAN';
|
||||
$country_name = 'CHINA';
|
||||
break;
|
||||
@@ -745,7 +725,7 @@ abstract class Item
|
||||
|
||||
case 'cw':
|
||||
$lang_name = 'PAPIAMENTU'; // Papiamentu (Portuguese-based Creole), Dutch, English
|
||||
$country_name = 'CURA<EFBFBD>AO'; // Ilha da Cura<EFBFBD>ao (Island of Healing)
|
||||
$country_name = 'CURAÇAO'; // Ilha da Curaçao (Island of Healing)
|
||||
break;
|
||||
|
||||
case 'da':
|
||||
@@ -754,30 +734,30 @@ abstract class Item
|
||||
break;
|
||||
|
||||
//Geman (Deutsch)
|
||||
/* deu <EFBFBD> German
|
||||
gmh <EFBFBD> Middle High German
|
||||
goh <EFBFBD> Old High German
|
||||
gct <EFBFBD> Colonia Tovar German
|
||||
bar <EFBFBD> Bavarian
|
||||
cim <EFBFBD> Cimbrian
|
||||
geh <EFBFBD> Hutterite German
|
||||
ksh <EFBFBD> K<EFBFBD>lsch
|
||||
nds <EFBFBD> Low German
|
||||
sli <EFBFBD> Lower Silesian
|
||||
ltz <EFBFBD> Luxembourgish
|
||||
vmf <EFBFBD> Mainfr<EFBFBD>nkisch
|
||||
mhn <EFBFBD> Mocheno
|
||||
pfl <EFBFBD> Palatinate German
|
||||
pdc <EFBFBD> Pennsylvania German
|
||||
pdt <EFBFBD> Plautdietsch
|
||||
swg <EFBFBD> Swabian German
|
||||
gsw <EFBFBD> Swiss German
|
||||
uln <EFBFBD> Unserdeutsch
|
||||
sxu <EFBFBD> Upper Saxon
|
||||
wae <EFBFBD> Walser German
|
||||
wep <EFBFBD> Westphalian
|
||||
hrx <EFBFBD> Riograndenser Hunsr<EFBFBD>ckisch
|
||||
yec <EFBFBD> Yenish */
|
||||
/* deu – German
|
||||
gmh – Middle High German
|
||||
goh – Old High German
|
||||
gct – Colonia Tovar German
|
||||
bar – Bavarian
|
||||
cim – Cimbrian
|
||||
geh – Hutterite German
|
||||
ksh – Kölsch
|
||||
nds – Low German
|
||||
sli – Lower Silesian
|
||||
ltz – Luxembourgish
|
||||
vmf – Mainfränkisch
|
||||
mhn – Mocheno
|
||||
pfl – Palatinate German
|
||||
pdc – Pennsylvania German
|
||||
pdt – Plautdietsch
|
||||
swg – Swabian German
|
||||
gsw – Swiss German
|
||||
uln – Unserdeutsch
|
||||
sxu – Upper Saxon
|
||||
wae – Walser German
|
||||
wep – Westphalian
|
||||
hrx – Riograndenser Hunsrückisch
|
||||
yec – Yenish */
|
||||
|
||||
|
||||
//Germany 84,900,000 75,101,421 (91.8%) 5,600,000 (6.9%) De facto sole nationwide official language
|
||||
@@ -840,7 +820,7 @@ abstract class Item
|
||||
$country_name = 'DENMARK';
|
||||
break;
|
||||
|
||||
//acf <EFBFBD> Saint Lucian / Dominican Creole French
|
||||
//acf – Saint Lucian / Dominican Creole French
|
||||
case 'acf':
|
||||
$lang_name = 'DOMINICAN_CREOLE_FRENCH'; //ROSEAU
|
||||
$country_name = 'DOMINICA';
|
||||
@@ -863,7 +843,7 @@ abstract class Item
|
||||
case 'aa-DJ':
|
||||
case 'aa_dj':
|
||||
$lang_name = 'DJIBOUTI'; //Yibuti, Afar
|
||||
$country_name = 'REPUBLIC_OF_DJIBOUTI'; //R<EFBFBD>publique de Djibouti
|
||||
$country_name = 'REPUBLIC_OF_DJIBOUTI'; //République de Djibouti
|
||||
break;
|
||||
|
||||
case 'dv':
|
||||
@@ -871,14 +851,14 @@ abstract class Item
|
||||
$country_name = 'MALDIVIA';
|
||||
break;
|
||||
|
||||
//Berbera Taghelmust<EFBFBD> (limba oamenilor alba?tri), zis<EFBFBD> ?i Tuareg<EFBFBD>, este vorbit<EFBFBD> <20>n Sahara occidental<EFBFBD>.
|
||||
//Berbera Tamazigt<EFBFBD> este vorbit<EFBFBD> <20>n masivul Atlas din Maroc, la sud de ora?ul Meknes.
|
||||
//Berbera Zenatic<EFBFBD> zis<EFBFBD> ?i Rifan<EFBFBD>, este vorbit<EFBFBD> <20>n masivul Rif din Maroc, <EFBFBD>n nord-estul ?<EFBFBD>rii.
|
||||
//Berbera ?enuan<EFBFBD> zis<EFBFBD> ?i Telic<EFBFBD>, este vorbit<EFBFBD> <20>n masivul Tell din Algeria, <EFBFBD>n nordul ?<EFBFBD>rii.
|
||||
//Berbera Cabilic<EFBFBD> este vorbit<EFBFBD> <20>n jurul masivelor Mitigea ?i Ores din Algeria, <EFBFBD>n nordul ?<EFBFBD>rii.
|
||||
//Berbera ?auian<EFBFBD> este vorbit<EFBFBD> <20>n jurul ora?ului Batna din Algeria.
|
||||
//Berbera Tahelhit<EFBFBD>, zis<EFBFBD> ?i ?l<EFBFBD>nuan<EFBFBD> (<EFBFBD>n limba francez<EFBFBD> Chleuh) este vorbit<EFBFBD> <20>n jurul masivului Tubkal din Maroc, <EFBFBD>n sud-vestul ?<EFBFBD>rii.
|
||||
//Berbera Tama?ek<EFBFBD>, zis<EFBFBD> ?i Saharian<EFBFBD>, este vorbit<EFBFBD> <20>n Sahara de nord, <EFBFBD>n Algeria, Libia ?i Egipt.
|
||||
//Berbera Taghelmustã (limba oamenilor alba?tri), zisã ?i Tuaregã, este vorbitã în Sahara occidentalã.
|
||||
//Berbera Tamazigtã este vorbitã în masivul Atlas din Maroc, la sud de ora?ul Meknes.
|
||||
//Berbera Zenaticã zisã ?i Rifanã, este vorbitã în masivul Rif din Maroc, în nord-estul ?ãrii.
|
||||
//Berbera ?enuanã zisã ?i Telicã, este vorbitã în masivul Tell din Algeria, în nordul ?ãrii.
|
||||
//Berbera Cabilicã este vorbitã în jurul masivelor Mitigea ?i Ores din Algeria, în nordul ?ãrii.
|
||||
//Berbera ?auianã este vorbitã în jurul ora?ului Batna din Algeria.
|
||||
//Berbera Tahelhitã, zisã ?i ?lãnuanã (în limba francezã Chleuh) este vorbitã în jurul masivului Tubkal din Maroc, în sud-vestul ?ãrii.
|
||||
//Berbera Tama?ekã, zisã ?i Saharianã, este vorbitã în Sahara de nord, în Algeria, Libia ?i Egipt.
|
||||
//Berber: Tacawit (@ city Batna from Chaoui, Algery), Shawiya (Shauian)
|
||||
case 'shy':
|
||||
$lang_name = 'SHAWIYA_BERBER';
|
||||
@@ -918,13 +898,13 @@ abstract class Item
|
||||
break;
|
||||
|
||||
//Greek Language:
|
||||
//ell <EFBFBD> Modern Greek
|
||||
//grc <EFBFBD> Ancient Greek
|
||||
//cpg <EFBFBD> Cappadocian Greek
|
||||
//gmy <EFBFBD> Mycenaean Greek
|
||||
//pnt <EFBFBD> Pontic
|
||||
//tsd <EFBFBD> Tsakonian
|
||||
//yej <EFBFBD> Yevanic
|
||||
//ell – Modern Greek
|
||||
//grc – Ancient Greek
|
||||
//cpg – Cappadocian Greek
|
||||
//gmy – Mycenaean Greek
|
||||
//pnt – Pontic
|
||||
//tsd – Tsakonian
|
||||
//yej – Yevanic
|
||||
|
||||
case 'el':
|
||||
$lang_name = 'GREEK';
|
||||
@@ -947,7 +927,7 @@ abstract class Item
|
||||
$lang_name = 'TSAKONIAN';
|
||||
$country_name = 'GREECE';
|
||||
break;
|
||||
//Albanian: Janina or Janin<EFBFBD>, Aromanian: Ianina, Enina, Turkish: Yanya;
|
||||
//Albanian: Janina or Janinë, Aromanian: Ianina, Enina, Turkish: Yanya;
|
||||
case 'yej':
|
||||
$lang_name = 'YEVANIC';
|
||||
$country_name = 'GREECE';
|
||||
@@ -1282,15 +1262,15 @@ abstract class Item
|
||||
break;
|
||||
|
||||
//for Fulah (also spelled Fula) the ISO 639-1 code is ff.
|
||||
//fub <EFBFBD> Adamawa Fulfulde
|
||||
//fui <EFBFBD> Bagirmi Fulfulde
|
||||
//fue <EFBFBD> Borgu Fulfulde
|
||||
//fuq <EFBFBD> Central-Eastern Niger Fulfulde
|
||||
//ffm <EFBFBD> Maasina Fulfulde
|
||||
//fuv <EFBFBD> Nigerian Fulfulde
|
||||
//fuc <EFBFBD> Pulaar
|
||||
//fuf <EFBFBD> Pular
|
||||
//fuh <EFBFBD> Western Niger Fulfulde
|
||||
//fub – Adamawa Fulfulde
|
||||
//fui – Bagirmi Fulfulde
|
||||
//fue – Borgu Fulfulde
|
||||
//fuq – Central-Eastern Niger Fulfulde
|
||||
//ffm – Maasina Fulfulde
|
||||
//fuv – Nigerian Fulfulde
|
||||
//fuc – Pulaar
|
||||
//fuf – Pular
|
||||
//fuh – Western Niger Fulfulde
|
||||
|
||||
case 'fub':
|
||||
$lang_name = 'ADAMAWA_FULFULDE';
|
||||
@@ -1378,7 +1358,7 @@ abstract class Item
|
||||
$country_name = 'FAROE_ISLANDS';
|
||||
break;
|
||||
|
||||
//Metropolitan French (French: France M<EFBFBD>tropolitaine or la M<EFBFBD>tropole)
|
||||
//Metropolitan French (French: France Métropolitaine or la Métropole)
|
||||
case 'fr':
|
||||
case 'fr_me':
|
||||
$lang_name = 'FRENCH';
|
||||
@@ -1396,12 +1376,12 @@ abstract class Item
|
||||
$country_name = 'DOMINICA';
|
||||
break;
|
||||
|
||||
//al-d<EFBFBD>zayir
|
||||
//al-dîzayir
|
||||
case 'fr_dz':
|
||||
$lang_name = 'ALGERIAN_FRENCH';
|
||||
$country_name = 'ALGERIA';
|
||||
break;
|
||||
//Aostan French (French: fran<EFBFBD>ais vald<EFBFBD>tain)
|
||||
//Aostan French (French: français valdôtain)
|
||||
//Seventy: septante[a] [s?p.t?~t]
|
||||
//Eighty: huitante[b] [?i.t?~t]
|
||||
//Ninety: nonante[c] [n?.n?~t]
|
||||
@@ -1419,12 +1399,12 @@ abstract class Item
|
||||
$lang_name = 'CAMBODIAN_FRENCH';
|
||||
$country_name = 'CAMBODIA';
|
||||
break;
|
||||
//Cajun French - Le Fran<EFBFBD>ais Cajun - New Orleans
|
||||
//Cajun French - Le Français Cajun - New Orleans
|
||||
case 'fr_cj':
|
||||
$lang_name = 'CAJUN_FRENCH';
|
||||
$country_name = 'UNITED_STATES';
|
||||
break;
|
||||
//Canadian French (French: Fran<EFBFBD>ais Canadien)
|
||||
//Canadian French (French: Français Canadien)
|
||||
//Official language in Canada, New Brunswick, Northwest Territories, Nunavut, Quebec, Yukon,
|
||||
//Official language in United States, Maine (de facto), New Hampshire
|
||||
case 'fr_ca':
|
||||
@@ -1482,7 +1462,7 @@ abstract class Item
|
||||
$lang_name = 'LAO_FRENCH';
|
||||
$country_name = 'LAOS';
|
||||
break;
|
||||
//Louisiana French (French: Fran<EFBFBD>ais de la Louisiane, Louisiana Creole: Fran<EFBFBD><EFBFBD> la Lwizyan)
|
||||
//Louisiana French (French: Français de la Louisiane, Louisiana Creole: Françé la Lwizyan)
|
||||
case 'frc':
|
||||
case 'fr_lu':
|
||||
$lang_name = 'LOUISIANIAN_FRENCH';
|
||||
@@ -1493,7 +1473,7 @@ abstract class Item
|
||||
$lang_name = 'LOUISIANA_CREOLE';
|
||||
$country_name = 'LOUISIANA';
|
||||
break;
|
||||
//Meridional French (French: Fran<EFBFBD>ais M<EFBFBD>ridional, also referred to as Francitan)
|
||||
//Meridional French (French: Français Méridional, also referred to as Francitan)
|
||||
case 'fr_mr':
|
||||
$lang_name = 'MERIDIONAL_FRENCH';
|
||||
$country_name = 'OCCITANIA';
|
||||
@@ -1508,7 +1488,7 @@ abstract class Item
|
||||
$lang_name = 'NEW_CALEDONIAN_FRENCH';
|
||||
$country_name = 'NEW_CALEDONIA';
|
||||
break;
|
||||
//Newfoundland French (French: Fran<EFBFBD>ais Terre-Neuvien),
|
||||
//Newfoundland French (French: Français Terre-Neuvien),
|
||||
case 'fr_nf':
|
||||
$lang_name = 'NEWFOUNDLAND_FRENCH';
|
||||
$country_name = 'CANADA';
|
||||
@@ -1518,7 +1498,7 @@ abstract class Item
|
||||
$lang_name = 'NEW_ENGLAND_FRENCH';
|
||||
$country_name = 'NEW_ENGLAND';
|
||||
break;
|
||||
//Quebec French (French: fran<EFBFBD>ais qu<EFBFBD>b<EFBFBD>cois; also known as Qu<EFBFBD>b<EFBFBD>cois French or simply Qu<EFBFBD>b<EFBFBD>cois)
|
||||
//Quebec French (French: français québécois; also known as Québécois French or simply Québécois)
|
||||
case 'fr_qb':
|
||||
$lang_name = 'QUEBEC_FRENCH';
|
||||
$country_name = 'CANADA';
|
||||
@@ -1532,7 +1512,7 @@ abstract class Item
|
||||
case 'fr_tf':
|
||||
case 'tf':
|
||||
$lang_name = 'FRENCH_SOUTHERN_TERRITORIES'; //
|
||||
$country_name = 'SOUTHERN_TERRITORIES'; //Terres australes fran<EFBFBD>aises
|
||||
$country_name = 'SOUTHERN_TERRITORIES'; //Terres australes françaises
|
||||
break;
|
||||
//Vietnamese French
|
||||
case 'fr_vt':
|
||||
@@ -1565,7 +1545,7 @@ abstract class Item
|
||||
$country_name = 'UNITED_STATES';
|
||||
break;
|
||||
|
||||
//gcf <EFBFBD> Guadeloupean Creole
|
||||
//gcf – Guadeloupean Creole
|
||||
case 'gcf':
|
||||
$lang_name = 'GUADELOUPEAN_CREOLE_FRENCH';
|
||||
$country_name = 'GUADELOUPE';
|
||||
@@ -1587,7 +1567,7 @@ abstract class Item
|
||||
break;
|
||||
|
||||
case 'gg':
|
||||
$lang_name = 'GUERNESIAIS'; //English, Guern<EFBFBD>siais, Sercquiais, Auregnais
|
||||
$lang_name = 'GUERNESIAIS'; //English, Guernésiais, Sercquiais, Auregnais
|
||||
$country_name = 'GUERNSEY';
|
||||
break;
|
||||
|
||||
@@ -1625,18 +1605,18 @@ abstract class Item
|
||||
break;
|
||||
|
||||
//grn is the ISO 639-3 language code for Guarani. Its ISO 639-1 code is gn.
|
||||
// nhd <EFBFBD> Chirip<EFBFBD>
|
||||
// gui <EFBFBD> Eastern Bolivian Guaran<EFBFBD>
|
||||
// gun <EFBFBD> Mby<EFBFBD> Guaran<EFBFBD>
|
||||
// gug <EFBFBD> Paraguayan Guaran<EFBFBD>
|
||||
// gnw <EFBFBD> Western Bolivian Guaran<EFBFBD>
|
||||
// nhd – Chiripá
|
||||
// gui – Eastern Bolivian Guaraní
|
||||
// gun – Mbyá Guaraní
|
||||
// gug – Paraguayan Guaraní
|
||||
// gnw – Western Bolivian Guaraní
|
||||
case 'gn':
|
||||
$lang_name = 'GUARANI';
|
||||
$country_name = 'GUINEA';
|
||||
break;
|
||||
//Nhand<EFBFBD>va is also known as Chirip<EFBFBD>.
|
||||
//Nhandéva is also known as Chiripá.
|
||||
//The Spanish spelling, Nandeva, is used in the Paraguayan Chaco
|
||||
// to refer to the local variety of Eastern Bolivian, a subdialect of Av<EFBFBD>.
|
||||
// to refer to the local variety of Eastern Bolivian, a subdialect of Avá.
|
||||
case 'nhd':
|
||||
$lang_name = 'Chiripa';
|
||||
$country_name = 'PARAGUAY';
|
||||
@@ -1698,11 +1678,11 @@ abstract class Item
|
||||
$lang_name = 'HAUSA';
|
||||
break;
|
||||
|
||||
//heb <EFBFBD> Modern Hebrew
|
||||
//hbo <EFBFBD> Classical Hebrew (liturgical)
|
||||
//smp <EFBFBD> Samaritan Hebrew (liturgical)
|
||||
//obm <EFBFBD> Moabite (extinct)
|
||||
//xdm <EFBFBD> Edomite (extinct)
|
||||
//heb – Modern Hebrew
|
||||
//hbo – Classical Hebrew (liturgical)
|
||||
//smp – Samaritan Hebrew (liturgical)
|
||||
//obm – Moabite (extinct)
|
||||
//xdm – Edomite (extinct)
|
||||
case 'he':
|
||||
case 'heb':
|
||||
$country_name = 'ISRAEL';
|
||||
@@ -1820,7 +1800,7 @@ abstract class Item
|
||||
$country_name = '';
|
||||
break;
|
||||
|
||||
//Mostly spoken on Ouv<EFBFBD>a Island or Uvea Island of the Loyalty Islands, New Caledonia.
|
||||
//Mostly spoken on Ouvéa Island or Uvea Island of the Loyalty Islands, New Caledonia.
|
||||
case 'iai':
|
||||
$lang_name = 'IAAI';
|
||||
$country_name = 'NEW_CALEDONIA';
|
||||
@@ -1903,22 +1883,22 @@ abstract class Item
|
||||
break;
|
||||
|
||||
//Bantu languages
|
||||
//zdj <EFBFBD> Ngazidja Comorian
|
||||
//zdj – Ngazidja Comorian
|
||||
case 'zdj':
|
||||
$lang_name = 'Ngazidja Comorian';
|
||||
$country_name = 'COMOROS';
|
||||
break;
|
||||
//wni <EFBFBD> Ndzwani Comorian (Anjouani) dialect
|
||||
//wni – Ndzwani Comorian (Anjouani) dialect
|
||||
case 'wni':
|
||||
$lang_name = 'Ndzwani Comorian';
|
||||
$country_name = 'COMOROS';
|
||||
break;
|
||||
//swb <EFBFBD> Maore Comorian dialect
|
||||
//swb – Maore Comorian dialect
|
||||
case 'swb':
|
||||
$lang_name = 'Maore Comorian';
|
||||
$country_name = 'COMOROS';
|
||||
break;
|
||||
//wlc <EFBFBD> Mwali Comorian dialect
|
||||
//wlc – Mwali Comorian dialect
|
||||
case 'wlc':
|
||||
$lang_name = 'Mwali Comorian';
|
||||
$country_name = 'COMOROS';
|
||||
@@ -1937,11 +1917,11 @@ abstract class Item
|
||||
case 'ko':
|
||||
case 'kp':
|
||||
$lang_name = 'korean';
|
||||
// kor <EFBFBD> Modern Korean
|
||||
// jje <EFBFBD> Jeju
|
||||
// okm <EFBFBD> Middle Korean
|
||||
// oko <EFBFBD> Old Korean
|
||||
// oko <EFBFBD> Proto Korean
|
||||
// kor – Modern Korean
|
||||
// jje – Jeju
|
||||
// okm – Middle Korean
|
||||
// oko – Old Korean
|
||||
// oko – Proto Korean
|
||||
// okm Middle Korean
|
||||
// oko Old Korean
|
||||
$country_name = 'Korea North';
|
||||
@@ -2166,7 +2146,7 @@ abstract class Item
|
||||
break;
|
||||
|
||||
case 'mq':
|
||||
$lang_name = 'antillean-creole'; // Antillean Creole (Cr<EFBFBD>ole Martiniquais)
|
||||
$lang_name = 'antillean-creole'; // Antillean Creole (Créole Martiniquais)
|
||||
$country_name = 'MARTINIQUE';
|
||||
break;
|
||||
|
||||
@@ -2180,13 +2160,13 @@ abstract class Item
|
||||
$country_name = 'NICARAGUA';
|
||||
break;
|
||||
|
||||
//Barber: Targu<EFBFBD>, tuareg
|
||||
//Barber: Targuí, tuareg
|
||||
case 'ne':
|
||||
$lang_name = 'Niger';
|
||||
$country_name = 'NIGER';
|
||||
break;
|
||||
|
||||
//Mostly spoken on Mar<EFBFBD> Island of the Loyalty Islands, New Caledonia.
|
||||
//Mostly spoken on Maré Island of the Loyalty Islands, New Caledonia.
|
||||
case 'nen':
|
||||
$lang_name = 'NENGONE';
|
||||
$country_name = 'NEW_CALEDONIA';
|
||||
@@ -2198,7 +2178,7 @@ abstract class Item
|
||||
break;
|
||||
|
||||
case 'nc':
|
||||
$lang_name = 'paic<EFBFBD>'; //French, Nengone, Paic<EFBFBD>, Aji<EFBFBD>, Drehu
|
||||
$lang_name = 'paicî'; //French, Nengone, Paicî, Ajië, Drehu
|
||||
$country_name = 'NEW_CALEDONIA';
|
||||
break;
|
||||
|
||||
@@ -2300,7 +2280,7 @@ abstract class Item
|
||||
|
||||
case 'pf':
|
||||
$country_name = 'French Polynesia';
|
||||
$lang_name = 'tahitian'; //Polyn<EFBFBD>sie fran<EFBFBD>aise
|
||||
$lang_name = 'tahitian'; //Polynésie française
|
||||
break;
|
||||
|
||||
case 'pg':
|
||||
@@ -2364,13 +2344,13 @@ abstract class Item
|
||||
$country_name = 'QATAR';
|
||||
break;
|
||||
|
||||
// rmn <EFBFBD> Balkan Romani
|
||||
// rml <EFBFBD> Baltic Romani
|
||||
// rmc <EFBFBD> Carpathian Romani
|
||||
// rmf <EFBFBD> Kalo Finnish Romani
|
||||
// rmo <EFBFBD> Sinte Romani
|
||||
// rmy <EFBFBD> Vlax Romani
|
||||
// rmw <EFBFBD> Welsh Romani
|
||||
// rmn – Balkan Romani
|
||||
// rml – Baltic Romani
|
||||
// rmc – Carpathian Romani
|
||||
// rmf – Kalo Finnish Romani
|
||||
// rmo – Sinte Romani
|
||||
// rmy – Vlax Romani
|
||||
// rmw – Welsh Romani
|
||||
case 'ri':
|
||||
case 'rom':
|
||||
$country_name = 'EASTEN_EUROPE';
|
||||
@@ -2442,7 +2422,7 @@ abstract class Item
|
||||
$country_name = 'Scotland';
|
||||
break;
|
||||
|
||||
//scf <EFBFBD> San Miguel Creole French (Panama)
|
||||
//scf – San Miguel Creole French (Panama)
|
||||
case 'scf':
|
||||
$lang_name = 'SAN_MIGUEL_CREOLE_FRENCH';
|
||||
$country_name = 'SAN_MIGUEL';
|
||||
@@ -2553,13 +2533,13 @@ abstract class Item
|
||||
break;
|
||||
|
||||
//ISO 639-2 swa
|
||||
//ISO 639-3 swa <EFBFBD> inclusive code
|
||||
//ISO 639-3 swa – inclusive code
|
||||
|
||||
//Individual codes:
|
||||
//swc <EFBFBD> Congo Swahili
|
||||
//swh <EFBFBD> Coastal Swahili
|
||||
//ymk <EFBFBD> Makwe
|
||||
//wmw <EFBFBD> Mwani
|
||||
//swc – Congo Swahili
|
||||
//swh – Coastal Swahili
|
||||
//ymk – Makwe
|
||||
//wmw – Mwani
|
||||
|
||||
//Person Mswahili
|
||||
//People Waswahili
|
||||
@@ -2572,25 +2552,25 @@ abstract class Item
|
||||
$lang_name = 'SWAHILI';
|
||||
$country_name = 'AFRICAN_GREAT_LAKES';
|
||||
break;
|
||||
//swa <EFBFBD> inclusive code
|
||||
//swa – inclusive code
|
||||
//
|
||||
//Individual codes:
|
||||
//swc <EFBFBD> Congo Swahili
|
||||
//swc – Congo Swahili
|
||||
case 'swc':
|
||||
$lang_name = 'CONGO_SWAHILI';
|
||||
$country_name = 'CONGO';
|
||||
break;
|
||||
//swh <EFBFBD> Coastal Swahili
|
||||
//swh – Coastal Swahili
|
||||
case 'swh':
|
||||
$lang_name = 'COASTAL_SWAHILI';
|
||||
$country_name = 'AFRIKA_EAST_COAST';
|
||||
break;
|
||||
//ymk <EFBFBD> Makwe
|
||||
//ymk – Makwe
|
||||
case 'ymk':
|
||||
$lang_name = 'MAKWE';
|
||||
$country_name = 'CABO_DELGADO_PROVINCE_OF_MOZAMBIQUE';
|
||||
break;
|
||||
//wmw <EFBFBD> Mwani
|
||||
//wmw – Mwani
|
||||
case 'wmw':
|
||||
$lang_name = 'MWANI';
|
||||
$country_name = 'COAST_OF_CABO_DELGADO_PROVINCE_OF_MOZAMBIQUE';
|
||||
@@ -2608,7 +2588,7 @@ abstract class Item
|
||||
|
||||
case 'tf':
|
||||
$lang_name = 'french '; //
|
||||
$country_name = 'FRENCH_SOUTHERN_TERRITORIES'; //Terres australes fran<EFBFBD>aises
|
||||
$country_name = 'FRENCH_SOUTHERN_TERRITORIES'; //Terres australes françaises
|
||||
break;
|
||||
|
||||
case 'tj':
|
||||
@@ -2752,7 +2732,7 @@ abstract class Item
|
||||
case 'wf':
|
||||
$country_name = 'TERRITORY_OF_THE_WALLIS_AND_FUTUNA_ISLANDS';
|
||||
$lang_name = 'WF';
|
||||
//Wallisian, or <EFBFBD>Uvean
|
||||
//Wallisian, or ‘Uvean
|
||||
//Futunan - Austronesian, Malayo-Polynesian
|
||||
break;
|
||||
|
||||
@@ -2768,7 +2748,7 @@ abstract class Item
|
||||
|
||||
case 'yt':
|
||||
$lang_name = 'Mayotte'; //Shimaore:
|
||||
$country_name = 'DEPARTMENT_OF_MAYOTTE'; //D<EFBFBD>partement de Mayotte
|
||||
$country_name = 'DEPARTMENT_OF_MAYOTTE'; //Département de Mayotte
|
||||
break;
|
||||
|
||||
case 'za':
|
||||
@@ -2820,4 +2800,4 @@ abstract class Item
|
||||
abstract public function file_ext();
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user