Skip to content

Commit 8137f25

Browse files
committed
Fix one hardcoded string
Signed-off-by: Carl Schwan <[email protected]>
1 parent a122484 commit 8137f25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Model/ShareWrapper.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
use OCP\Files\IRootFolder;
4747
use OCP\IURLGenerator;
4848
use OCP\IUserManager;
49+
use OCP\L10N\IFactory;
4950
use OCP\Share\Exceptions\IllegalIDChangeException;
5051
use OCP\Share\IShare;
5152

@@ -677,7 +678,8 @@ private function setShareDisplay(IShare $share, IURLGenerator $urlGenerator) {
677678

678679
$display = $circle->getDisplayName();
679680
if ($circle->getSource() === Member::TYPE_CIRCLE) {
680-
$display .= ' (Circle owned by ' . $circle->getOwner()->getDisplayName() . ')';
681+
$l10n = \OCP\Server::get(IFactory::class)->get('circles');
682+
$display = $l10n->t('%1 (Circle owned by %2)', [$display, $circle->getOwner()->getDisplayName()]);
681683
} else {
682684
$display .= ' (' . Circle::$DEF_SOURCE[$circle->getSource()] . ')';
683685
}

0 commit comments

Comments
 (0)