]> git.mxchange.org Git - friendica.git/commitdiff
Fix spaces around t() and tt()
authorfabrixxm <fabrix.xm@gmail.com>
Sun, 13 Mar 2011 12:50:44 +0000 (13:50 +0100)
committerfabrixxm <fabrix.xm@gmail.com>
Sun, 13 Mar 2011 12:50:44 +0000 (13:50 +0100)
mod/dfrn_confirm.php
mod/dfrn_notify.php
mod/dfrn_request.php
mod/home.php
mod/invite.php
mod/item.php
mod/like.php
mod/manage.php

index edca629aeca5c3695caf7b8258bdd95466d2f747..1bf1ba9549ebe2c86d5080e6a7de03a7d1867898 100644 (file)
@@ -645,7 +645,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
                                '$uid' => $newuid )
                        );
        
-                       $res = mail($r[0]['email'], sprintf(t("Connection accepted at %s"), $a->config['sitename']),
+                       $res = mail($r[0]['email'], sprintf( t("Connection accepted at %s") , $a->config['sitename']),
                                $email_tpl, 'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] );
                        if(!$res) {
                                // pointless throwing an error here and confusing the person at the other end of the wire.
index f288e9bebe6630f9462eefa8a8abd0e53d7f4253..3a75123a52a88f6830bf1c2387ae10dc0cb17f5e 100644 (file)
@@ -471,8 +471,8 @@ function dfrn_notify_post(&$a) {
                                                                '$body' => html_entity_decode(strip_tags(bbcode(stripslashes($datarray['body']))), ENT_QUOTES, 'UTF-8')
                                                        ));
 
-                                                       $res = mail($importer['email'], sprintf(t("%s commented on an item at %s"), $from ,$a->config['sitename']),
-                                                               $email_tpl,t("From: Administrator@") . $a->get_hostname() );
+                                                       $res = mail($importer['email'], sprintf( t("%s commented on an item at %s") , $from ,$a->config['sitename']),
+                                                               $email_tpl, t("From: Administrator@") . $a->get_hostname() );
                                                        break;
                                                }
                                        }
index 5a2f3c28283c589b046e1d16bd1ad1d9dd1da31d..3cd8473cf314120f12f421dc2d874d0983fc2cd1 100644 (file)
@@ -540,7 +540,7 @@ function dfrn_request_content(&$a) {
                                                '$sitename' => $a->config['sitename']
                                        ));
                                        $res = mail($r[0]['email'], 
-                                               t("Introduction received at ") . $a->config['sitename'],
+                                           t("Introduction received at ") . $a->config['sitename'],
                                                $email,
                                                'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] );
                                        // This is a redundant notification - no point throwing errors if it fails.
index 4fca1cbc23a3b8e37e7290e578217103b4a4038e..225bd294d2fbcecce3a716060b6c8708e3f04031 100644 (file)
@@ -20,7 +20,7 @@ function home_content(&$a) {
        if(x($_SESSION,'theme'))
                unset($_SESSION['theme']);
 
-       $o .= '<h1>' . ((x($a->config,'sitename')) ? sprintf(t("Welcome to %s"),$a->config['sitename']) : "" ) . '</h1>';
+       $o .= '<h1>' . ((x($a->config,'sitename')) ? sprintf( t("Welcome to %s") ,$a->config['sitename']) : "" ) . '</h1>';
        if(file_exists('home.html'))
                $o .= file_get_contents('home.html');
 
index e3662d758b5c899188697c2dcfd0b58b6028a6f5..84fa978ad1aafb397e82e55296256fd94d000202 100644 (file)
@@ -39,7 +39,7 @@ function invite_post(&$a) {
                }
 
        }
-       notice( sprintf(tt("%d message sent.", "%d messages sent.", $total), $total) . EOL);
+       notice( sprintf( tt("%d message sent.", "%d messages sent.", $total) , $total) . EOL);
        return;
 }
 
index 9e03e76cd302ef9910f3ccd779986574788e51c0..2cdfb0d66b4e5bf01994507ceda51d3d9d45f04d 100644 (file)
@@ -419,7 +419,7 @@ function item_post(&$a) {
                                        '$body' => strip_tags(bbcode($datarray['body']))
                                ));
 
-                               $res = mail($user['email'], sprintf(t("%s commented on your item at %s"),$from,$a->config['sitename']),
+                               $res = mail($user['email'], sprintf( t("%s commented on your item at %s") ,$from,$a->config['sitename']),
                                        $email_tpl,"From: " . t("Administrator") . "@" . $a->get_hostname() );
                        }
                }
@@ -442,7 +442,7 @@ function item_post(&$a) {
                                        '$body' => strip_tags(bbcode($datarray['body']))
                                ));
 
-                               $res = mail($user['email'], sprintf(t("%s posted on your profile wall at %s"),$from, $a->config['sitename']),
+                               $res = mail($user['email'], sprintf( t("%s posted on your profile wall at %s") ,$from, $a->config['sitename']),
                                        $email_tpl,"From: " . t("Administrator@") . "@" . $a->get_hostname() );
                        }
                }
index c07f3097ea43fbdf6c8ae6f77c2ab2d5edc75f4b..406d6cc00775cbedb8a2ace84da84e58ee3c4de5 100644 (file)
@@ -148,7 +148,7 @@ EOT;
        $arr['author-link'] = $contact['url'];
        $arr['author-avatar'] = $contact['thumb'];
        $arr['body'] = '[url=' . $contact['url'] . ']' . $contact['name'] . '[/url]' . ' ' . $bodyverb . ' ' 
-               . '[url=' . $item['author-link'] . ']' . sprintf(t("%s's"),$item['author-name']) . '[/url]' . ' '
+               . '[url=' . $item['author-link'] . ']' . sprintf( t("%s's") ,$item['author-name']) . '[/url]' . ' '
                . '[url=' . $a->get_baseurl() . '/display/' . $owner['nickname'] . '/' . $item['id'] . ']' . $post_type . '[/url]' ;
 
        $arr['verb'] = $activity;
index f30a04348c44a2ec51017bf2a8e6e4a8fb470b45..26f7315c326cc7c87809f0c194c147349536b29b 100644 (file)
@@ -34,7 +34,7 @@ function manage_post(&$a) {
        $_SESSION['page_flags'] = $r[0]['page-flags'];
        $_SESSION['my_url'] = $a->get_baseurl() . '/profile/' . $r[0]['nickname'];
 
-       notice( sprintf(t("Welcome back %s"), $r[0]['username']) . EOL);
+       notice( sprintf( t("Welcome back %s") , $r[0]['username']) . EOL);
        $a->user = $r[0];
 
        if(strlen($a->user['timezone'])) {