diff options
-rw-r--r-- | include/functions.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/functions.php b/include/functions.php index d7ff065..a332347 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1726,16 +1726,19 @@ function set_language($l,$type='lang') case 'de': putenv("LC_ALL=de_DE"); setlocale(LC_ALL, "de_DE"); - // Specify location of translation tables - bindtextdomain("edoko", "./locale"); - bind_textdomain_codeset("edoko", 'UTF-8'); - // Choose domain - textdomain("edoko"); break; default: - /* do nothing */ + putenv("LC_ALL=en_US"); + setlocale(LC_ALL, "en_US"); + break; } + // Specify location of translation tables + bindtextdomain("edoko", "./locale"); + bind_textdomain_codeset("edoko", 'UTF-8'); + // Choose domain + textdomain("edoko"); + return; } |