summaryrefslogtreecommitdiffstats
path: root/lib/private/Contacts
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2021-11-26 02:00:40 +0000
committerChristopher Ng <chrng8@gmail.com>2021-11-26 02:00:40 +0000
commitabecf594d6796e6ea1fe33fb4aaed1b5a577dd3b (patch)
treed29fc6f69c82c8ef3b75c009c06c0890490b26ea /lib/private/Contacts
parent848e589923de150b779060611701710eb16fffbd (diff)
downloadnextcloud-server-abecf594d6796e6ea1fe33fb4aaed1b5a577dd3b.tar.gz
nextcloud-server-abecf594d6796e6ea1fe33fb4aaed1b5a577dd3b.zip
Fix source of translations
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'lib/private/Contacts')
-rw-r--r--lib/private/Contacts/ContactsMenu/ContactsStore.php2
-rw-r--r--lib/private/Contacts/ContactsMenu/Providers/ProfileProvider.php2
2 files changed, 2 insertions, 2 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