From 91d7b0f7eb7d3d7240b9ba12e2fbd71334b5a458 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 17 May 2015 16:28:16 -0700 Subject: more work isolating the projectname from core. --- mod/admin.php | 2 +- mod/cloud.php | 2 +- mod/dav.php | 2 +- mod/home.php | 2 +- mod/invite.php | 6 +++--- mod/like.php | 2 +- mod/mitem.php | 4 ++-- mod/p.php | 2 +- mod/pubsites.php | 2 +- mod/setup.php | 4 ++-- mod/siteinfo.php | 8 ++++---- 11 files changed, 18 insertions(+), 18 deletions(-) (limited to 'mod') diff --git a/mod/admin.php b/mod/admin.php index fd2ba510b..7b6a8b723 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -230,7 +230,7 @@ function admin_page_summary(&$a) { $alertmsg = ''; // annoy admin about upcoming unsupported PHP version if (version_compare(PHP_VERSION, '5.4', '<')) { - $alertmsg = 'Your PHP version ' . PHP_VERSION . ' will not be supported with the next major release of RedMatrix. You are strongly urged to upgrade to a current version.' + $alertmsg = 'Your PHP version ' . PHP_VERSION . ' will not be supported with the next major release of $Projectname. You are strongly urged to upgrade to a current version.' . '
PHP 5.3 has reached its End of Life (EOL) in August 2014.' . ' A list about current PHP versions can be found here.'; } diff --git a/mod/cloud.php b/mod/cloud.php index b36e6c482..4b5d45f97 100644 --- a/mod/cloud.php +++ b/mod/cloud.php @@ -117,7 +117,7 @@ function cloud_init(&$a) { if ((! $auth->observer) && (! $isapublic_file) && (! $davguest)) { try { - $auth->Authenticate($server, t('RedMatrix - Guests: Username: {your email address}, Password: +++')); + $auth->Authenticate($server, t('$Projectname - Guests: Username: {your email address}, Password: +++')); } catch (Exception $e) { logger('mod_cloud: auth exception' . $e->getMessage()); diff --git a/mod/dav.php b/mod/dav.php index f7f89b6da..2f811a7f0 100644 --- a/mod/dav.php +++ b/mod/dav.php @@ -118,7 +118,7 @@ function dav_init(&$a) { if ((! $auth->observer) && (! $isapublic_file) && (! $davguest)) { try { - $auth->Authenticate($server, t('RedMatrix channel')); + $auth->Authenticate($server, t('$Projectname channel')); } catch (Exception $e) { logger('mod_cloud: auth exception' . $e->getMessage()); diff --git a/mod/home.php b/mod/home.php index 7bb138d2e..03133a217 100644 --- a/mod/home.php +++ b/mod/home.php @@ -50,7 +50,7 @@ function home_content(&$a, $update = 0, $load = false) { if(get_config('system','projecthome')) { $o .= file_get_contents('assets/home.html'); $a->page['template'] = 'full'; - $a->page['title'] = t('Red Matrix - "The Network"'); + $a->page['title'] = t('$Projectname'); return $o; } diff --git a/mod/invite.php b/mod/invite.php index e197278d1..1fdfbacc6 100644 --- a/mod/invite.php +++ b/mod/invite.php @@ -129,12 +129,12 @@ function invite_content(&$a) { '$invite' => t('Send invitations'), '$addr_text' => t('Enter email addresses, one per line:'), '$msg_text' => t('Your message:'), - '$default_message' => t('Please join my community on RedMatrix.') . "\r\n" . "\r\n" + '$default_message' => t('Please join my community on $Projectname.') . "\r\n" . "\r\n" . $linktxt . (($invonly) ? "\r\n" . "\r\n" . t('You will need to supply this invitation code: ') . $invite_code . "\r\n" . "\r\n" : '') - . t('1. Register at any RedMatrix location (they are all inter-connected)') + . t('1. Register at any $Projectname location (they are all inter-connected)') . "\r\n" . "\r\n" . z_root() . '/register' - . "\r\n" . "\r\n" . t('2. Enter my RedMatrix network address into the site searchbar.') + . "\r\n" . "\r\n" . t('2. Enter my $Projectname network address into the site searchbar.') . "\r\n" . "\r\n" . $ob['xchan_addr'] . ' (' . t('or visit ') . z_root() . '/channel/' . $channel['channel_address'] . ')' . "\r\n" . "\r\n" . t('3. Click [Connect]') diff --git a/mod/like.php b/mod/like.php index d3b6f3ecf..e79ff5f48 100755 --- a/mod/like.php +++ b/mod/like.php @@ -18,7 +18,7 @@ function like_content(&$a) { if(! $observer) { $_SESSION['return_url'] = $a->query_string; $o .= t('This action is restricted to members.') . EOL; - $o .= t('Please login with your RedMatrix ID or register as a new RedMatrix member to continue.') . EOL; + $o .= t('Please login with your $Projectname ID or register as a new $Projectname member to continue.') . EOL; return $o; } } diff --git a/mod/mitem.php b/mod/mitem.php index b03280105..0961e15ff 100644 --- a/mod/mitem.php +++ b/mod/mitem.php @@ -160,7 +160,7 @@ function mitem_content(&$a) { '$aclselect' => populate_acl($perm_defaults,false), '$mitem_desc' => array('mitem_desc', t('Link Name'), '', 'Visible name of the link','*'), '$mitem_link' => array('mitem_link', t('Link or Submenu Target'), '', t('Enter URL of the link or select a menu name to create a submenu'), '*', 'list="menu-names"'), - '$usezid' => array('usezid', t('Use RedMatrix magic-auth if available'), true, ''), + '$usezid' => array('usezid', t('Use magic-auth if available'), true, ''), '$newwin' => array('newwin', t('Open link in new window'), false,''), '$mitem_order' => array('mitem_order', t('Order in list'),'0',t('Higher numbers will sink to bottom of listing')), '$submit' => t('Submit and finish'), @@ -231,7 +231,7 @@ function mitem_content(&$a) { '$mitem_id' => intval(argv(2)), '$mitem_desc' => array('mitem_desc', t('Link text'), $mitem['mitem_desc'], '','*'), '$mitem_link' => array('mitem_link', t('Link or Submenu Target'), $mitem['mitem_link'], 'Enter URL of the link or select a menu name to create a submenu', '*', 'list="menu-names"'), - '$usezid' => array('usezid', t('Use RedMatrix magic-auth if available'), (($mitem['mitem_flags'] & MENU_ITEM_ZID) ? 1 : 0), ''), + '$usezid' => array('usezid', t('Use magic-auth if available'), (($mitem['mitem_flags'] & MENU_ITEM_ZID) ? 1 : 0), ''), '$newwin' => array('newwin', t('Open link in new window'), (($mitem['mitem_flags'] & MENU_ITEM_NEWWIN) ? 1 : 0),''), '$mitem_order' => array('mitem_order', t('Order in list'),$mitem['mitem_order'],t('Higher numbers will sink to bottom of listing')), '$submit' => t('Submit'), diff --git a/mod/p.php b/mod/p.php index 9d1c12dbc..924fd7eba 100644 --- a/mod/p.php +++ b/mod/p.php @@ -43,7 +43,7 @@ function p_init(&$a) { '$handle' => xmlify($myaddr), '$public' => 'true', '$created' => $created, - '$provider' => (($item['app']) ? $item['app'] : 'redmatrix') + '$provider' => (($item['app']) ? $item['app'] : t('$projectname')) )); header('Content-type: text/xml'); diff --git a/mod/pubsites.php b/mod/pubsites.php index ff3854492..62990c70c 100644 --- a/mod/pubsites.php +++ b/mod/pubsites.php @@ -16,7 +16,7 @@ function pubsites_content(&$a) { $o .= '

' . t('Public Sites') . '

'; $o .= '
' . - t('The listed sites allow public registration into the Red Matrix. All sites in the matrix are interlinked so membership on any of them conveys membership in the matrix as a whole. Some sites may require subscription or provide tiered service plans. The provider links may provide additional details.') . '
' . EOL; + t('The listed sites allow public registration for the $Projectname network. All sites in the network are interlinked so membership on any of them conveys membership in the network as a whole. Some sites may require subscription or provide tiered service plans. The provider links may provide additional details.') . '' . EOL; $ret = z_fetch_url($url); if($ret['success']) { diff --git a/mod/setup.php b/mod/setup.php index b885388be..eba28a9bc 100755 --- a/mod/setup.php +++ b/mod/setup.php @@ -163,7 +163,7 @@ function setup_content(&$a) { global $install_wizard_pass, $db; $o = ''; $wizard_status = ""; - $install_title = t('Red Matrix Server - Setup'); + $install_title = t('$Projectname Server - Setup'); @@ -287,7 +287,7 @@ function setup_content(&$a) { $o .= replace_macros($tpl, array( '$title' => $install_title, '$pass' => t('Database connection'), - '$info_01' => t('In order to install Red Matrix we need to know how to connect to your database.'), + '$info_01' => t('In order to install $Projectname we need to know how to connect to your database.'), '$info_02' => t('Please contact your hosting provider or site administrator if you have questions about these settings.'), '$info_03' => t('The database you specify below should already exist. If it does not, please create it before continuing.'), diff --git a/mod/siteinfo.php b/mod/siteinfo.php index b6753f1ab..904228f13 100644 --- a/mod/siteinfo.php +++ b/mod/siteinfo.php @@ -152,8 +152,8 @@ function siteinfo_content(&$a) { $donate .= file_get_contents('doc/site_donate.html'); $o = replace_macros(get_markup_template('siteinfo.tpl'), array( - '$title' => t('Red'), - '$description' => t('This is a hub of redmatrix - a global cooperative network of decentralized privacy enhanced websites.'), + '$title' => t('$Projectname'), + '$description' => t('This is a hub of $Projectname - a global cooperative network of decentralized privacy enhanced websites.'), '$version' => $version, '$tag_txt' => t('Tag: '), '$tag' => $tag, @@ -161,10 +161,10 @@ function siteinfo_content(&$a) { '$lastpoll' => get_poller_runtime(), '$commit' => $commit, '$web_location' => t('Running at web location') . ' ' . z_root(), - '$visit' => t('Please visit redmatrix.me to learn more about the Red Matrix.'), + '$visit' => t('Please visit redmatrix.me to learn more about $Projectname.'), '$bug_text' => t('Bug reports and issues: please visit'), '$bug_link_url' => 'https://github.com/redmatrix/redmatrix/issues', - '$bug_link_text' => 'redmatrix issues', + '$bug_link_text' => '$projectname issues', '$contact' => t('Suggestions, praise, etc. - please email "redmatrix" at librelist - dot com'), '$donate' => $donate, '$adminlabel' => t('Site Administrators'), -- cgit v1.2.3