forked from LibreBooking/app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AvailableLanguages.php
59 lines (55 loc) · 3.32 KB
/
AvailableLanguages.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
require_once(ROOT_DIR . 'lang/AvailableLanguage.php');
class AvailableLanguages
{
/**
* @return array|AvailableLanguage[]
*/
public static function GetAvailableLanguages()
{
return [
'ar' => new AvailableLanguage('ar', 'ar.php', 'عربى'),
'eu_es' => new AvailableLanguage('eu_es', 'eu_es.php', 'Basque'),
'bg_bg' => new AvailableLanguage('bg_bg', 'bg_bg.php', 'Bulgarian'),
'ca' => new AvailableLanguage('ca', 'ca.php', 'Catalan'),
'cz' => new AvailableLanguage('cz', 'cz.php', 'Czech'),
'da_da' => new AvailableLanguage('da_da', 'da_da.php', 'Danish'),
'de_de' => new AvailableLanguage('de_de', 'de_de.php', 'Deutsch'),
'du_be' => new AvailableLanguage('du_be', 'du_be.php', 'Flemisch'),
'du_nl' => new AvailableLanguage('du_nl', 'du_nl.php', 'Dutch'),
'el_gr' => new AvailableLanguage('el_gr', 'el_gr.php', 'Greek (Ελληνικά'),
'en_us' => new AvailableLanguage('en_us', 'en_us.php', 'English US'),
'en_gb' => new AvailableLanguage('en_gb', 'en_gb.php', 'English GB'),
'es' => new AvailableLanguage('es', 'es.php', 'Español'),
'ee_ee' => new AvailableLanguage('ee_ee', 'ee_ee.php', 'Estonian'),
'fi_fi' => new AvailableLanguage('fi_fi', 'fi_fi.php', 'Suomi'),
'fr_fr' => new AvailableLanguage('fr_fr', 'fr_fr.php', 'Français'),
'hr_hr' => new AvailableLanguage('hr_hr', 'hr_hr.php', 'Hrvatski'),
'hu_hu' => new AvailableLanguage('hu_hu', 'hu_hu.php', 'Hungarian'),
'he' => new AvailableLanguage('he', 'he.php', 'עברית'),
'id_id' => new AvailableLanguage('id_id', 'id_id.php', 'Bahasa Indonesia'),
'it_it' => new AvailableLanguage('it_it', 'it_it.php', 'Italiano'),
'ja_jp' => new AvailableLanguage('ja_jp', 'ja_jp.php', 'Japanese'),
'lt' => new AvailableLanguage('lt', 'lt.php', 'Lietuvių'),
'no_no' => new AvailableLanguage('no_no', 'no_no.php', 'Norsk bokmål'),
'pl' => new AvailableLanguage('pl', 'pl.php', 'Polski'),
'pt_pt' => new AvailableLanguage('pt_pt', 'pt_pt.php', 'Português'),
'pt_br' => new AvailableLanguage('pt_br', 'pt_br.php', 'Português Brasileiro'),
'ru_ru' => new AvailableLanguage('ru_ru', 'ru_ru.php', 'Русский'),
'si_si' => new AvailableLanguage('si_si', 'si_si.php', 'Slovenščina'),
'sr_sr' => new AvailableLanguage('sr_sr', 'sr_sr.php', 'Serbian'),
'ro_ro' => new AvailableLanguage('ro_ro', 'ro_ro.php', 'Romanian'),
'th_th' => new AvailableLanguage('th_th', 'th_th.php', 'Thai'),
'tr_tr' => new AvailableLanguage('tr_tr', 'tr_tr.php', 'Türkçe'),
'sv_sv' => new AvailableLanguage('sv_sv', 'sv_sv.php', 'Swedish'),
'vn_vn' => new AvailableLanguage('vn_vn', 'vn_vn.php', 'Tiếng Việt'),
'zh_cn' => new AvailableLanguage('zh_cn', 'zh_cn.php', '简体中文'),
'zh_tw' => new AvailableLanguage('zh_tw', 'zh_tw.php', '繁體中文'),
];
}
public static function Contains($language)
{
$languages = self::GetAvailableLanguages();
return array_key_exists(strtolower($language), $languages);
}
}