mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 03:18:48 +00:00
Update t() calls
Update all t() calls.
This commit is contained in:
parent
3ae390c6ee
commit
f8c162cbfb
77 changed files with 1043 additions and 968 deletions
|
@ -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>';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue