mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 03:32:00 -04:00
fix:remote account activity translation
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
This commit is contained in:
parent
9bc0777f80
commit
0d6803f0d7
1 changed files with 2 additions and 5 deletions
|
|
@ -47,8 +47,6 @@ class Provider implements IProvider {
|
|||
|
||||
/** @var IL10N */
|
||||
protected $l;
|
||||
/** @var IL10N */
|
||||
protected $activityLang;
|
||||
|
||||
/** @var IURLGenerator */
|
||||
protected $url;
|
||||
|
|
@ -108,7 +106,6 @@ class Provider implements IProvider {
|
|||
}
|
||||
|
||||
$this->l = $this->languageFactory->get('files', $language);
|
||||
$this->activityLang = $this->languageFactory->get('activity', $language);
|
||||
|
||||
if ($this->activityManager->isFormattingFilteredObject()) {
|
||||
try {
|
||||
|
|
@ -163,7 +160,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);
|
||||
|
|
@ -281,7 +278,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