aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-12-21 14:00:42 +0000
committerRomain d'Alverny <rda@mageia.org>2012-12-21 14:00:42 +0000
commitea5bc5dd449e1ecc9d9b8dea9948137b1e35934f (patch)
tree79c8b2be6e7550ac4b363ac8e2511d2d95573e95 /test
parent9f0a6338658a65ba70456885b9180bbcd3803403 (diff)
downloadwww-ea5bc5dd449e1ecc9d9b8dea9948137b1e35934f.tar
www-ea5bc5dd449e1ecc9d9b8dea9948137b1e35934f.tar.gz
www-ea5bc5dd449e1ecc9d9b8dea9948137b1e35934f.tar.bz2
www-ea5bc5dd449e1ecc9d9b8dea9948137b1e35934f.tar.xz
www-ea5bc5dd449e1ecc9d9b8dea9948137b1e35934f.zip
add test file for browser language
Diffstat (limited to 'test')
-rw-r--r--test/lang.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lang.php b/test/lang.php
new file mode 100644
index 000000000..e86dbd553
--- /dev/null
+++ b/test/lang.php
@@ -0,0 +1,9 @@
+<pre><?php
+/**
+*/
+
+include_once '../lib/localeDetection.class.php';
+include_once '../langs.inc.php';
+
+echo 'Accept-Language: ', $_SERVER['HTTP_ACCEPT_LANGUAGE'], "\n\n";
+echo "Relocate `community` with `en` as a default: ", relocate($langs, 'community'), "\n";