diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Contacts/ContactsMenu/ContactsStore.php | 2 | ||||
-rw-r--r-- | lib/private/Contacts/ContactsMenu/Providers/ProfileProvider.php | 2 | ||||
-rw-r--r-- | lib/private/Profile/Actions/EmailAction.php | 4 | ||||
-rw-r--r-- | lib/private/Profile/Actions/PhoneAction.php | 4 | ||||
-rw-r--r-- | lib/private/Profile/Actions/TwitterAction.php | 4 | ||||
-rw-r--r-- | lib/private/Profile/Actions/WebsiteAction.php | 4 | ||||
-rw-r--r-- | lib/private/Profile/ProfileManager.php | 14 |
7 files changed, 17 insertions, 17 deletions
diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php index eb7e752a87a..cd1cc9b6169 100644 --- a/lib/private/Contacts/ContactsMenu/ContactsStore.php +++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php @@ -334,7 +334,7 @@ class ContactsStore implements IContactsStore { if (!empty($user)) { $account = $this->accountManager->getAccount($user); if ($this->isProfileEnabled($account)) { - $entry->setProfileTitle($this->l10nFactory->get('core')->t('View profile')); + $entry->setProfileTitle($this->l10nFactory->get('lib')->t('View profile')); $entry->setProfileUrl($this->urlGenerator->linkToRouteAbsolute('core.ProfilePage.index', ['targetUserId' => $targetUserId])); } } diff --git a/lib/private/Contacts/ContactsMenu/Providers/ProfileProvider.php b/lib/private/Contacts/ContactsMenu/Providers/ProfileProvider.php index 88370f193a1..15d24fc7773 100644 --- a/lib/private/Contacts/ContactsMenu/Providers/ProfileProvider.php +++ b/lib/private/Contacts/ContactsMenu/Providers/ProfileProvider.php @@ -81,7 +81,7 @@ class ProfileProvider implements IProvider { $account = $this->accountManager->getAccount($targetUser); if ($this->isProfileEnabled($account)) { $iconUrl = $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/profile.svg')); - $profileActionText = $this->l10nFactory->get('core')->t('View profile'); + $profileActionText = $this->l10nFactory->get('lib')->t('View profile'); $profileUrl = $this->urlGenerator->linkToRouteAbsolute('core.ProfilePage.index', ['targetUserId' => $targetUserId]); $action = $this->actionFactory->newLinkAction($iconUrl, $profileActionText, $profileUrl, 'profile'); // Set highest priority (by descending order), other actions have the default priority 10 as defined in lib/private/Contacts/ContactsMenu/Actions/LinkAction.php diff --git a/lib/private/Profile/Actions/EmailAction.php b/lib/private/Profile/Actions/EmailAction.php index 1eef1236630..d3c749e06c3 100644 --- a/lib/private/Profile/Actions/EmailAction.php +++ b/lib/private/Profile/Actions/EmailAction.php @@ -70,11 +70,11 @@ class EmailAction implements ILinkAction { } public function getDisplayId(): string { - return $this->l10nFactory->get('core')->t('Email'); + return $this->l10nFactory->get('lib')->t('Email'); } public function getTitle(): string { - return $this->l10nFactory->get('core')->t('Mail %s', [$this->value]); + return $this->l10nFactory->get('lib')->t('Mail %s', [$this->value]); } public function getPriority(): int { diff --git a/lib/private/Profile/Actions/PhoneAction.php b/lib/private/Profile/Actions/PhoneAction.php index df0e30cd277..43974df62fb 100644 --- a/lib/private/Profile/Actions/PhoneAction.php +++ b/lib/private/Profile/Actions/PhoneAction.php @@ -70,11 +70,11 @@ class PhoneAction implements ILinkAction { } public function getDisplayId(): string { - return $this->l10nFactory->get('core')->t('Phone'); + return $this->l10nFactory->get('lib')->t('Phone'); } public function getTitle(): string { - return $this->l10nFactory->get('core')->t('Call %s', [$this->value]); + return $this->l10nFactory->get('lib')->t('Call %s', [$this->value]); } public function getPriority(): int { diff --git a/lib/private/Profile/Actions/TwitterAction.php b/lib/private/Profile/Actions/TwitterAction.php index 3dcfa8aaf12..204284be1f5 100644 --- a/lib/private/Profile/Actions/TwitterAction.php +++ b/lib/private/Profile/Actions/TwitterAction.php @@ -71,12 +71,12 @@ class TwitterAction implements ILinkAction { } public function getDisplayId(): string { - return $this->l10nFactory->get('core')->t('Twitter'); + return $this->l10nFactory->get('lib')->t('Twitter'); } public function getTitle(): string { $displayUsername = $this->value[0] === '@' ? $this->value : '@' . $this->value; - return $this->l10nFactory->get('core')->t('View %s on Twitter', [$displayUsername]); + return $this->l10nFactory->get('lib')->t('View %s on Twitter', [$displayUsername]); } public function getPriority(): int { diff --git a/lib/private/Profile/Actions/WebsiteAction.php b/lib/private/Profile/Actions/WebsiteAction.php index ea1daeee20e..0a08879059c 100644 --- a/lib/private/Profile/Actions/WebsiteAction.php +++ b/lib/private/Profile/Actions/WebsiteAction.php @@ -70,11 +70,11 @@ class WebsiteAction implements ILinkAction { } public function getDisplayId(): string { - return $this->l10nFactory->get('core')->t('Website'); + return $this->l10nFactory->get('lib')->t('Website'); } public function getTitle(): string { - return $this->l10nFactory->get('core')->t('Visit %s', [$this->value]); + return $this->l10nFactory->get('lib')->t('Visit %s', [$this->value]); } public function getPriority(): int { diff --git a/lib/private/Profile/ProfileManager.php b/lib/private/Profile/ProfileManager.php index 557ae87bafe..c4317b294f3 100644 --- a/lib/private/Profile/ProfileManager.php +++ b/lib/private/Profile/ProfileManager.php @@ -396,31 +396,31 @@ class ProfileManager { $propertiesMetadata = [ IAccountManager::PROPERTY_ADDRESS => [ 'appId' => self::CORE_APP_ID, - 'displayId' => $this->l10nFactory->get(self::CORE_APP_ID)->t('Address'), + 'displayId' => $this->l10nFactory->get('lib')->t('Address'), ], IAccountManager::PROPERTY_AVATAR => [ 'appId' => self::CORE_APP_ID, - 'displayId' => $this->l10nFactory->get(self::CORE_APP_ID)->t('Profile picture'), + 'displayId' => $this->l10nFactory->get('lib')->t('Profile picture'), ], IAccountManager::PROPERTY_BIOGRAPHY => [ 'appId' => self::CORE_APP_ID, - 'displayId' => $this->l10nFactory->get(self::CORE_APP_ID)->t('About'), + 'displayId' => $this->l10nFactory->get('lib')->t('About'), ], IAccountManager::PROPERTY_DISPLAYNAME => [ 'appId' => self::CORE_APP_ID, - 'displayId' => $this->l10nFactory->get(self::CORE_APP_ID)->t('Full name'), + 'displayId' => $this->l10nFactory->get('lib')->t('Full name'), ], IAccountManager::PROPERTY_HEADLINE => [ 'appId' => self::CORE_APP_ID, - 'displayId' => $this->l10nFactory->get(self::CORE_APP_ID)->t('Headline'), + 'displayId' => $this->l10nFactory->get('lib')->t('Headline'), ], IAccountManager::PROPERTY_ORGANISATION => [ 'appId' => self::CORE_APP_ID, - 'displayId' => $this->l10nFactory->get(self::CORE_APP_ID)->t('Organisation'), + 'displayId' => $this->l10nFactory->get('lib')->t('Organisation'), ], IAccountManager::PROPERTY_ROLE => [ 'appId' => self::CORE_APP_ID, - 'displayId' => $this->l10nFactory->get(self::CORE_APP_ID)->t('Role'), + 'displayId' => $this->l10nFactory->get('lib')->t('Role'), ], ]; |