bug 985: map language to the right locale and other fixes
authorMichael Tänzer <neo@nhng.de>
Wed, 28 Sep 2011 02:10:33 +0000 (04:10 +0200)
committerMichael Tänzer <neo@nhng.de>
Wed, 28 Sep 2011 02:10:33 +0000 (04:10 +0200)
commit5d77aa2cc71fdf038c6ea67eb282e7d8edd1fa4e
tree3487f9f48d19361b2bf4437e70a4270bfbd909d5
parentdde0e7bd634e8a1130074e4e14b40222a65bc501
bug 985: map language to the right locale and other fixes

- map from two letter to five letter code
- if lang is given as parameter but $_SESSION['_config']['language'] has
already been set also go into the translation handling code
- preg_filter() is PHP >= 5.3

Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/general.php