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:
parent
e3d763e3c3
commit
c714382f13
1 changed files with 12 additions and 0 deletions
|
@ -20,6 +20,18 @@ include_once(INC.'/ep_header.php');
|
||||||
|
|
||||||
define('DEBUG', false);
|
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)
|
// Domain email (separe with ; exemple : exemple.com;zici.fr;exemple.fr)
|
||||||
define('DOMAIN', 'exemple.fr');
|
define('DOMAIN', 'exemple.fr');
|
||||||
//define('DOMAIN', 'exemple.com;zici.fr;exemple.fr');
|
//define('DOMAIN', 'exemple.com;zici.fr;exemple.fr');
|
||||||
|
|
Loading…
Add table
Reference in a new issue