]> git.mxchange.org Git - friendica-addons.git/blobdiff - numfriends/numfriends.php
Update t() calls
[friendica-addons.git] / numfriends / numfriends.php
index 5d6575c44a2b865888764e98b6803e0fc5b9e592..247c7dc7593e98aa9fa66e4ba42c12e12b7cd55c 100644 (file)
@@ -6,6 +6,7 @@
  * Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
  */
 use Friendica\Core\Addon;
+use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
 
 function numfriends_install() {
@@ -39,7 +40,7 @@ function numfriends_settings_post($a,$post) {
                return;
 
        PConfig::set(local_user(),'system','display_friend_count',intval($_POST['numfriends']));
-       info( t('Numfriends settings updated.') . EOL);
+       info( L10n::t('Numfriends settings updated.') . EOL);
 }
 
 
@@ -66,13 +67,13 @@ function numfriends_settings(&$a, &$s)
        /* Add some HTML to the existing form */
 
        $s .= '<div class="settings-block">';
-       $s .= '<h3>' . t('Numfriends Settings') . '</h3>';
+       $s .= '<h3>' . L10n::t('Numfriends Settings') . '</h3>';
        $s .= '<div id="numfriends-wrapper">';
-       $s .= '<label id="numfriends-label" for="numfriends">' . t('How many contacts to display on profile sidebar') . '</label>';
+       $s .= '<label id="numfriends-label" for="numfriends">' . L10n::t('How many contacts to display on profile sidebar') . '</label>';
        $s .= '<input id="numfriends-input" type="text" name="numfriends" value="' . intval($numfriends) . '" ' . '/>';
        $s .= '</div><div class="clear"></div>';
 
        /* provide a submit button */
 
-       $s .= '<div class="settings-submit-wrapper" ><input type="submit" name="numfriends-submit" class="settings-submit" value="' . t('Save Settings') . '" /></div></div>';
+       $s .= '<div class="settings-submit-wrapper" ><input type="submit" name="numfriends-submit" class="settings-submit" value="' . L10n::t('Save Settings') . '" /></div></div>';
 }