aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-12-01 23:01:00 +0100
committerGitHub <noreply@github.com>2016-12-01 23:01:00 +0100
commitac1bf3c2b7e0a820d68bf50d57f602a01a714d43 (patch)
treecf4e4b8ac856204e9a44001308a6cebecfd06cea /lib
parentea45b220535310f063a4785f2281c96b7c7c2581 (diff)
parentb2f46bfa04fdd6f205fba1a5d4011a9e5c5637dd (diff)
downloadnextcloud-server-ac1bf3c2b7e0a820d68bf50d57f602a01a714d43.tar.gz
nextcloud-server-ac1bf3c2b7e0a820d68bf50d57f602a01a714d43.zip
Merge pull request #2432 from nextcloud/activity-mail-language
Make sure the activity emails can be sent in the users language
Diffstat (limited to 'lib')
-rw-r--r--lib/public/Activity/IProvider.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/public/Activity/IProvider.php b/lib/public/Activity/IProvider.php
index 5b78e26f4bc..83096c4efac 100644
--- a/lib/public/Activity/IProvider.php
+++ b/lib/public/Activity/IProvider.php
@@ -29,11 +29,14 @@ namespace OCP\Activity;
*/
interface IProvider {
/**
- * @param IEvent $event
- * @param IEvent|null $previousEvent
+ * @param string $language The language which should be used for translating, e.g. "en"
+ * @param IEvent $event The current event which should be parsed
+ * @param IEvent|null $previousEvent A potential previous event which you can combine with the current one.
+ * To do so, simply use setChildEvent($previousEvent) after setting the
+ * combined subject on the current event.
* @return IEvent
- * @throws \InvalidArgumentException
+ * @throws \InvalidArgumentException Should be thrown if your provider does not know this event
* @since 11.0.0
*/
- public function parse(IEvent $event, IEvent $previousEvent = null);
+ public function parse($language, IEvent $event, IEvent $previousEvent = null);
}