lang.php 500 Bytes
Newer Older
1
<?php
2 3 4
$languages = array(
    'it' => 'Italian',
    'en' => 'English',
5
    'es' => 'Español',
s1udge's avatar
s1udge committed
6
    'fr' => 'Français',
7
    'ru' => 'Русский',
Tamer Eyniç's avatar
Tamer Eyniç committed
8
    'tr' => 'Türkçe',
9
    'uz' => 'Uzbek',
10
    'pt' => 'Portuguese',
s1udge's avatar
s1udge committed
11
    'fa' => 'فارسی',
12

13
);
14

Pino Matranga's avatar
Pino Matranga committed
15 16 17 18 19
if(isset($_GET['lang'])){
    $language = $_GET['lang'];
} else {
    $language = 'en';
}
20

Pino Matranga's avatar
Pino Matranga committed
21 22 23
$file_path = "languages/core_$language.php";
if(file_exists($file_path))
    include_once($file_path);
24

Pino Matranga's avatar
Pino Matranga committed
25 26
else
    include_once('languages/core_en.php');
27 28

?>