From: Thomas Müller Date: Tue, 15 Apr 2014 13:32:08 +0000 (+0200) Subject: OCS API calls will always return English messages X-Git-Tag: v7.0.0alpha2~424^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=596177727afbab9950d29d44af94e4d03814ce72;p=nextcloud-server.git OCS API calls will always return English messages --- diff --git a/ocs/v1.php b/ocs/v1.php index 62a3511e611..d69904fc495 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -30,6 +30,9 @@ try { // load all apps to get all api routes properly setup OC_App::loadApps(); + // api calls always will return English + \OC_L10N::forceLanguage('en'); + OC::$server->getRouter()->match('/ocs'.OC_Request::getRawPathInfo()); } catch (ResourceNotFoundException $e) { OC_API::setContentType();