diff options
author | Joas Schilling <coding@schilljs.com> | 2016-09-20 14:09:08 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-10-06 14:19:58 +0200 |
commit | a4f82f13f396fc063643ab4a9dfcf17b52019332 (patch) | |
tree | 486f57f4ab89a0299abd37af98e38a66da20b889 /apps/dav/lib/CalDAV | |
parent | ff3e8c21397c79ac1231c4f16a8372908d79b067 (diff) | |
download | nextcloud-server-a4f82f13f396fc063643ab4a9dfcf17b52019332.tar.gz nextcloud-server-a4f82f13f396fc063643ab4a9dfcf17b52019332.zip |
Translate the personal calendar
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib/CalDAV')
-rw-r--r-- | apps/dav/lib/CalDAV/CalDavBackend.php | 3 | ||||
-rw-r--r-- | apps/dav/lib/CalDAV/Calendar.php | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index d742061428b..07b61285eca 100644 --- a/apps/dav/lib/CalDAV/CalDavBackend.php +++ b/apps/dav/lib/CalDAV/CalDavBackend.php @@ -59,6 +59,9 @@ use Sabre\VObject\Recur\EventIterator; */ class CalDavBackend extends AbstractBackend implements SyncSupport, SubscriptionSupport, SchedulingSupport { + const PERSONAL_CALENDAR_URI = 'personal'; + const PERSONAL_CALENDAR_NAME = 'Personal'; + /** * We need to specify a max date, because we need to stop *somewhere* * diff --git a/apps/dav/lib/CalDAV/Calendar.php b/apps/dav/lib/CalDAV/Calendar.php index 3fbcd87acc0..fc08c9ac87a 100644 --- a/apps/dav/lib/CalDAV/Calendar.php +++ b/apps/dav/lib/CalDAV/Calendar.php @@ -38,6 +38,10 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IShareable { if ($this->getName() === BirthdayService::BIRTHDAY_CALENDAR_URI) { $this->calendarInfo['{DAV:}displayname'] = $l10n->t('Contact birthdays'); } + if ($this->getName() === CalDavBackend::PERSONAL_CALENDAR_URI && + $this->calendarInfo['{DAV:}displayname'] === CalDavBackend::PERSONAL_CALENDAR_NAME) { + $this->calendarInfo['{DAV:}displayname'] = $l10n->t('Personal'); + } } /** |