Use an i18n tool

This commit is contained in:
Gregory Trolliet 2020-11-23 11:01:37 +01:00
parent e487438606
commit 16dec853f9
12 changed files with 662 additions and 97 deletions

14
init.php Normal file
View file

@ -0,0 +1,14 @@
<?php
require_once 'i18n.php';
$i18n = new i18n('lang/lang_{LANGUAGE}.ini', 'cache/lang/', 'fr');
$i18n->init();
include('db.php');
$db = new DataBase();
if (!$db->isInit()) {
echo L::db_init_error;
return;
}
$db->cleanCloud();