summaryrefslogtreecommitdiffstats
path: root/lib/private/util.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-11-08 14:30:08 +0100
committerBart Visscher <bartv@thisnet.nl>2013-11-08 14:30:08 +0100
commita6d8854d2af234d0613467f12b45f229e0431b35 (patch)
tree8ffbe477a97b4f354a874c367604ccb8efc3d0e3 /lib/private/util.php
parent4459d964d6af1f9a1c12e3132b8609fc0f40dc98 (diff)
downloadnextcloud-server-a6d8854d2af234d0613467f12b45f229e0431b35.tar.gz
nextcloud-server-a6d8854d2af234d0613467f12b45f229e0431b35.zip
Make working en_US.UTF-8 locale a hard requirement
Diffstat (limited to 'lib/private/util.php')
-rwxr-xr-xlib/private/util.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 176eb4bc369..f285f83cf5c 100755
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -353,6 +353,13 @@ class OC_Util {
$errors = array_merge($errors, self::checkDataDirectoryPermissions($CONFIG_DATADIRECTORY));
}
+ if(!OC_Util::isSetLocaleWorking()) {
+ $errors[] = array(
+ 'error' => 'Setting locale to en_US.UTF-8/en_US.UTF8 failed',
+ 'hint' => 'Please install the locale on your system and restart your webserver.'
+ );
+ }
+
$moduleHint = "Please ask your server administrator to install the module.";
// check if all required php modules are present
if(!class_exists('ZipArchive')) {