X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotifications.php;h=396361e91b5bda012716767d3c2f677a8d2c6e29;hb=7034d6efbd988e7481ac6f5d6413a8925221ed6b;hp=e9c04a0c9354bd41649a6a9783da567b41420c22;hpb=7442ce3d6d9f09156b75fdfdb626f3f228ee01ee;p=friendica.git diff --git a/mod/notifications.php b/mod/notifications.php index e9c04a0c93..396361e91b 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -5,6 +5,8 @@ * @brief The notifications module */ +use Friendica\App; + require_once("include/NotificationsManager.php"); require_once("include/contact_selectors.php"); require_once("include/network.php"); @@ -195,11 +197,13 @@ function notifications_content(App $a) { $lbl_knowyou = t('Claims to be known to you: '); $knowyou = (($it['knowyou']) ? t('yes') : t('no')); $helptext = t('Shall your connection be bidirectional or not?'); - $helptext2 = t('"Friend" implies that you allow to read and you subscribe to their posts. "Subscriber" means that you allow to read but you do not want to read theirs. Approve as: '); + $helptext2 = sprintf(t('Accepting %s as a friend allows %s to subscribe to your posts, and you will also receive updates from them in your news feed.'), $it['name'], $it['name']); + $helptext3 = sprintf(t('Accepting %s as a subscriber allows them to subscribe to your posts, but you will not receive updates from them in your news feed.'), $it['name']); } else { $knowyou = ''; $helptext = t('Shall your connection be bidirectional or not?'); - $helptext2 = t('"Friend" implies that you allow to read and you subscribe to their posts. "Sharer" means that you allow to read but you do not want to read theirs. Approve as: '); + $helptext2 = sprintf(t('Accepting %s as a friend allows %s to subscribe to your posts, and you will also receive updates from them in your news feed.'), $it['name'], $it['name']); + $helptext3 = sprintf(t('Accepting %s as a sharer allows them to subscribe to your posts, but you will not receive updates from them in your news feed.'), $it['name']); } } @@ -209,6 +213,7 @@ function notifications_content(App $a) { '$fan_selected' => $fan_selected, '$approve_as1' => $helptext, '$approve_as2' => $helptext2, + '$approve_as3' => $helptext3, '$as_friend' => t('Friend'), '$as_fan' => (($it['network'] == NETWORK_DIASPORA) ? t('Sharer') : t('Subscriber')) )); @@ -220,6 +225,12 @@ function notifications_content(App $a) { $header .= " (".network_to_name($it['network'], $it['url']).")"; + if ($it['network'] != NETWORK_DIASPORA) { + $discard = t('Discard'); + } else { + $discard = ''; + } + $notif_content[] = replace_macros($tpl, array( '$header' => htmlentities($header), '$str_notifytype' => t('Notification type: '), @@ -252,7 +263,7 @@ function notifications_content(App $a) { '$approve' => t('Approve'), '$note' => $it['note'], '$ignore' => t('Ignore'), - '$discard' => t('Discard'), + '$discard' => $discard, )); break; @@ -289,7 +300,7 @@ function notifications_content(App $a) { '$item_link' => $it['link'], '$item_image' => $it['image'], '$item_url' => $it['url'], - '$item_text' => htmlentities($it['text']), + '$item_text' => $it['text'], '$item_when' => $it['when'], '$item_ago' => $it['ago'], '$item_seen' => $it['seen'],