$b .= sprintf(_('Developer %s Access via SSH'), 'Mercurial');
$b .= '</h2>';
$b .= '<p>';
- $b .= _('Read/write access to Mercurial tree is allowed for authenticated users. SSH must be installed on your client machine. Enter your site password when prompted.');
+ $b .= _('Read/write access to Mercurial tree is allowed for authenticated users.');
+ $b .= ' ';
+ $b .= _('SSH must be installed on your client machine.');
+ $b .= ' ';
+ $b .= _('Enter your site password when prompted.');
$b .= '</p>';
// Warning : the ssh uri MUST be this form : ssh://username@scmbox//path/reponame
// HAVE YOU SEEN THE // starting the path ? Keep in mind the double /
$b .= _('Developer Mercurial Access via HTTP');
$b .= '</h2>';
$b .= '<p>';
- $b .= _('Only project developers can access the Mercurial tree via this method. Enter your site password when prompted.');
+ $b .= _('Only project developers can access the Mercurial tree via this method.');
+ $b .= ' ';
+ $b .= _('Enter your site password when prompted.');
$b .= '</p>';
$b .= '<p><tt>hg clone '.$protocol.'://<i>'. $d .'</i>@' . $this->getBoxForProject($project) .'/hg/'. $project->getUnixName() . '</tt></p>';
}
} else {
if (forge_get_config('use_ssh', 'scmhg')) {
- $d = '<i>developername</i>';
+ $d = '<em>developername</em>';
$b = '<h2>';
- $b .= _('Developer Mercurial Access via SSH');
+ $b .= sprintf(_('Developer %s Access via SSH'), 'Mercurial');
$b .= '</h2>';
$b .= '<p>';
- $b .= _('Only project developers can access the Mercurial tree via this method. SSH must be installed on your client machine. Substitute <i>developername</i> with the proper value. Enter your site password when prompted.');
+ $b .= sprintf(_('Only project developers can access the %s tree via this method.'), 'Mercurial');
+ $b .= ' ';
+ $b .= _('SSH must be installed on your client machine.');
+ $b .= ' ';
+ $b .= _('Substitute <em>developername</em> with the proper value.');
+ $b .= ' ';
+ $b .= _('Enter your site password when prompted.');
$b .= '</p>';
// Warning : the ssh uri MUST be this form : ssh://username@scmbox//path/reponame
// HAVE YOU SEEN THE // starting the path ? Keep in mind the double /
$b .= _('Developer Mercurial Access via HTTP');
$b .= '</h2>';
$b .= '<p>';
- $b .= _('Only project developers can access the Mercurial tree via this method. Enter your site password when prompted.');
+ $b .= _('Only project developers can access the Mercurial tree via this method.');
+ $b .= ' ';
+ $b .= _('Enter your site password when prompted.');
$b .= '</p>';
$b .= '<p><tt>hg clone '.$protocol.'://<i>'. _('developername') .'</i>@' . $this->getBoxForProject($project) .'/hg/'. $project->getUnixName() . '</tt></p>';
}
}
function getSnapshotPara($project) {
- return ;
+ return;
}
function getBrowserLinkBlock($project) {
if (!$project) {
return false;
}
+
if (!$project->usesPlugin($this->name)) {
return false;
}
if (!$project) {
return false;
}
+
if (! $project->usesPlugin ($this->name)) {
return false;
}
}
$result = db_query_params('SELECT count(*) AS count FROM plugin_scmhg_repos WHERE group_id=$1 AND repo_name = $2',
- array ($params['group_id'], $params['repo_name']));
+ array($params['group_id'], $params['repo_name']));
if (! $result) {
$params['error_msg'] = db_error();
return false;
$description = $params['description'];
}
- $result = db_query_params ('INSERT INTO plugin_scmhg_repos (group_id, repo_name, description, clone) VALUES ($1, $2, $3, $4)',
- array ($params['group_id'], $params['repo_name'], $description, $clone));
+ $result = db_query_params('INSERT INTO plugin_scmhg_repos (group_id, repo_name, description, clone) VALUES ($1, $2, $3, $4)',
+ array($params['group_id'], $params['repo_name'], $description, $clone));
if (! $result) {
$params['error_msg'] = db_error();
return false;
}
- plugin_hook ("scm_admin_update", $params);
+ plugin_hook("scm_admin_update", $params);
return true;
}
session_require_perm('project_admin', $params['group_id']);
- $adminheadertitle = sprintf(_('Create SCM repository for project %1$s'), $project_name);
+ $adminheadertitle = sprintf(_('Create SCM repository for project %s'), $project_name);
project_admin_header(array('title'=>$adminheadertitle, 'group'=>$params['group_id']));
?>