1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/emailpoubelle_ynh.git synced 2024-09-03 18:26:29 +02:00

Update conf-dist.php

This commit is contained in:
Krakinou 2018-11-22 20:39:21 +01:00 committed by GitHub
parent e3d763e3c3
commit c714382f13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,18 @@ include_once(INC.'/ep_header.php');
define('DEBUG', false);
$supported_locales = array('fr_FR','en_GB');
$locale = "en_GB";
if(isset($_GET['lang']) && in_array($_GET['lang'], $supported_locales)){
$locale = $_GET['lang'];
}
define('workaround_lang', "C.UTF-8");
putenv("LC_ALL=".workaround_lang);
setlocale(LC_ALL, workaround_lang);
bindtextdomain("strings", "/var/www/emailpoubelle/locale/".$locale);
bind_textdomain_codeset('strings', 'UTF-8');
textdomain("strings");
// Domain email (separe with ; exemple : exemple.com;zici.fr;exemple.fr)
define('DOMAIN', 'exemple.fr');
//define('DOMAIN', 'exemple.com;zici.fr;exemple.fr');