summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2013-01-15 18:27:29 -0800
committerArun Persaud <arun@nubati.net>2013-01-15 18:27:29 -0800
commit2a529cf743274f63cd15f7f33b58b943338e1049 (patch)
tree655e599776201cc7645ff4a3cfb5c215a695c892 /include
parentce9ff41fcaafccffd22390e85959957745751075 (diff)
downloade-DoKo-2a529cf743274f63cd15f7f33b58b943338e1049.tar.gz
e-DoKo-2a529cf743274f63cd15f7f33b58b943338e1049.tar.bz2
e-DoKo-2a529cf743274f63cd15f7f33b58b943338e1049.zip
BUGFIX: use english language as default in set_language
before the previous language was kept which could have been e.g. German, even if the person didn't choose German.
Diffstat (limited to 'include')
-rw-r--r--include/functions.php15
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;
}