diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-08-11 12:34:58 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-08-11 12:34:58 +0200 |
commit | 0abc637782aec1745f9445f193ccc3b9a95ba77d (patch) | |
tree | 07ca480789f5718c1ded91a03a6922e62bdb06b1 /apps/files/lib | |
parent | acd54fbeda9dae0fa43291a9c190226ccd306503 (diff) | |
parent | 81c3bbad5724bf4db5e980d052f38277bf197952 (diff) | |
download | nextcloud-server-0abc637782aec1745f9445f193ccc3b9a95ba77d.tar.gz nextcloud-server-0abc637782aec1745f9445f193ccc3b9a95ba77d.zip |
Merge pull request #18171 from owncloud/fix-language-of-files-activities-in-emails
Correctly make use of the languageCode argument in the files activity extension
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/activity.php | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/apps/files/lib/activity.php b/apps/files/lib/activity.php index 44b051248b5..bf80d0cfd7c 100644 --- a/apps/files/lib/activity.php +++ b/apps/files/lib/activity.php @@ -144,25 +144,26 @@ class Activity implements IExtension { return false; } + $l = $this->getL10N($languageCode); switch ($text) { case 'created_self': - return (string) $this->l->t('You created %1$s', $params); + return (string) $l->t('You created %1$s', $params); case 'created_by': - return (string) $this->l->t('%2$s created %1$s', $params); + return (string) $l->t('%2$s created %1$s', $params); case 'created_public': - return (string) $this->l->t('%1$s was created in a public folder', $params); + return (string) $l->t('%1$s was created in a public folder', $params); case 'changed_self': - return (string) $this->l->t('You changed %1$s', $params); + return (string) $l->t('You changed %1$s', $params); case 'changed_by': - return (string) $this->l->t('%2$s changed %1$s', $params); + return (string) $l->t('%2$s changed %1$s', $params); case 'deleted_self': - return (string) $this->l->t('You deleted %1$s', $params); + return (string) $l->t('You deleted %1$s', $params); case 'deleted_by': - return (string) $this->l->t('%2$s deleted %1$s', $params); + return (string) $l->t('%2$s deleted %1$s', $params); case 'restored_self': - return (string) $this->l->t('You restored %1$s', $params); + return (string) $l->t('You restored %1$s', $params); case 'restored_by': - return (string) $this->l->t('%2$s restored %1$s', $params); + return (string) $l->t('%2$s restored %1$s', $params); default: return false; |