Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix one hardcoded string
Signed-off-by: Carl Schwan <[email protected]>
  • Loading branch information
CarlSchwan committed Jul 6, 2022
commit 4309a2707bcbb8a680a1c467bc3a8a75fe74ccde
4 changes: 3 additions & 1 deletion lib/Model/ShareWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,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 @@ -677,7 +678,8 @@ private function setShareDisplay(IShare $share, IURLGenerator $urlGenerator) {

$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('%s (Circle owned by %s)', [$display, $circle->getOwner()->getDisplayName()]);
} else {
$display .= ' (' . Circle::$DEF_SOURCE[$circle->getSource()] . ')';
}
Expand Down