diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-24 17:42:26 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-09 10:38:38 +0100 |
commit | 2367797c17aafe0f0570477ff653894f3033e97c (patch) | |
tree | a838d249abd8d65bfb985309e6d080fb65667210 /ocs/v1.php | |
parent | 33b11682f9826346f48b7587161dc5a43944a063 (diff) | |
download | nextcloud-server-2367797c17aafe0f0570477ff653894f3033e97c.tar.gz nextcloud-server-2367797c17aafe0f0570477ff653894f3033e97c.zip |
Respect http header 'Accept-Language' on ocs and remote.php calls
Diffstat (limited to 'ocs/v1.php')
-rw-r--r-- | ocs/v1.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ocs/v1.php b/ocs/v1.php index b0f3e5e2b90..86631f39686 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -39,8 +39,8 @@ try { // load all apps to get all api routes properly setup OC_App::loadApps(); - // api calls always will return English - \OC_L10N::forceLanguage('en'); + // force language as given in the http request + \OC_L10N::setLanguageFromRequest(); OC::$server->getRouter()->match('/ocs'.\OC::$server->getRequest()->getRawPathInfo()); } catch (ResourceNotFoundException $e) { |