$info = DI::l10n()->t('Please remember: You can always be reached from Diaspora with your Friendica handle <strong>%s</strong>. ', Session::get('my_address'));
@ -79,37 +77,44 @@ function diaspora_settings(App $a, &$s)
'$password' => ['password', DI::l10n()->t('Diaspora password'), '', DI::l10n()->t('Privacy notice: Your Diaspora password will be stored unencrypted to authenticate you with your Diaspora pod. This means your Friendica node administrator can have access to it.')],
'$aspect_select' => $aspect_select,
'$post_by_default' => ['post_by_default', DI::l10n()->t('Post to Diaspora by default'), $def_enabled],
'$password' => ['password', DI::l10n()->t('Diaspora password'), '', DI::l10n()->t('Privacy notice: Your Diaspora password will be stored unencrypted to authenticate you with your Diaspora pod. This means your Friendica node administrator can have access to it.')],
'$aspect_select' => $aspect_select,
'$post_by_default' => ['post_by_default', DI::l10n()->t('Post to Diaspora by default'), $def_enabled],
'$enabled' => ['enabled', DI::l10n()->t('Enable processing of Discourse mailing list mails'), $enabled, DI::l10n()->t('If enabled, incoming mails from Discourse will be improved so they look much better. To make it work, you have to configure the e-mail settings in Friendica. You also have to enable the mailing list mode in Discourse. Then you have to add the Discourse mail account as contact.')],
$s .= '<p>' . DI::l10n()->t('Create an account at <ahref="http://www.ifttt.com">IFTTT</a>. Create three Facebook recipes that are connected with <ahref="https://ifttt.com/maker">Maker</a> (In the form "if Facebook then Maker") with the following parameters:') . '</p>';
'intro' => DI::l10n()->t('Create an account at <ahref="http://www.ifttt.com">IFTTT</a>. Create three Facebook recipes that are connected with <ahref="https://ifttt.com/maker">Maker</a> (In the form "if Facebook then Maker") with the following parameters:'),
'url' => DI::l10n()->t('URL'),
'method' => DI::l10n()->t('Method'),
'content_type' => DI::l10n()->t('Content Type'),
'new_status_message_body' => DI::l10n()->t('Body for "new status message"'),
'new_photo_upload_body' => DI::l10n()->t('Body for "new photo upload"'),
'new_link_post_body' => DI::l10n()->t('Body for "new link post"'),
* lets check if we have one or more globally configured GNU Social
* server OAuth credentials in the configuration. If so offer them
* with a little explanation to the user as choice - otherwise
* ignore this option entirely.
*/
if (!$globalsn == null) {
$s .= '<h4>' . DI::l10n()->t('Globally Available GNU Social OAuthKeys') . '</h4>';
$s .= '<p>' . DI::l10n()->t("There are preconfigured OAuth key pairs for some GNU Social servers available. If you are using one of them, please use these credentials. If not feel free to connect to any other GNU Social instance \x28see below\x29.") . '</p>';
$s .= '<h4>' . DI::l10n()->t('Provide your own OAuth Credentials') . '</h4>';
$s .= '<p>' . DI::l10n()->t('No consumer key pair for GNU Social found. Register your Friendica Account as an desktop client on your GNU Social account, copy the consumer key pair here and enter the API base root.<br/>Before you register your own OAuth key pair ask the administrator if there is already a key pair for this Friendica installation at your favorited GNU Social installation.') . '</p>';
$s .= '<p>' . DI::l10n()->t('To connect to your GNU Social account click the button below to get a security code from GNU Social which you have to copy into the input box below and submit the form. Only your <strong>public</strong> posts will be posted to GNU Social.') . '</p>';
$s .= '<ahref="' . $connection->getAuthorizeURL($token, False) . '"target="_statusnet"><imgsrc="addon/statusnet/signinwithstatusnet.png"alt="' . DI::l10n()->t('Log in with GNU Social') . '"></a>';
$s .= '<divid="statusnet-pin-wrapper">';
$s .= '<labelid="statusnet-pin-label"for="statusnet-pin">' . DI::l10n()->t('Copy the security code from GNU Social here') . '</label>';
$connected_account = DI::l10n()->t('Currently connected to: <ahref="%s"target="_statusnet">%s</a>', $account->statusnet_profile_url, $account->screen_name);
}
$s .= '<p>' . DI::l10n()->t('If enabled all your <strong>public</strong> postings can be posted to the associated GNU Social account. You can choose to do so by default (here) or for every posting separately in the posting options when writing the entry.') . '</p>';
$user = User::getById(local_user());
if ($user['hidewall']) {
$s .= '<p>' . DI::l10n()->t('<strong>Note</strong>: Due your privacy settings (<em>Hide your profile details from unknown viewers?</em>) the link potentially included in public postings relayed to GNU Social will lead the visitor to a blank page informing the visitor that the access to your profile has been restricted.') . '</p>';
$privacy_warning = DI::l10n()->t('<strong>Note</strong>: Due your privacy settings (<em>Hide your profile details from unknown viewers?</em>) the link potentially included in public postings relayed to GNU Social will lead the visitor to a blank page informing the visitor that the access to your profile has been restricted.');
}
$s .= '<divid="statusnet-enable-wrapper">';
$s .= '<labelid="statusnet-enable-label"for="statusnet-checkbox">' . DI::l10n()->t('Allow posting to GNU Social') . '</label>';
$s .= '<labelid="statusnet-mirror-label"for="statusnet-mirror">' . DI::l10n()->t('Mirror all posts from GNU Social that are no replies or repeated messages') . '</label>';