mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 10:28:50 +00:00
Move L10n::t() calls to DI::l10n()->t() calls
This commit is contained in:
parent
1eb23e3667
commit
48fecb9a40
71 changed files with 721 additions and 721 deletions
|
@ -41,7 +41,7 @@ function numfriends_settings_post($a,$post) {
|
|||
return;
|
||||
|
||||
DI::pConfig()->set(local_user(),'system','display_friend_count',intval($_POST['numfriends']));
|
||||
info( L10n::t('Numfriends settings updated.') . EOL);
|
||||
info( DI::l10n()->t('Numfriends settings updated.') . EOL);
|
||||
}
|
||||
|
||||
|
||||
|
@ -68,13 +68,13 @@ function numfriends_settings(&$a, &$s)
|
|||
/* Add some HTML to the existing form */
|
||||
|
||||
$s .= '<div class="settings-block">';
|
||||
$s .= '<h3>' . L10n::t('Numfriends Settings') . '</h3>';
|
||||
$s .= '<h3>' . DI::l10n()->t('Numfriends Settings') . '</h3>';
|
||||
$s .= '<div id="numfriends-wrapper">';
|
||||
$s .= '<label id="numfriends-label" for="numfriends">' . L10n::t('How many contacts to display on profile sidebar') . '</label>';
|
||||
$s .= '<label id="numfriends-label" for="numfriends">' . DI::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="' . L10n::t('Save Settings') . '" /></div></div>';
|
||||
$s .= '<div class="settings-submit-wrapper" ><input type="submit" name="numfriends-submit" class="settings-submit" value="' . DI::l10n()->t('Save Settings') . '" /></div></div>';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue