We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 036c31c commit c6fc18eCopy full SHA for c6fc18e
gettext.php
@@ -23,19 +23,28 @@
23
$locale = Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']);
24
}
25
switch (substr($locale, 0, 2)) {
26
+ case 'ar':
27
+ // Arabic.
28
+ $locale = 'ar.UTF-8';
29
+ break;
30
case 'de':
31
+ // German.
32
$locale = 'de_DE.UTF-8';
33
break;
34
case 'en':
35
+ // English.
36
$locale = 'en_US.UTF-8';
37
38
case 'es':
39
+ // Spanish.
40
$locale = 'es_ES.UTF-8';
41
42
case 'it':
43
+ // Italian.
44
$locale = 'it_IT.UTF-8';
45
46
case 'ru':
47
+ // Russian.
48
$locale = 'ru_RU.UTF-8';
49
50
default:
0 commit comments