aboutsummaryrefslogtreecommitdiffstats
path: root/test/lang.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/lang.php')
-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";