diff options
Diffstat (limited to 'lib/util.php')
-rwxr-xr-x | lib/util.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index 3e59847f538..4d69f3d86db 100755 --- a/lib/util.php +++ b/lib/util.php @@ -554,6 +554,18 @@ class OC_Util { /** + * Check if the setlocal call doesn't work. This can happen if the right local packages are not available on the server. + */ + public static function issetlocaleworking() { + $result=setlocale(LC_ALL, 'en_US.UTF-8'); + if($result==false) { + return(false); + }else{ + return(true); + } + } + + /** * Check if the ownCloud server can connect to the internet */ public static function isinternetconnectionworking() { |