lang.php 413 Bytes
Newer Older
1
<?php
2 3 4
$languages = array(
    'it' => 'Italian',
    'en' => 'English',
5
    'es' => 'Spanish',
6
    'ru' => 'Russian',
Tamer Eyniç's avatar
Tamer Eyniç committed
7
    'tr' => 'Türkçe',
8 9
    'uz' => 'Uzbek'
);
10

Pino Matranga's avatar
Pino Matranga committed
11 12 13 14 15
if(isset($_GET['lang'])){
    $language = $_GET['lang'];
} else {
    $language = 'en';
}
16

Pino Matranga's avatar
Pino Matranga committed
17 18 19
$file_path = "languages/core_$language.php";
if(file_exists($file_path))
    include_once($file_path);
20

Pino Matranga's avatar
Pino Matranga committed
21 22
else
    include_once('languages/core_en.php');
23 24

?>