]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Welcome.php
Decouple conversation creation from rendering
[friendica.git] / src / Module / Welcome.php
index 60b6454d2ea0fc7a110558e5b89dbb587aafb7fb..ad35f31e89b81f8f8aab5f88bbd9d9adc692f8d1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -30,7 +30,7 @@ use Friendica\DI;
  */
 class Welcome extends BaseModule
 {
-       public static function content(array $parameters = [])
+       protected function content(array $request = []): string
        {
                $config = DI::config();
 
@@ -60,7 +60,7 @@ class Welcome extends BaseModule
                        '$profiles_link'          => DI::l10n()->t('Edit Your Profile'),
                        '$profiles_txt'           => DI::l10n()->t('Edit your <strong>default</strong> profile to your liking. Review the settings for hiding your list of friends and hiding the profile from unknown visitors.'),
                        '$profiles_keywords_link' => DI::l10n()->t('Profile Keywords'),
-                       '$profiles_keywords_txt'  => DI::l10n()->t('Set some public keywords for your default profile which describe your interests. We may be able to find other people with similar interests and suggest friendships.'),
+                       '$profiles_keywords_txt'  => DI::l10n()->t('Set some public keywords for your profile which describe your interests. We may be able to find other people with similar interests and suggest friendships.'),
 
                        '$connecting'       => DI::l10n()->t('Connecting'),
                        '$mail_disabled'    => $mail_disabled,
@@ -73,9 +73,9 @@ class Welcome extends BaseModule
                        '$finding_link'     => DI::l10n()->t('Finding New People'),
                        '$finding_txt'      => DI::l10n()->t('On the side panel of the Contacts page are several tools to find new friends. We can match people by interest, look up people by name or interest, and provide suggestions based on network relationships. On a brand new site, friend suggestions will usually begin to be populated within 24 hours.'),
 
-                       '$groups'             => DI::l10n()->t('Groups'),
-                       '$group_contact_link' => DI::l10n()->t('Group Your Contacts'),
-                       '$group_contact_txt'  => DI::l10n()->t('Once you have made some friends, organize them into private conversation groups from the sidebar of your Contacts page and then you can interact with each group privately on your Network page.'),
+                       '$circles'             => DI::l10n()->t('Circles'),
+                       '$circle_contact_link' => DI::l10n()->t('Add Your Contacts To Circle'),
+                       '$circle_contact_txt'  => DI::l10n()->t('Once you have made some friends, organize them into private conversation circles from the sidebar of your Contacts page and then you can interact with each circle privately on your Network page.'),
                        '$newuser_private'    => $newuser_private,
                        '$private_link'       => DI::l10n()->t('Why Aren\'t My Posts Public?'),
                        '$private_txt'        => DI::l10n()->t('Friendica respects your privacy. By default, your posts will only show up to people you\'ve added as friends. For more information, see the help section from the link above.'),