]> git.mxchange.org Git - friendica.git/blobdiff - mod/follow.php
Merge pull request #4312 from zeroadam/feature/L10n
[friendica.git] / mod / follow.php
index f0644c919c2d294958e4b652ab6868f1ff7dac6d..a3270e30dd610ed8f6e128243748de6a43510c48 100644 (file)
@@ -41,7 +41,7 @@ function follow_post(App $a) {
                goaway(System::baseUrl().'/contacts/'.$result['cid']);
        }
 
-       info(t('Contact added').EOL);
+       info(L10n::t('Contact added').EOL);
 
        if (strstr($return_url, 'contacts')) {
                goaway(System::baseUrl().'/contacts/'.$contact_id);
@@ -144,12 +144,12 @@ function follow_content(App $a) {
 
        $header = L10n::t("Connect/Follow");
 
-       $o  = replace_macros($tpl,[
+       $o  = replace_macros($tpl, [
                        '$header' => htmlentities($header),
                        //'$photo' => proxy_url($ret["photo"], false, PROXY_SIZE_SMALL),
                        '$desc' => "",
                        '$pls_answer' => L10n::t('Please answer the following:'),
-                       '$does_know_you' => ['knowyou', sprintf(t('Does %s know you?'),$ret["name"]), false, '', [L10n::t('No'), L10n::t('Yes')]],
+                       '$does_know_you' => ['knowyou', L10n::t('Does %s know you?', $ret["name"]), false, '', [L10n::t('No'), L10n::t('Yes')]],
                        '$add_note' => L10n::t('Add a personal note:'),
                        '$page_desc' => "",
                        '$friendica' => "",
@@ -182,8 +182,8 @@ function follow_content(App $a) {
 
        if ($gcontact_id <> 0) {
                $o .= replace_macros(get_markup_template('section_title.tpl'),
-                                               ['$title' => L10n::t('Status Messages and Posts')
-               ]);
+                       ['$title' => L10n::t('Status Messages and Posts')]
+               );
 
                // Show last public posts
                $o .= Contact::getPostsFromUrl($ret["url"]);