]> git.mxchange.org Git - friendica.git/blobdiff - mod/bookmarklet.php
Many t() calls
[friendica.git] / mod / bookmarklet.php
index 593b4fa661365ec8d38ef64c87f79a5ce0e98966..7a6a3ee21cf9ad5c65b79a9da85645d15b9e2716 100644 (file)
@@ -1,11 +1,14 @@
 <?php
-
+/**
+ * @file mod/bookmarklet.php
+ */
 use Friendica\App;
+use Friendica\Core\L10n;
 use Friendica\Core\System;
 use Friendica\Module\Login;
 
-require_once('include/conversation.php');
-require_once('include/items.php');
+require_once 'include/conversation.php';
+require_once 'include/items.php';
 
 function bookmarklet_init()
 {
@@ -15,7 +18,7 @@ function bookmarklet_init()
 function bookmarklet_content(App $a)
 {
        if (!local_user()) {
-               $o = '<h2>' . t('Login') . '</h2>';
+               $o = '<h2>' . L10n::t('Login') . '</h2>';
                $o .= Login::form($a->query_string, $a->config['register_policy'] == REGISTER_CLOSED ? false : true);
                return $o;
        }
@@ -43,7 +46,7 @@ function bookmarklet_content(App $a)
                $o = status_editor($a, $x, 0, false);
                $o .= "<script>window.resizeTo(800,550);</script>";
        } else {
-               $o = '<h2>' . t('The post was created') . '</h2>';
+               $o = '<h2>' . L10n::t('The post was created') . '</h2>';
                $o .= "<script>window.close()</script>";
        }