From 9a3a4def3dcd40fad9946037441e55586b3dd815 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 23 Jul 2021 12:38:29 +0000 Subject: [PATCH 1/2] "hovercard" is "hcard" --- src/Module/{HoverCard.php => HCard.php} | 7 ++++--- static/routes.config.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) rename src/Module/{HoverCard.php => HCard.php} (96%) diff --git a/src/Module/HoverCard.php b/src/Module/HCard.php similarity index 96% rename from src/Module/HoverCard.php rename to src/Module/HCard.php index f86bb9597..e348f2ff5 100644 --- a/src/Module/HoverCard.php +++ b/src/Module/HCard.php @@ -29,9 +29,10 @@ use Friendica\Model\User; use Friendica\Network\HTTPException; /** - * Loads a profile for the HoverCard view + * Loads a profile for the hCard page + * @see http://microformats.org/wiki/hcard */ -class HoverCard extends BaseModule +class HCard extends BaseModule { public static function rawContent(array $parameters = []) { @@ -41,7 +42,7 @@ class HoverCard extends BaseModule // A logged in user views a profile of a user $nickname = $a->user['nickname']; } elseif (empty($parameters['action'])) { - // Show the profile hovercard + // Show the profile hCard $nickname = $parameters['profile']; } else { throw new HTTPException\NotFoundException(DI::l10n()->t('No profile')); diff --git a/static/routes.config.php b/static/routes.config.php index b4b9c6a53..9780bf3cb 100644 --- a/static/routes.config.php +++ b/static/routes.config.php @@ -292,7 +292,7 @@ return [ '/hashtag' => [Module\Hashtag::class, [R::GET]], '/help[/{doc:.+}]' => [Module\Help::class, [R::GET]], '/home' => [Module\Home::class, [R::GET]], - '/hcard/{profile}[/{action}]' => [Module\HoverCard::class, [R::GET]], + '/hcard/{profile}[/{action}]' => [Module\HCard::class, [R::GET]], '/inbox[/{nickname}]' => [Module\ActivityPub\Inbox::class, [R::GET, R::POST]], '/invite' => [Module\Invite::class, [R::GET, R::POST]], From 373aca10461d08a72347f0e9b825ba0e4d448608 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 23 Jul 2021 12:43:52 +0000 Subject: [PATCH 2/2] Updated "messages.po" --- view/lang/C/messages.po | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/view/lang/C/messages.po b/view/lang/C/messages.po index cf7eb4e35..d2facc393 100644 --- a/view/lang/C/messages.po +++ b/view/lang/C/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 2021.09-dev\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-20 17:39+0000\n" +"POT-Creation-Date: 2021-07-23 12:43+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -864,7 +864,7 @@ msgstr "" msgid "Access denied." msgstr "" -#: mod/cal.php:72 mod/cal.php:133 src/Module/HoverCard.php:53 +#: mod/cal.php:72 mod/cal.php:133 src/Module/HCard.php:54 #: src/Module/Profile/Common.php:41 src/Module/Profile/Common.php:53 #: src/Module/Profile/Contacts.php:40 src/Module/Profile/Contacts.php:51 #: src/Module/Profile/Status.php:58 src/Module/Register.php:254 @@ -3387,8 +3387,8 @@ msgstr "" msgid "last" msgstr "" -#: src/Content/Text/BBCode.php:953 src/Content/Text/BBCode.php:1656 -#: src/Content/Text/BBCode.php:1657 +#: src/Content/Text/BBCode.php:953 src/Content/Text/BBCode.php:1689 +#: src/Content/Text/BBCode.php:1690 msgid "Image/photo" msgstr "" @@ -3403,23 +3403,23 @@ msgstr "" msgid "Link to source" msgstr "" -#: src/Content/Text/BBCode.php:1574 src/Content/Text/HTML.php:951 +#: src/Content/Text/BBCode.php:1607 src/Content/Text/HTML.php:951 msgid "Click to open/close" msgstr "" -#: src/Content/Text/BBCode.php:1605 +#: src/Content/Text/BBCode.php:1638 msgid "$1 wrote:" msgstr "" -#: src/Content/Text/BBCode.php:1659 src/Content/Text/BBCode.php:1660 +#: src/Content/Text/BBCode.php:1692 src/Content/Text/BBCode.php:1693 msgid "Encrypted content" msgstr "" -#: src/Content/Text/BBCode.php:1873 +#: src/Content/Text/BBCode.php:1909 msgid "Invalid source protocol" msgstr "" -#: src/Content/Text/BBCode.php:1888 +#: src/Content/Text/BBCode.php:1924 msgid "Invalid link protocol" msgstr "" @@ -8208,6 +8208,10 @@ msgstr "" msgid "Add contact to group" msgstr "" +#: src/Module/HCard.php:48 +msgid "No profile" +msgstr "" + #: src/Module/HTTPException/MethodNotAllowed.php:32 msgid "Method Not Allowed." msgstr "" @@ -8221,10 +8225,6 @@ msgstr "" msgid "Welcome to %s" msgstr "" -#: src/Module/HoverCard.php:47 -msgid "No profile" -msgstr "" - #: src/Module/Install.php:188 msgid "Friendica Communications Server - Setup" msgstr ""