Skip to content
Snippets Groups Projects
Commit 79351d06 authored by Lennart Rosam's avatar Lennart Rosam
Browse files

Make default language configurable via config.php

parent 16726ab7
Branches
No related tags found
No related merge requests found
......@@ -56,6 +56,9 @@ $CONFIG = array(
/* Theme to use for ownCloud */
"theme" => "",
/* Optional ownCLoud default language - overrides automatic language detection on public pages like login or shared items. This has no effect on the users's language preference configured under "personal -> language" once they have logged in */
"default_language" => "en",
/* Path to the parent directory of the 3rdparty directory */
"3rdpartyroot" => "",
......
......@@ -298,6 +298,12 @@ class OC_L10N{
}
}
$default_language = OC_Config::getValue('default_language', false);
if($default_language !== false) {
return $default_language;
}
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
$accepted_languages = preg_split('/,\s*/', strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']));
if(is_array($app)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment