Skip to content
Snippets Groups Projects
Commit 99ae7cd4 authored by Jakob Sack's avatar Jakob Sack
Browse files

Autodetection of language is working now

parent ad893f2b
No related branches found
No related tags found
No related merge requests found
...@@ -224,7 +224,7 @@ class OC_L10N{ ...@@ -224,7 +224,7 @@ class OC_L10N{
$accepted_languages = preg_split( '/,\s*/', $_SERVER['HTTP_ACCEPT_LANGUAGE'] ); $accepted_languages = preg_split( '/,\s*/', $_SERVER['HTTP_ACCEPT_LANGUAGE'] );
foreach( $accepted_languages as $i ){ foreach( $accepted_languages as $i ){
$temp = explode( ';', $i ); $temp = explode( ';', $i );
if( array_key_exists( $temp[0], $available )){ if( array_search( $temp[0], $available ) !== false ){
return $temp[0]; return $temp[0];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment