aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-08-02 06:49:54 -0700
committerThomas Müller <thomas.mueller@tmit.eu>2013-08-02 06:49:54 -0700
commit821a99b937cc1c12315d23e805a80496ed54f70d (patch)
treebed437ac8b41716b6c4d0fa3d53d705ba6820010 /lib
parent90d718634ba0949b35d0c632c4c870d2cefa911e (diff)
parentad329f541bc3acf923ee06c9547669b464268679 (diff)
downloadnextcloud-server-821a99b937cc1c12315d23e805a80496ed54f70d.tar.gz
nextcloud-server-821a99b937cc1c12315d23e805a80496ed54f70d.zip
Merge pull request #4287 from Takuto88/language-config
Make default language configurable via config.php
Diffstat (limited to 'lib')
-rw-r--r--lib/l10n.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/l10n.php b/lib/l10n.php
index d35ce5fed14..a28aa89c5f1 100644
--- a/lib/l10n.php
+++ b/lib/l10n.php
@@ -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)) {