Commit f9ef7935 authored by Jeroen's avatar Jeroen

Removed ForcedLang, will now select lang automatically (or default en)

parent f3cc4846
Pipeline #1359 passed with stage
in 3 seconds
......@@ -9,7 +9,6 @@ require_once(__DIR__ . '/../resources/library/i18n.class.php');
$i18n = new i18n();
$i18n->setFilePath(__DIR__ . '/../resources/library/langfiles/lang/lang_{LANGUAGE}.ini');
$i18n->setCachePath(__DIR__ . '/../resources/library/langcache');
$i18n->setForcedLang('en');
$i18n->init();
$klein = new Klein\Klein;
......
......@@ -6,7 +6,6 @@ include_once(__DIR__ . '/../db.php');
$i18n = new i18n();
$i18n->setFilePath(__DIR__ . '/../library/langfiles/lang/lang_{LANGUAGE}.ini');
$i18n->setCachePath(__DIR__ . '/../library/langcache');
$i18n->setForcedLang('en');
$i18n->init();
foreach(glob(__DIR__.'/../library/*.php') as $file){
include_once( $file );
......
......@@ -3,7 +3,6 @@ if( include_once ( 'i18n.class.php' ) ) {
$i18n = new i18n();
$i18n->setFilePath(__DIR__ . '/../library/langfiles/lang/lang_{LANGUAGE}.ini');
$i18n->setCachePath(__DIR__ . '/../library/langcache');
$i18n->setForcedLang('en');
$i18n->init();
if ( !empty( $_GET ) ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment