mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #51326 from nextcloud/backport/51216/stable31
[stable31] fix: remote account activity translation
This commit is contained in:
commit
a8461c0453
1 changed files with 2 additions and 5 deletions
|
|
@ -25,8 +25,6 @@ use OCP\L10N\IFactory;
|
|||
class Provider implements IProvider {
|
||||
/** @var IL10N */
|
||||
protected $l;
|
||||
/** @var IL10N */
|
||||
protected $activityLang;
|
||||
|
||||
/** @var string[] cached displayNames - key is the cloud id and value the displayname */
|
||||
protected $displayNames = [];
|
||||
|
|
@ -59,7 +57,6 @@ class Provider implements IProvider {
|
|||
}
|
||||
|
||||
$this->l = $this->languageFactory->get('files', $language);
|
||||
$this->activityLang = $this->languageFactory->get('activity', $language);
|
||||
|
||||
if ($this->activityManager->isFormattingFilteredObject()) {
|
||||
try {
|
||||
|
|
@ -114,7 +111,7 @@ class Provider implements IProvider {
|
|||
|
||||
if (!isset($parsedParameters['user'])) {
|
||||
// External user via public link share
|
||||
$subject = str_replace('{user}', $this->activityLang->t('"remote account"'), $subject);
|
||||
$subject = str_replace('{user}', $this->l->t('"remote account"'), $subject);
|
||||
}
|
||||
|
||||
$this->setSubjects($event, $subject, $parsedParameters);
|
||||
|
|
@ -232,7 +229,7 @@ class Provider implements IProvider {
|
|||
|
||||
if (!isset($parsedParameters['user'])) {
|
||||
// External user via public link share
|
||||
$subject = str_replace('{user}', $this->activityLang->t('"remote account"'), $subject);
|
||||
$subject = str_replace('{user}', $this->l->t('"remote account"'), $subject);
|
||||
}
|
||||
|
||||
$this->setSubjects($event, $subject, $parsedParameters);
|
||||
|
|
|
|||
Loading…
Reference in a new issue