diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-12-19 15:10:33 +0100 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-12-19 15:10:33 +0100 |
commit | 196f1c3786ca009b3180e8ca11d0bf0258f5be92 (patch) | |
tree | a16a45a966a15af721808002cb2d10d01b1e5c7b /lib/base.php | |
parent | e73a47a824c639f3e8ae83f8d52b590d60f065be (diff) | |
download | nextcloud-server-196f1c3786ca009b3180e8ca11d0bf0258f5be92.tar.gz nextcloud-server-196f1c3786ca009b3180e8ca11d0bf0258f5be92.zip |
add a check and a warning if setlocale is working
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 0b75f6f085e..9cdadbb7991 100644 --- a/lib/base.php +++ b/lib/base.php @@ -474,6 +474,11 @@ class OC{ exit; } } + + // write error into log if locale can't be set + if(OC_Util::issetlocaleworking()==false) { + OC_Log::write('core', 'setting locate to en_US.UTF-8 failed. Support is probably not installed on your system', OC_Log::ERROR); + } } /** |