diff --git a/lib/addressbook.php b/lib/addressbook.php index 1dea6814..f9535997 100644 --- a/lib/addressbook.php +++ b/lib/addressbook.php @@ -166,7 +166,7 @@ class Addressbook extends AbstractPIMCollection { //\OCP\Util::writeLog('contacts', __METHOD__.' id: '.$id, \OCP\Util::DEBUG); if (!$this->hasPermission(\OCP\PERMISSION_READ)) { throw new \Exception( - self::$l10n->t('You do not have permissions to see this contacts'), + self::$l10n->t('You do not have permissions to see this contact'), Http::STATUS_FORBIDDEN ); } diff --git a/lib/contact.php b/lib/contact.php index 8eeaad71..b7a2e710 100644 --- a/lib/contact.php +++ b/lib/contact.php @@ -296,7 +296,7 @@ class Contact extends VObject\VCard implements IPIMObject { } } else { if (!$this->getBackend()->hasContactMethodFor(\OCP\PERMISSION_CREATE)) { - throw new \Exception(self::$l10n->t('This backend not support adding contacts'), 501); + throw new \Exception(self::$l10n->t('This backend does not support adding contacts'), 501); } $this->props['id'] = $this->getBackend()->createContact( $this->getParent()->getId(), $this