]> git.mxchange.org Git - friendica.git/blobdiff - include/bb2diaspora.php
More missed calls
[friendica.git] / include / bb2diaspora.php
index fc25a584a91b44ffd3513722ebe9683cacf4b5e3..2673750eec5f4fa4aea5c957a65c28dbe3e01ab8 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use Friendica\Content\Text\Markdown;
+use Friendica\Core\Addon;
 use Friendica\Core\System;
 use Friendica\Model\Contact;
 use Friendica\Network\Probe;
@@ -218,7 +219,7 @@ function bb2diaspora($Text, $preserve_nl = false, $fordiaspora = true) {
                }
        , $Text);
 
-       call_hooks('bb2diaspora',$Text);
+       Addon::callHooks('bb2diaspora',$Text);
 
        return $Text;
 }
@@ -233,13 +234,13 @@ function format_event_diaspora($ev) {
                return '';
        }
 
-       $bd_format = t('l F d, Y \@ g:i A') ; // Friday January 18, 2011 @ 8 AM
+       $bd_format = L10n::t('l F d, Y \@ g:i A') ; // Friday January 18, 2011 @ 8 AM
 
        $o = 'Friendica event notification:' . "\n";
 
        $o .= '**' . (($ev['summary']) ? bb2diaspora($ev['summary']) : bb2diaspora($ev['desc'])) .  '**' . "\n";
 
-       $o .= t('Starts:') . ' ' . '['
+       $o .= L10n::t('Starts:') . ' ' . '['
                . (($ev['adjust']) ? day_translate(datetime_convert('UTC', 'UTC',
                        $ev['start'] , $bd_format ))
                        :  day_translate(datetime_convert('UTC', 'UTC',
@@ -247,7 +248,7 @@ function format_event_diaspora($ev) {
                .  '](' . System::baseUrl() . '/localtime/?f=&time=' . urlencode(datetime_convert('UTC','UTC',$ev['start'])) . ")\n";
 
        if (! $ev['nofinish']) {
-               $o .= t('Finishes:') . ' ' . '['
+               $o .= L10n::t('Finishes:') . ' ' . '['
                        . (($ev['adjust']) ? day_translate(datetime_convert('UTC', 'UTC',
                                $ev['finish'] , $bd_format ))
                                :  day_translate(datetime_convert('UTC', 'UTC',
@@ -256,7 +257,7 @@ function format_event_diaspora($ev) {
        }
 
        if (strlen($ev['location'])) {
-               $o .= t('Location:') . bb2diaspora($ev['location'])
+               $o .= L10n::t('Location:') . bb2diaspora($ev['location'])
                        . "\n";
        }