aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-03 02:00:48 -0700
committerfriendica <info@friendica.com>2012-11-03 02:00:48 -0700
commit140f464e025f0b4335c57c0611868c879b8a4eff (patch)
tree56631ee65e5ec905bd58bd1d0cf412e4414e5af1
parenta47a1d5eb9d8e28a646540c5d19e05ffe35774cc (diff)
downloadvolse-hubzilla-140f464e025f0b4335c57c0611868c879b8a4eff.tar.gz
volse-hubzilla-140f464e025f0b4335c57c0611868c879b8a4eff.tar.bz2
volse-hubzilla-140f464e025f0b4335c57c0611868c879b8a4eff.zip
channels you are connected to are "connections". Get rid of "address book" which doesn't fit.
-rw-r--r--boot.php2
-rw-r--r--include/contact_widgets.php4
-rw-r--r--include/nav.php2
-rw-r--r--mod/connections.php (renamed from mod/abook.php)52
4 files changed, 30 insertions, 30 deletions
diff --git a/boot.php b/boot.php
index ee1b360bc..3958a0bac 100644
--- a/boot.php
+++ b/boot.php
@@ -1767,7 +1767,7 @@ if(! function_exists('profile_tabs')){
$channel = $a->get_channel();
if (is_null($nickname))
- $nickname = $a->channel['channel_address'];
+ $nickname = $channel['channel_address'];
if(x($_GET,'tab'))
$tab = notags(trim($_GET['tab']));
diff --git a/include/contact_widgets.php b/include/contact_widgets.php
index 9054fc3f4..aeed63ebf 100644
--- a/include/contact_widgets.php
+++ b/include/contact_widgets.php
@@ -3,8 +3,8 @@
function follow_widget() {
return replace_macros(get_markup_template('follow.tpl'),array(
- '$connect' => t('Add New Channel'),
- '$desc' => t('Enter webbie (channel location)'),
+ '$connect' => t('Add New Connection'),
+ '$desc' => t('Enter the channel address'),
'$hint' => t('Example: bob@example.com, http://example.com/barbara'),
'$follow' => t('Connect')
));
diff --git a/include/nav.php b/include/nav.php
index 4e0d0b429..be92af92a 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -153,7 +153,7 @@ EOT;
$nav['settings'] = array('settings', t('Settings'),"", t('Account settings'));
$nav['profiles'] = array('profiles', t('Profiles'),"", t('Manage/edit profiles'));
- $nav['contacts'] = array('abook', t('Address Book'),"", t('Manage/edit friends and channels'));
+ $nav['contacts'] = array('connections', t('Connections'),"", t('Manage/edit friends and channels'));
}
/**
diff --git a/mod/abook.php b/mod/connections.php
index 3d73217f1..5af8e1212 100644
--- a/mod/abook.php
+++ b/mod/connections.php
@@ -6,7 +6,7 @@ require_once('include/contact_selectors.php');
require_once('include/group.php');
require_once('include/contact_widgets.php');
-function abook_init(&$a) {
+function connections_init(&$a) {
if(! local_user())
return;
@@ -58,7 +58,7 @@ EOT;
}
-function abook_post(&$a) {
+function connections_post(&$a) {
if(! local_user())
return;
@@ -132,11 +132,11 @@ function abook_post(&$a) {
-function abook_content(&$a) {
+function connections_content(&$a) {
$sort_type = 0;
$o = '';
- nav_set_selected('abook');
+ nav_set_selected('connections');
if(! local_user()) {
@@ -215,14 +215,14 @@ EOT;
if(! count($orig_record)) {
notice( t('Could not access address book record.') . EOL);
- goaway($a->get_baseurl(true) . '/abook');
+ goaway($a->get_baseurl(true) . '/connections');
}
if($cmd === 'update') {
// pull feed and consume it, which should subscribe to the hub.
proc_run('php',"include/poller.php","$contact_id");
- goaway($a->get_baseurl(true) . '/abook/' . $contact_id);
+ goaway($a->get_baseurl(true) . '/connections/' . $contact_id);
}
@@ -233,7 +233,7 @@ EOT;
: t('Channel has been blocked')) . EOL );
else
notice(t('Unable to set address book parameters.') . EOL);
- goaway($a->get_baseurl(true) . '/abook/' . $contact_id);
+ goaway($a->get_baseurl(true) . '/connections/' . $contact_id);
}
if($cmd === 'ignore') {
@@ -243,7 +243,7 @@ EOT;
: t('Channel has been ignored')) . EOL );
else
notice(t('Unable to set address book parameters.') . EOL);
- goaway($a->get_baseurl(true) . '/abook/' . $contact_id);
+ goaway($a->get_baseurl(true) . '/connections/' . $contact_id);
}
if($cmd === 'archive') {
@@ -253,7 +253,7 @@ EOT;
: t('Channel has been archived')) . EOL );
else
notice(t('Unable to set address book parameters.') . EOL);
- goaway($a->get_baseurl(true) . '/abook/' . $contact_id);
+ goaway($a->get_baseurl(true) . '/connections/' . $contact_id);
}
if($cmd === 'hide') {
@@ -263,7 +263,7 @@ EOT;
: t('Channel has been hidden')) . EOL );
else
notice(t('Unable to set address book parameters.') . EOL);
- goaway($a->get_baseurl(true) . '/abook/' . $contact_id);
+ goaway($a->get_baseurl(true) . '/connections/' . $contact_id);
}
// FIXME
@@ -434,47 +434,47 @@ EOT;
'label' => t('Suggestions'),
'url' => $a->get_baseurl(true) . '/suggest',
'sel' => '',
- 'title' => t('Suggest new channels'),
+ 'title' => t('Suggest new connections'),
),
array(
- 'label' => t('All Channels'),
- 'url' => $a->get_baseurl(true) . '/channels/all',
+ 'label' => t('All Connections'),
+ 'url' => $a->get_baseurl(true) . '/connections/all',
'sel' => ($all) ? 'active' : '',
- 'title' => t('Show all channels'),
+ 'title' => t('Show all connections'),
),
array(
'label' => t('Unblocked'),
- 'url' => $a->get_baseurl(true) . '/channels',
+ 'url' => $a->get_baseurl(true) . '/connections',
'sel' => ((! $all) && (! $blocked) && (! $hidden) && (! $search) && (! $nets) && (! $ignored) && (! $archived)) ? 'active' : '',
- 'title' => t('Only show unblocked channels'),
+ 'title' => t('Only show unblocked connections'),
),
array(
'label' => t('Blocked'),
- 'url' => $a->get_baseurl(true) . '/channels/blocked',
+ 'url' => $a->get_baseurl(true) . '/connections/blocked',
'sel' => ($blocked) ? 'active' : '',
- 'title' => t('Only show blocked channels'),
+ 'title' => t('Only show blocked connections'),
),
array(
'label' => t('Ignored'),
- 'url' => $a->get_baseurl(true) . '/channels/ignored',
+ 'url' => $a->get_baseurl(true) . '/connections/ignored',
'sel' => ($ignored) ? 'active' : '',
- 'title' => t('Only show ignored channels'),
+ 'title' => t('Only show ignored connections'),
),
array(
'label' => t('Archived'),
- 'url' => $a->get_baseurl(true) . '/channels/archived',
+ 'url' => $a->get_baseurl(true) . '/connections/archived',
'sel' => ($archived) ? 'active' : '',
- 'title' => t('Only show archived channels'),
+ 'title' => t('Only show archived connections'),
),
array(
'label' => t('Hidden'),
- 'url' => $a->get_baseurl(true) . '/channels/hidden',
+ 'url' => $a->get_baseurl(true) . '/connections/hidden',
'sel' => ($hidden) ? 'active' : '',
- 'title' => t('Only show hidden channel s'),
+ 'title' => t('Only show hidden connections'),
),
);
@@ -572,11 +572,11 @@ EOT;
$tpl = get_markup_template("contacts-template.tpl");
$o .= replace_macros($tpl,array(
- '$header' => t('Contacts') . (($nets) ? ' - ' . network_to_name($nets) : ''),
+ '$header' => t('Connnections') . (($nets) ? ' - ' . network_to_name($nets) : ''),
'$tabs' => $t,
'$total' => $total,
'$search' => $search_hdr,
- '$desc' => t('Search your contacts'),
+ '$desc' => t('Search your connnections'),
'$finding' => (($searching) ? t('Finding: ') . "'" . $search . "'" : ""),
'$submit' => t('Find'),
'$cmd' => $a->cmd,