diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-01-21 11:48:10 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-01-21 11:48:10 +0100 |
commit | b711c050db39bd733f4a48cbe575b9e926aa3d0d (patch) | |
tree | 203ec54b2bbe4e5d1fe77098f4fbc46c85422ec4 /include/text.php | |
parent | 928f1bfa7bdaa4f8a85ea4bec6ebcb182975f158 (diff) | |
download | volse-hubzilla-b711c050db39bd733f4a48cbe575b9e926aa3d0d.tar.gz volse-hubzilla-b711c050db39bd733f4a48cbe575b9e926aa3d0d.tar.bz2 volse-hubzilla-b711c050db39bd733f4a48cbe575b9e926aa3d0d.zip |
make contact block look widget alike
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php index 6f7297bb0..a03648081 100644 --- a/include/text.php +++ b/include/text.php @@ -812,7 +812,7 @@ function contact_block() { ); if(count($r)) { - $contacts = sprintf( tt('%d Connection','%d Connections', $total),$total); + $contacts = t('Connections'); $micropro = Array(); foreach($r as $rr) { $rr['archived'] = (intval($rr['abook_archived']) ? true : false); @@ -825,7 +825,7 @@ function contact_block() { $o = replace_macros($tpl, array( '$contacts' => $contacts, '$nickname' => $a->profile['channel_address'], - '$viewconnections' => t('View Connections'), + '$viewconnections' => (($total > $shown) ? sprintf(t('View all %s connections'),$total) : ''), '$micropro' => $micropro, )); |