]> git.mxchange.org Git - friendica.git/blobdiff - mod/unfollow.php
Finish t() for mod
[friendica.git] / mod / unfollow.php
index c621b32814b7114c3afbc06bf5f5de1d990f88b7..8caf94245f33776f58710e46a221e7e970c0a0fc 100644 (file)
@@ -38,21 +38,21 @@ function unfollow_post(App $a)
                                WHERE `user`.`uid` = %d AND `contact`.`self` LIMIT 1",
                                intval($uid)
                        );
-                       if (DBM::is_result($r)) {
+                       if (DBM::is_result($r)) {
                                Contact::terminateFriendship($r[0], $contact);
                        }
                }
                dba::update('contact', ['rel' => CONTACT_IS_FOLLOWER], ['id' => $contact['id']]);
 
-               info(t('Contact unfollowed').EOL);
+               info(L10n::t('Contact unfollowed').EOL);
                goaway(System::baseUrl().'/contacts/'.$contact['id']);
        }
        goaway($return_url);
        // NOTREACHED
 }
 
-function unfollow_content(App $a) {
-
+function unfollow_content(App $a)
+{
        if (! local_user()) {
                notice(L10n::t('Permission denied.') . EOL);
                goaway($_SESSION['return_url']);
@@ -62,7 +62,7 @@ function unfollow_content(App $a) {
        $uid = local_user();
        $url = notags(trim($_REQUEST['url']));
 
-       $submit = t('Submit Request');
+       $submit = L10n::t('Submit Request');
 
        $condition = ["`uid` = ? AND `rel` = ? AND (`nurl` = ? OR `alias` = ? OR `alias` = ?) AND `network` != ?",
                        local_user(), CONTACT_IS_FRIEND, normalise_link($url),
@@ -97,9 +97,9 @@ function unfollow_content(App $a) {
        // Makes the connection request for friendica contacts easier
        $_SESSION["fastlane"] = $contact["url"];
 
-       $header = t("Disconnect/Unfollow");
+       $header = L10n::t("Disconnect/Unfollow");
 
-       $o  = replace_macros($tpl,[
+       $o  = replace_macros($tpl, [
                        '$header' => htmlentities($header),
                        '$desc' => "",
                        '$pls_answer' => "",
@@ -110,16 +110,16 @@ function unfollow_content(App $a) {
                        '$statusnet' => "",
                        '$diaspora' => "",
                        '$diasnote' => "",
-                       '$your_address' => t('Your Identity Address:'),
+                       '$your_address' => L10n::t('Your Identity Address:'),
                        '$invite_desc' => "",
                        '$emailnet' => "",
                        '$submit' => $submit,
-                       '$cancel' => t('Cancel'),
+                       '$cancel' => L10n::t('Cancel'),
                        '$nickname' => "",
                        '$name' => $contact["name"],
                        '$url' => $contact["url"],
                        '$zrl' => Profile::zrl($contact["url"]),
-                       '$url_label' => t("Profile URL"),
+                       '$url_label' => L10n::t("Profile URL"),
                        '$myaddr' => $myaddr,
                        '$request' => $request,
                        '$keywords' => "",
@@ -129,7 +129,7 @@ function unfollow_content(App $a) {
        $a->page['aside'] = "";
        Profile::load($a, "", 0, Contact::getDetailsByURL($contact["url"]));
 
-       $o .= replace_macros(get_markup_template('section_title.tpl'), ['$title' => t('Status Messages and Posts')]);
+       $o .= replace_macros(get_markup_template('section_title.tpl'), ['$title' => L10n::t('Status Messages and Posts')]);
 
        // Show last public posts
        $o .= Contact::getPostsFromUrl($contact["url"]);