diff options
author | Thomas Citharel <tcit@tcit.fr> | 2021-08-16 18:55:27 +0300 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2021-08-16 20:03:00 +0300 |
commit | a7b9b398a35c914b39c8eb41f920612a5f21eb36 (patch) | |
tree | 696a300f8e7a33827653628464b15b0506f02035 /apps/dav/appinfo | |
parent | 5da42273805160f75436f53b829b17e7b4ed2054 (diff) |
Expose user language through DAV
Introduces the '{http://nextcloud.com/ns}language' prop that gives the
user's language
Closes #28449
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps/dav/appinfo')
-rw-r--r-- | apps/dav/appinfo/v1/caldav.php | 1 | ||||
-rw-r--r-- | apps/dav/appinfo/v1/carddav.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/dav/appinfo/v1/caldav.php b/apps/dav/appinfo/v1/caldav.php index b1543ba3cef..28840fcef4c 100644 --- a/apps/dav/appinfo/v1/caldav.php +++ b/apps/dav/appinfo/v1/caldav.php @@ -52,6 +52,7 @@ $principalBackend = new Principal( \OC::$server->query(\OCA\DAV\CalDAV\Proxy\ProxyMapper::class), \OC::$server->get(KnownUserService::class), \OC::$server->getConfig(), + \OC::$server->getL10NFactory(), 'principals/' ); $db = \OC::$server->getDatabaseConnection(); diff --git a/apps/dav/appinfo/v1/carddav.php b/apps/dav/appinfo/v1/carddav.php index 637ae3eed1a..53449b91c4b 100644 --- a/apps/dav/appinfo/v1/carddav.php +++ b/apps/dav/appinfo/v1/carddav.php @@ -55,6 +55,7 @@ $principalBackend = new Principal( \OC::$server->query(\OCA\DAV\CalDAV\Proxy\ProxyMapper::class), \OC::$server->get(KnownUserService::class), \OC::$server->getConfig(), + \OC::$server->getL10NFactory(), 'principals/' ); $db = \OC::$server->getDatabaseConnection(); |