diff options
Diffstat (limited to 'lib/private/Profile')
-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 |
5 files changed, 15 insertions, 15 deletions
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'), ], ]; |