Skip to content

Commit

Permalink
Fix one hardcoded string
Browse files Browse the repository at this point in the history
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
  • Loading branch information
CarlSchwan committed Jul 1, 2022
1 parent 8c56d97 commit e9a9b02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Model/ShareWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
use OCP\Files\IRootFolder;
use OCP\IURLGenerator;
use OCP\IUserManager;
use OCP\L10N\IFactory;
use OCP\Share\Exceptions\IllegalIDChangeException;
use OCP\Share\IShare;

Expand Down Expand Up @@ -403,7 +404,8 @@ private function setShareDisplay(IShare $share, IURLGenerator $urlGenerator): vo

$display = $circle->getDisplayName();
if ($circle->getSource() === Member::TYPE_CIRCLE) {
$display .= ' (Circle owned by ' . $circle->getOwner()->getDisplayName() . ')';
$l10n = \OCP\Server::get(IFactory::class)->get('circles');
$display = $l10n->t('%1 (Circle owned by %2)', [$display, $circle->getOwner()->getDisplayName()]);
} else {
$display .= ' (' . Circle::$DEF_SOURCE[$circle->getSource()] . ')';
}
Expand Down

0 comments on commit e9a9b02

Please sign in to comment.