X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FWelcome.php;h=02008a4a8673a9ae8319d86792dc5b4b9422f0ca;hb=04505366217b3a9c00710321f4495da03f727d39;hp=9e1eace9b6ec80cc6d33906b57f2a3ee915018a7;hpb=c1f99c70b1c7d62120723f3b142e843ba25ab338;p=friendica.git
diff --git a/src/Module/Welcome.php b/src/Module/Welcome.php
index 9e1eace9b6..02008a4a86 100644
--- a/src/Module/Welcome.php
+++ b/src/Module/Welcome.php
@@ -1,19 +1,38 @@
.
+ *
+ */
namespace Friendica\Module;
use Friendica\BaseModule;
-use Friendica\Core\L10n;
use Friendica\Core\Renderer;
+use Friendica\DI;
/**
* Prints the welcome page for new users
*/
class Welcome extends BaseModule
{
- public static function content()
+ protected function content(array $request = []): string
{
- $config = self::getApp()->getConfig();
+ $config = DI::config();
$mail_disabled = ((function_exists('imap_open') &&
(!$config->get('system', 'imap_disabled'))));
@@ -22,48 +41,48 @@ class Welcome extends BaseModule
$tpl = Renderer::getMarkupTemplate('welcome.tpl');
return Renderer::replaceMacros($tpl, [
- '$welcome' => L10n::t('Welcome to Friendica'),
- '$checklist' => L10n::t('New Member Checklist'),
- '$description' => L10n::t('We would like to offer some tips and links to help make your experience enjoyable. Click any item to visit the relevant page. A link to this page will be visible from your home page for two weeks after your initial registration and then will quietly disappear.'),
+ '$welcome' => DI::l10n()->t('Welcome to Friendica'),
+ '$checklist' => DI::l10n()->t('New Member Checklist'),
+ '$description' => DI::l10n()->t('We would like to offer some tips and links to help make your experience enjoyable. Click any item to visit the relevant page. A link to this page will be visible from your home page for two weeks after your initial registration and then will quietly disappear.'),
- '$started' => L10n::t('Getting Started'),
- '$quickstart_link' => L10n::t('Friendica Walk-Through'),
- '$quickstart_txt' => L10n::t('On your Quick Start page - find a brief introduction to your profile and network tabs, make some new connections, and find some groups to join.'),
+ '$started' => DI::l10n()->t('Getting Started'),
+ '$quickstart_link' => DI::l10n()->t('Friendica Walk-Through'),
+ '$quickstart_txt' => DI::l10n()->t('On your Quick Start page - find a brief introduction to your profile and network tabs, make some new connections, and find some groups to join.'),
- '$settings' => L10n::t('Settings'),
- '$settings_link' => L10n::t('Go to Your Settings'),
- '$settings_txt' => L10n::t('On your Settings page - change your initial password. Also make a note of your Identity Address. This looks just like an email address - and will be useful in making friends on the free social web.'),
- '$settings_other' => L10n::t('Review the other settings, particularly the privacy settings. An unpublished directory listing is like having an unlisted phone number. In general, you should probably publish your listing - unless all of your friends and potential friends know exactly how to find you.'),
+ '$settings' => DI::l10n()->t('Settings'),
+ '$settings_link' => DI::l10n()->t('Go to Your Settings'),
+ '$settings_txt' => DI::l10n()->t('On your Settings page - change your initial password. Also make a note of your Identity Address. This looks just like an email address - and will be useful in making friends on the free social web.'),
+ '$settings_other' => DI::l10n()->t('Review the other settings, particularly the privacy settings. An unpublished directory listing is like having an unlisted phone number. In general, you should probably publish your listing - unless all of your friends and potential friends know exactly how to find you.'),
- '$profile' => L10n::t('Profile'),
- '$profile_photo_link' => L10n::t('Upload Profile Photo'),
- '$profile_photo_txt' => L10n::t('Upload a profile photo if you have not done so already. Studies have shown that people with real photos of themselves are ten times more likely to make friends than people who do not.'),
- '$profiles_link' => L10n::t('Edit Your Profile'),
- '$profiles_txt' => L10n::t('Edit your default profile to your liking. Review the settings for hiding your list of friends and hiding the profile from unknown visitors.'),
- '$profiles_keywords_link' => L10n::t('Profile Keywords'),
- '$profiles_keywords_txt' => 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.'),
+ '$profile' => DI::l10n()->t('Profile'),
+ '$profile_photo_link' => DI::l10n()->t('Upload Profile Photo'),
+ '$profile_photo_txt' => DI::l10n()->t('Upload a profile photo if you have not done so already. Studies have shown that people with real photos of themselves are ten times more likely to make friends than people who do not.'),
+ '$profiles_link' => DI::l10n()->t('Edit Your Profile'),
+ '$profiles_txt' => DI::l10n()->t('Edit your default 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 profile which describe your interests. We may be able to find other people with similar interests and suggest friendships.'),
- '$connecting' => L10n::t('Connecting'),
+ '$connecting' => DI::l10n()->t('Connecting'),
'$mail_disabled' => $mail_disabled,
- '$import_mail_link' => L10n::t('Importing Emails'),
- '$import_mail_txt' => L10n::t('Enter your email access information on your Connector Settings page if you wish to import and interact with friends or mailing lists from your email INBOX'),
- '$contact_link' => L10n::t('Go to Your Contacts Page'),
- '$contact_txt' => L10n::t('Your Contacts page is your gateway to managing friendships and connecting with friends on other networks. Typically you enter their address or site URL in the Add New Contact dialog.'),
- '$directory_link' => L10n::t('Go to Your Site\'s Directory'),
- '$directory_txt' => L10n::t('The Directory page lets you find other people in this network or other federated sites. Look for a Connect or Follow link on their profile page. Provide your own Identity Address if requested.'),
- '$finding_link' => L10n::t('Finding New People'),
- '$finding_txt' => 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.'),
+ '$import_mail_link' => DI::l10n()->t('Importing Emails'),
+ '$import_mail_txt' => DI::l10n()->t('Enter your email access information on your Connector Settings page if you wish to import and interact with friends or mailing lists from your email INBOX'),
+ '$contact_link' => DI::l10n()->t('Go to Your Contacts Page'),
+ '$contact_txt' => DI::l10n()->t('Your Contacts page is your gateway to managing friendships and connecting with friends on other networks. Typically you enter their address or site URL in the Add New Contact dialog.'),
+ '$directory_link' => DI::l10n()->t('Go to Your Site\'s Directory'),
+ '$directory_txt' => DI::l10n()->t('The Directory page lets you find other people in this network or other federated sites. Look for a Connect or Follow link on their profile page. Provide your own Identity Address if requested.'),
+ '$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' => L10n::t('Groups'),
- '$group_contact_link' => L10n::t('Group Your Contacts'),
- '$group_contact_txt' => 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.'),
+ '$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.'),
'$newuser_private' => $newuser_private,
- '$private_link' => L10n::t('Why Aren\'t My Posts Public?'),
- '$private_txt' => 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.'),
+ '$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.'),
- '$help' => L10n::t('Getting Help'),
- '$help_link' => L10n::t('Go to the Help Section'),
- '$help_txt' => L10n::t('Our help pages may be consulted for detail on other program features and resources.'),
+ '$help' => DI::l10n()->t('Getting Help'),
+ '$help_link' => DI::l10n()->t('Go to the Help Section'),
+ '$help_txt' => DI::l10n()->t('Our help pages may be consulted for detail on other program features and resources.'),
]);
}
}