]> source.dussan.org Git - nextcloud-server.git/commitdiff
OCS API calls will always return English messages
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 15 Apr 2014 13:32:08 +0000 (15:32 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 15 Apr 2014 13:32:08 +0000 (15:32 +0200)
ocs/v1.php

index 62a3511e611b6a40bb8d20f4295899a420b385db..d69904fc4954c8f898f1e945e2d3d1d97c297d93 100644 (file)
@@ -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();