aboutsummaryrefslogtreecommitdiffstats
path: root/include/pgettext.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-13 04:52:29 -0700
committerfriendica <info@friendica.com>2012-05-13 04:52:29 -0700
commit3811fe288fe4446aaa890f9d98acbb3b670b7f3b (patch)
treea66cda15617a09a89408a74e5bed801a619b1f26 /include/pgettext.php
parenteaf028c9fb5c3eefc7dd7d4e4b1c4308cb071137 (diff)
downloadvolse-hubzilla-3811fe288fe4446aaa890f9d98acbb3b670b7f3b.tar.gz
volse-hubzilla-3811fe288fe4446aaa890f9d98acbb3b670b7f3b.tar.bz2
volse-hubzilla-3811fe288fe4446aaa890f9d98acbb3b670b7f3b.zip
rename get_language() to get_browser_language()
Diffstat (limited to 'include/pgettext.php')
-rw-r--r--include/pgettext.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/pgettext.php b/include/pgettext.php
index a079a4687..5a0eab0b0 100644
--- a/include/pgettext.php
+++ b/include/pgettext.php
@@ -15,10 +15,10 @@
*/
-if(! function_exists('get_language')) {
-function get_language() {
+if(! function_exists('get_browser_language')) {
+function get_browser_language() {
- if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
+ if (x($_SERVER,'HTTP_ACCEPT_LANGUAGE')) {
// break up string into pieces (languages and q factors)
preg_match_all('/([a-z]{1,8}(-[a-z]{1,8})?)\s*(;\s*q\s*=\s*(1|0\.[0-9]+))?/i',
$_SERVER['HTTP_ACCEPT_LANGUAGE'], $lang_parse);